telnyx 5.112.0 → 5.113.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.
Files changed (261) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
  5. data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
  6. data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
  7. data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
  8. data/lib/telnyx/models/ai/assistant_update_params.rb +9 -178
  9. data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
  10. data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
  11. data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
  12. data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
  13. data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
  14. data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
  15. data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
  16. data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -179
  17. data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
  18. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
  19. data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
  20. data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
  21. data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
  22. data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
  23. data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
  24. data/lib/telnyx/models/ai_create_response_params.rb +4 -4
  25. data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
  26. data/lib/telnyx/models/call_conversation_ended.rb +13 -1
  27. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
  28. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
  29. data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
  30. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
  31. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +169 -118
  32. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
  33. data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
  34. data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
  35. data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
  36. data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
  37. data/lib/telnyx/models/fax.rb +7 -5
  38. data/lib/telnyx/models/fax_create_params.rb +7 -5
  39. data/lib/telnyx/models/fax_delivered.rb +3 -2
  40. data/lib/telnyx/models/fax_failed.rb +3 -2
  41. data/lib/telnyx/models/fax_media_processed.rb +3 -2
  42. data/lib/telnyx/models/fax_queued.rb +3 -2
  43. data/lib/telnyx/models/fax_sending_started.rb +3 -2
  44. data/lib/telnyx/models/model_metadata.rb +212 -0
  45. data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
  46. data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
  47. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
  48. data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
  49. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
  50. data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
  51. data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
  52. data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
  53. data/lib/telnyx/models/uac_connection.rb +412 -0
  54. data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
  55. data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
  56. data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
  57. data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
  58. data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
  59. data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
  60. data/lib/telnyx/models/uac_external_settings.rb +101 -0
  61. data/lib/telnyx/models/uac_inbound.rb +210 -0
  62. data/lib/telnyx/models/uac_internal_settings.rb +25 -0
  63. data/lib/telnyx/models/uac_outbound.rb +131 -0
  64. data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
  65. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
  66. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
  67. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
  68. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
  69. data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
  70. data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
  71. data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
  72. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
  73. data/lib/telnyx/models/xai_voice_settings.rb +36 -0
  74. data/lib/telnyx/models.rb +20 -0
  75. data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
  76. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  77. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  78. data/lib/telnyx/resources/ai/openai.rb +1 -1
  79. data/lib/telnyx/resources/ai.rb +3 -3
  80. data/lib/telnyx/resources/calls/actions.rb +15 -17
  81. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  82. data/lib/telnyx/resources/faxes.rb +13 -1
  83. data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
  84. data/lib/telnyx/resources/texml.rb +4 -2
  85. data/lib/telnyx/resources/uac_connections.rb +8 -8
  86. data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
  87. data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
  88. data/lib/telnyx/version.rb +1 -1
  89. data/lib/telnyx.rb +23 -4
  90. data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
  91. data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
  92. data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
  93. data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
  94. data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -352
  95. data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
  96. data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
  97. data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
  98. data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
  99. data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
  100. data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
  101. data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
  102. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -366
  103. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
  104. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
  105. data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
  106. data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
  107. data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
  108. data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
  109. data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
  110. data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
  111. data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
  112. data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
  113. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
  114. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
  115. data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
  116. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
  117. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +371 -254
  118. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
  119. data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
  120. data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
  121. data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
  122. data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
  123. data/rbi/telnyx/models/fax.rbi +12 -8
  124. data/rbi/telnyx/models/fax_create_params.rbi +12 -8
  125. data/rbi/telnyx/models/fax_delivered.rbi +6 -4
  126. data/rbi/telnyx/models/fax_failed.rbi +6 -4
  127. data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
  128. data/rbi/telnyx/models/fax_queued.rbi +6 -4
  129. data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
  130. data/rbi/telnyx/models/model_metadata.rbi +272 -0
  131. data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
  132. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
  133. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
  134. data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
  135. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
  136. data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
  137. data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
  138. data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
  139. data/rbi/telnyx/models/uac_connection.rbi +684 -0
  140. data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
  141. data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
  142. data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
  143. data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
  144. data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
  145. data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
  146. data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
  147. data/rbi/telnyx/models/uac_inbound.rbi +410 -0
  148. data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
  149. data/rbi/telnyx/models/uac_outbound.rbi +224 -0
  150. data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
  151. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
  152. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
  153. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
  154. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
  155. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
  156. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
  157. data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
  158. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
  159. data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
  160. data/rbi/telnyx/models.rbi +20 -0
  161. data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
  162. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
  163. data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
  164. data/rbi/telnyx/resources/ai/openai.rbi +1 -1
  165. data/rbi/telnyx/resources/ai.rbi +2 -2
  166. data/rbi/telnyx/resources/calls/actions.rbi +24 -24
  167. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  168. data/rbi/telnyx/resources/faxes.rbi +18 -4
  169. data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
  170. data/rbi/telnyx/resources/texml.rbi +7 -1
  171. data/rbi/telnyx/resources/uac_connections.rbi +7 -13
  172. data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
  173. data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
  174. data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -149
  175. data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
  176. data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
  177. data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
  178. data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -149
  179. data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
  180. data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
  181. data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
  182. data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
  183. data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
  184. data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
  185. data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
  186. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -152
  187. data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
  188. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
  189. data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
  190. data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
  191. data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
  192. data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
  193. data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
  194. data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
  195. data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
  196. data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
  197. data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
  198. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
  199. data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
  200. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
  201. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +141 -102
  202. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
  203. data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
  204. data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
  205. data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
  206. data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
  207. data/sig/telnyx/models/model_metadata.rbs +142 -0
  208. data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
  209. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
  210. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
  211. data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
  212. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
  213. data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
  214. data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
  215. data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
  216. data/sig/telnyx/models/uac_connection.rbs +338 -0
  217. data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
  218. data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
  219. data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
  220. data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
  221. data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
  222. data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
  223. data/sig/telnyx/models/uac_external_settings.rbs +73 -0
  224. data/sig/telnyx/models/uac_inbound.rbs +190 -0
  225. data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
  226. data/sig/telnyx/models/uac_outbound.rbs +113 -0
  227. data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
  228. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
  229. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
  230. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
  231. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
  232. data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
  233. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
  234. data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
  235. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
  236. data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
  237. data/sig/telnyx/models.rbs +20 -0
  238. data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
  239. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  240. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  241. data/sig/telnyx/resources/ai/openai.rbs +1 -1
  242. data/sig/telnyx/resources/ai.rbs +1 -1
  243. data/sig/telnyx/resources/calls/actions.rbs +2 -4
  244. data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
  245. data/sig/telnyx/resources/texml.rbs +1 -0
  246. data/sig/telnyx/resources/uac_connections.rbs +7 -7
  247. data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
  248. data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
  249. metadata +71 -14
  250. data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
  251. data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
  252. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
  253. data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
  254. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
  255. data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
  256. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
  257. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
  258. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
  259. data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
  260. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
  261. data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
@@ -0,0 +1,412 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ # @see Telnyx::Resources::UacConnections#list
6
+ class UacConnection < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ # Identifies the type of resource.
9
+ #
10
+ # @return [String, nil]
11
+ optional :id, String
12
+
13
+ # @!attribute active
14
+ # Defaults to true
15
+ #
16
+ # @return [Boolean, nil]
17
+ optional :active, Telnyx::Internal::Type::Boolean
18
+
19
+ # @!attribute anchorsite_override
20
+ # `Latency` directs Telnyx to route media through the site with the lowest
21
+ # round-trip time to the user's connection. Telnyx calculates this time using ICMP
22
+ # ping messages. This can be disabled by specifying a site to handle all media.
23
+ #
24
+ # @return [Symbol, Telnyx::Models::AnchorsiteOverride, nil]
25
+ optional :anchorsite_override, enum: -> { Telnyx::AnchorsiteOverride }
26
+
27
+ # @!attribute android_push_credential_id
28
+ # The uuid of the push credential for Android
29
+ #
30
+ # @return [String, nil]
31
+ optional :android_push_credential_id, String, nil?: true
32
+
33
+ # @!attribute authentication
34
+ # The authentication strategy used by this connection.
35
+ #
36
+ # @return [Symbol, Telnyx::Models::UacConnection::Authentication, nil]
37
+ optional :authentication, enum: -> { Telnyx::UacConnection::Authentication }
38
+
39
+ # @!attribute call_cost_in_webhooks
40
+ # Specifies if call cost webhooks should be sent for this connection.
41
+ #
42
+ # @return [Boolean, nil]
43
+ optional :call_cost_in_webhooks, Telnyx::Internal::Type::Boolean
44
+
45
+ # @!attribute connection_name
46
+ #
47
+ # @return [String, nil]
48
+ optional :connection_name, String
49
+
50
+ # @!attribute created_at
51
+ # ISO-8601 formatted date indicating when the resource was created.
52
+ #
53
+ # @return [String, nil]
54
+ optional :created_at, String
55
+
56
+ # @!attribute default_on_hold_comfort_noise_enabled
57
+ # When enabled, Telnyx will generate comfort noise when you place the call on
58
+ # hold. If disabled, you will need to generate comfort noise or on hold music to
59
+ # avoid RTP timeout.
60
+ #
61
+ # @return [Boolean, nil]
62
+ optional :default_on_hold_comfort_noise_enabled, Telnyx::Internal::Type::Boolean
63
+
64
+ # @!attribute dtmf_type
65
+ # Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF
66
+ # digits sent to Telnyx will be accepted in all formats.
67
+ #
68
+ # @return [Symbol, Telnyx::Models::DtmfType, nil]
69
+ optional :dtmf_type, enum: -> { Telnyx::DtmfType }
70
+
71
+ # @!attribute encode_contact_header_enabled
72
+ # Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG
73
+ # scenarios.
74
+ #
75
+ # @return [Boolean, nil]
76
+ optional :encode_contact_header_enabled, Telnyx::Internal::Type::Boolean
77
+
78
+ # @!attribute encrypted_media
79
+ # Enable use of SRTP for encryption. Cannot be set if the transport_portocol is
80
+ # TLS.
81
+ #
82
+ # @return [Symbol, Telnyx::Models::EncryptedMedia, nil]
83
+ optional :encrypted_media, enum: -> { Telnyx::EncryptedMedia }, nil?: true
84
+
85
+ # @!attribute external_uac_settings
86
+ # External SIP peer settings used by Telnyx when registering to your PBX and
87
+ # routing outbound calls.
88
+ #
89
+ # @return [Telnyx::Models::UacExternalSettings, nil]
90
+ optional :external_uac_settings, -> { Telnyx::UacExternalSettings }
91
+
92
+ # @!attribute fqdn
93
+ # The Telnyx-managed FQDN generated for the UAC connection.
94
+ #
95
+ # @return [String, nil]
96
+ optional :fqdn, String
97
+
98
+ # @!attribute fqdn_outbound_authentication
99
+ # The fixed outbound authentication mode used by UAC FQDN records.
100
+ #
101
+ # @return [Symbol, Telnyx::Models::UacConnection::FqdnOutboundAuthentication, nil]
102
+ optional :fqdn_outbound_authentication, enum: -> { Telnyx::UacConnection::FqdnOutboundAuthentication }
103
+
104
+ # @!attribute fqdns
105
+ # FQDN records managed automatically by the UAC connection lifecycle.
106
+ #
107
+ # @return [Array<Telnyx::Models::Fqdn>, nil]
108
+ optional :fqdns, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Fqdn] }
109
+
110
+ # @!attribute inbound
111
+ #
112
+ # @return [Telnyx::Models::UacInbound, nil]
113
+ optional :inbound, -> { Telnyx::UacInbound }
114
+
115
+ # @!attribute internal_uac_settings
116
+ # Internal Telnyx-side settings for a UAC connection.
117
+ #
118
+ # @return [Telnyx::Models::UacInternalSettings, nil]
119
+ optional :internal_uac_settings, -> { Telnyx::UacInternalSettings }
120
+
121
+ # @!attribute ios_push_credential_id
122
+ # The uuid of the push credential for Ios
123
+ #
124
+ # @return [String, nil]
125
+ optional :ios_push_credential_id, String, nil?: true
126
+
127
+ # @!attribute jitter_buffer
128
+ # Configuration options for Jitter Buffer. Enables Jitter Buffer for RTP streams
129
+ # of SIP Trunking calls. The feature is off unless enabled. You may define min and
130
+ # max values in msec for customized buffering behaviors. Larger values add latency
131
+ # but tolerate more jitter, while smaller values reduce latency but are more
132
+ # sensitive to jitter and reordering.
133
+ #
134
+ # @return [Telnyx::Models::ConnectionJitterBuffer, nil]
135
+ optional :jitter_buffer, -> { Telnyx::ConnectionJitterBuffer }
136
+
137
+ # @!attribute noise_suppression
138
+ # Controls when noise suppression is applied to calls. When set to 'inbound',
139
+ # noise suppression is applied to incoming audio. When set to 'outbound', it's
140
+ # applied to outgoing audio. When set to 'both', it's applied in both directions.
141
+ # When set to 'disabled', noise suppression is turned off.
142
+ #
143
+ # @return [Symbol, Telnyx::Models::UacConnection::NoiseSuppression, nil]
144
+ optional :noise_suppression, enum: -> { Telnyx::UacConnection::NoiseSuppression }
145
+
146
+ # @!attribute noise_suppression_details
147
+ # Configuration options for noise suppression. These settings are stored
148
+ # regardless of the noise_suppression value, but only take effect when
149
+ # noise_suppression is not 'disabled'. If you disable noise suppression and later
150
+ # re-enable it, the previously configured settings will be used.
151
+ #
152
+ # @return [Telnyx::Models::ConnectionNoiseSuppressionDetails, nil]
153
+ optional :noise_suppression_details, -> { Telnyx::ConnectionNoiseSuppressionDetails }
154
+
155
+ # @!attribute onnet_t38_passthrough_enabled
156
+ # Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
157
+ # if both are on the Telnyx network. If this is disabled, Telnyx will be able to
158
+ # use T38 on just one leg of the call depending on each leg's settings.
159
+ #
160
+ # @return [Boolean, nil]
161
+ optional :onnet_t38_passthrough_enabled, Telnyx::Internal::Type::Boolean
162
+
163
+ # @!attribute outbound
164
+ #
165
+ # @return [Telnyx::Models::UacOutbound, nil]
166
+ optional :outbound, -> { Telnyx::UacOutbound }
167
+
168
+ # @!attribute password
169
+ # The password to be used as part of the credentials. Must be 8 to 128 characters
170
+ # long.
171
+ #
172
+ # @return [String, nil]
173
+ optional :password, String
174
+
175
+ # @!attribute record_type
176
+ # Identifies the type of the resource.
177
+ #
178
+ # @return [String, nil]
179
+ optional :record_type, String
180
+
181
+ # @!attribute registration_status
182
+ # The most recently known SIP registration status for this UAC connection.
183
+ #
184
+ # @return [String, nil]
185
+ optional :registration_status, String, nil?: true
186
+
187
+ # @!attribute registration_status_updated_at
188
+ # ISO 8601 formatted date indicating when the registration status was last
189
+ # updated.
190
+ #
191
+ # @return [String, nil]
192
+ optional :registration_status_updated_at, String, nil?: true
193
+
194
+ # @!attribute rtcp_settings
195
+ #
196
+ # @return [Telnyx::Models::ConnectionRtcpSettings, nil]
197
+ optional :rtcp_settings, -> { Telnyx::ConnectionRtcpSettings }
198
+
199
+ # @!attribute sip_uri_calling_preference
200
+ # This feature enables inbound SIP URI calls to your Credential Auth Connection.
201
+ # If enabled for all (unrestricted) then anyone who calls the SIP URI
202
+ # <your-username>@telnyx.com will be connected to your Connection. You can also
203
+ # choose to allow only calls that are originated on any Connections under your
204
+ # account (internal).
205
+ #
206
+ # @return [Symbol, Telnyx::Models::UacConnection::SipUriCallingPreference, nil]
207
+ optional :sip_uri_calling_preference, enum: -> { Telnyx::UacConnection::SipUriCallingPreference }
208
+
209
+ # @!attribute tags
210
+ # Tags associated with the connection.
211
+ #
212
+ # @return [Array<String>, nil]
213
+ optional :tags, Telnyx::Internal::Type::ArrayOf[String]
214
+
215
+ # @!attribute updated_at
216
+ # ISO-8601 formatted date indicating when the resource was updated.
217
+ #
218
+ # @return [String, nil]
219
+ optional :updated_at, String
220
+
221
+ # @!attribute user_name
222
+ # The user name to be used as part of the credentials. Must be 4-32 characters
223
+ # long and alphanumeric values only (no spaces or special characters). At least
224
+ # one of the first 5 characters must be a letter.
225
+ #
226
+ # @return [String, nil]
227
+ optional :user_name, String
228
+
229
+ # @!attribute webhook_api_version
230
+ # Determines which webhook format will be used, Telnyx API v1 or v2.
231
+ #
232
+ # @return [Symbol, Telnyx::Models::UacConnection::WebhookAPIVersion, nil]
233
+ optional :webhook_api_version, enum: -> { Telnyx::UacConnection::WebhookAPIVersion }
234
+
235
+ # @!attribute webhook_event_failover_url
236
+ # The failover URL where webhooks related to this connection will be sent if
237
+ # sending to the primary URL fails. Must include a scheme, such as 'https'.
238
+ #
239
+ # @return [String, nil]
240
+ optional :webhook_event_failover_url, String, nil?: true
241
+
242
+ # @!attribute webhook_event_url
243
+ # The URL where webhooks related to this connection will be sent. Must include a
244
+ # scheme, such as 'https'.
245
+ #
246
+ # @return [String, nil]
247
+ optional :webhook_event_url, String
248
+
249
+ # @!attribute webhook_timeout_secs
250
+ # Specifies how many seconds to wait before timing out a webhook.
251
+ #
252
+ # @return [Integer, nil]
253
+ optional :webhook_timeout_secs, Integer, nil?: true
254
+
255
+ # @!method initialize(id: nil, active: nil, anchorsite_override: nil, android_push_credential_id: nil, authentication: nil, call_cost_in_webhooks: nil, connection_name: nil, created_at: nil, default_on_hold_comfort_noise_enabled: nil, dtmf_type: nil, encode_contact_header_enabled: nil, encrypted_media: nil, external_uac_settings: nil, fqdn: nil, fqdn_outbound_authentication: nil, fqdns: nil, inbound: nil, internal_uac_settings: nil, ios_push_credential_id: nil, jitter_buffer: nil, noise_suppression: nil, noise_suppression_details: nil, onnet_t38_passthrough_enabled: nil, outbound: nil, password: nil, record_type: nil, registration_status: nil, registration_status_updated_at: nil, rtcp_settings: nil, sip_uri_calling_preference: nil, tags: nil, updated_at: nil, user_name: nil, webhook_api_version: nil, webhook_event_failover_url: nil, webhook_event_url: nil, webhook_timeout_secs: nil)
256
+ # Some parameter documentations has been truncated, see
257
+ # {Telnyx::Models::UacConnection} for more details.
258
+ #
259
+ # A UAC (User Agent Client) Connection registers Telnyx to your PBX — the opposite
260
+ # of a standard SIP trunk, where the PBX registers to Telnyx. Use UAC when your
261
+ # PBX doesn’t support outbound SIP registration or you need Telnyx to maintain the
262
+ # registration.
263
+ #
264
+ # @param id [String] Identifies the type of resource.
265
+ #
266
+ # @param active [Boolean] Defaults to true
267
+ #
268
+ # @param anchorsite_override [Symbol, Telnyx::Models::AnchorsiteOverride] `Latency` directs Telnyx to route media through the site with the lowest round-t
269
+ #
270
+ # @param android_push_credential_id [String, nil] The uuid of the push credential for Android
271
+ #
272
+ # @param authentication [Symbol, Telnyx::Models::UacConnection::Authentication] The authentication strategy used by this connection.
273
+ #
274
+ # @param call_cost_in_webhooks [Boolean] Specifies if call cost webhooks should be sent for this connection.
275
+ #
276
+ # @param connection_name [String]
277
+ #
278
+ # @param created_at [String] ISO-8601 formatted date indicating when the resource was created.
279
+ #
280
+ # @param default_on_hold_comfort_noise_enabled [Boolean] When enabled, Telnyx will generate comfort noise when you place the call on hold
281
+ #
282
+ # @param dtmf_type [Symbol, Telnyx::Models::DtmfType] Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF
283
+ #
284
+ # @param encode_contact_header_enabled [Boolean] Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scen
285
+ #
286
+ # @param encrypted_media [Symbol, Telnyx::Models::EncryptedMedia, nil] Enable use of SRTP for encryption. Cannot be set if the transport_portocol is TL
287
+ #
288
+ # @param external_uac_settings [Telnyx::Models::UacExternalSettings] External SIP peer settings used by Telnyx when registering to your PBX and routi
289
+ #
290
+ # @param fqdn [String] The Telnyx-managed FQDN generated for the UAC connection.
291
+ #
292
+ # @param fqdn_outbound_authentication [Symbol, Telnyx::Models::UacConnection::FqdnOutboundAuthentication] The fixed outbound authentication mode used by UAC FQDN records.
293
+ #
294
+ # @param fqdns [Array<Telnyx::Models::Fqdn>] FQDN records managed automatically by the UAC connection lifecycle.
295
+ #
296
+ # @param inbound [Telnyx::Models::UacInbound]
297
+ #
298
+ # @param internal_uac_settings [Telnyx::Models::UacInternalSettings] Internal Telnyx-side settings for a UAC connection.
299
+ #
300
+ # @param ios_push_credential_id [String, nil] The uuid of the push credential for Ios
301
+ #
302
+ # @param jitter_buffer [Telnyx::Models::ConnectionJitterBuffer] Configuration options for Jitter Buffer. Enables Jitter Buffer for RTP streams o
303
+ #
304
+ # @param noise_suppression [Symbol, Telnyx::Models::UacConnection::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
305
+ #
306
+ # @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
307
+ #
308
+ # @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
309
+ #
310
+ # @param outbound [Telnyx::Models::UacOutbound]
311
+ #
312
+ # @param password [String] The password to be used as part of the credentials. Must be 8 to 128 characters
313
+ #
314
+ # @param record_type [String] Identifies the type of the resource.
315
+ #
316
+ # @param registration_status [String, nil] The most recently known SIP registration status for this UAC connection.
317
+ #
318
+ # @param registration_status_updated_at [String, nil] ISO 8601 formatted date indicating when the registration status was last updated
319
+ #
320
+ # @param rtcp_settings [Telnyx::Models::ConnectionRtcpSettings]
321
+ #
322
+ # @param sip_uri_calling_preference [Symbol, Telnyx::Models::UacConnection::SipUriCallingPreference] This feature enables inbound SIP URI calls to your Credential Auth Connection. I
323
+ #
324
+ # @param tags [Array<String>] Tags associated with the connection.
325
+ #
326
+ # @param updated_at [String] ISO-8601 formatted date indicating when the resource was updated.
327
+ #
328
+ # @param user_name [String] The user name to be used as part of the credentials. Must be 4-32 characters lon
329
+ #
330
+ # @param webhook_api_version [Symbol, Telnyx::Models::UacConnection::WebhookAPIVersion] Determines which webhook format will be used, Telnyx API v1 or v2.
331
+ #
332
+ # @param webhook_event_failover_url [String, nil] The failover URL where webhooks related to this connection will be sent if sendi
333
+ #
334
+ # @param webhook_event_url [String] The URL where webhooks related to this connection will be sent. Must include a s
335
+ #
336
+ # @param webhook_timeout_secs [Integer, nil] Specifies how many seconds to wait before timing out a webhook.
337
+
338
+ # The authentication strategy used by this connection.
339
+ #
340
+ # @see Telnyx::Models::UacConnection#authentication
341
+ module Authentication
342
+ extend Telnyx::Internal::Type::Enum
343
+
344
+ UAC_AUTHENTICATION = :"uac-authentication"
345
+
346
+ # @!method self.values
347
+ # @return [Array<Symbol>]
348
+ end
349
+
350
+ # The fixed outbound authentication mode used by UAC FQDN records.
351
+ #
352
+ # @see Telnyx::Models::UacConnection#fqdn_outbound_authentication
353
+ module FqdnOutboundAuthentication
354
+ extend Telnyx::Internal::Type::Enum
355
+
356
+ CREDENTIAL_AUTHENTICATION = :"credential-authentication"
357
+
358
+ # @!method self.values
359
+ # @return [Array<Symbol>]
360
+ end
361
+
362
+ # Controls when noise suppression is applied to calls. When set to 'inbound',
363
+ # noise suppression is applied to incoming audio. When set to 'outbound', it's
364
+ # applied to outgoing audio. When set to 'both', it's applied in both directions.
365
+ # When set to 'disabled', noise suppression is turned off.
366
+ #
367
+ # @see Telnyx::Models::UacConnection#noise_suppression
368
+ module NoiseSuppression
369
+ extend Telnyx::Internal::Type::Enum
370
+
371
+ INBOUND = :inbound
372
+ OUTBOUND = :outbound
373
+ BOTH = :both
374
+ DISABLED = :disabled
375
+
376
+ # @!method self.values
377
+ # @return [Array<Symbol>]
378
+ end
379
+
380
+ # This feature enables inbound SIP URI calls to your Credential Auth Connection.
381
+ # If enabled for all (unrestricted) then anyone who calls the SIP URI
382
+ # <your-username>@telnyx.com will be connected to your Connection. You can also
383
+ # choose to allow only calls that are originated on any Connections under your
384
+ # account (internal).
385
+ #
386
+ # @see Telnyx::Models::UacConnection#sip_uri_calling_preference
387
+ module SipUriCallingPreference
388
+ extend Telnyx::Internal::Type::Enum
389
+
390
+ DISABLED = :disabled
391
+ UNRESTRICTED = :unrestricted
392
+ INTERNAL = :internal
393
+
394
+ # @!method self.values
395
+ # @return [Array<Symbol>]
396
+ end
397
+
398
+ # Determines which webhook format will be used, Telnyx API v1 or v2.
399
+ #
400
+ # @see Telnyx::Models::UacConnection#webhook_api_version
401
+ module WebhookAPIVersion
402
+ extend Telnyx::Internal::Type::Enum
403
+
404
+ V1 = :"1"
405
+ V2 = :"2"
406
+
407
+ # @!method self.values
408
+ # @return [Array<Symbol>]
409
+ end
410
+ end
411
+ end
412
+ end