telnyx 5.103.0 → 5.104.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 (214) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +9 -170
  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 -170
  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 -171
  17. data/lib/telnyx/models/ai/inference_embedding.rb +9 -169
  18. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
  19. data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -31
  20. data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
  21. data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
  22. data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
  23. data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -31
  24. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
  25. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
  26. data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
  27. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
  28. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
  29. data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
  30. data/lib/telnyx/models/calls/transcription_start_request.rb +5 -167
  31. data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
  32. data/lib/telnyx/models/model_metadata.rb +33 -0
  33. data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
  34. data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
  35. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
  36. data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
  37. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
  38. data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
  39. data/lib/telnyx/models/uac_connection.rb +412 -0
  40. data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
  41. data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
  42. data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
  43. data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
  44. data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
  45. data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
  46. data/lib/telnyx/models/uac_external_settings.rb +101 -0
  47. data/lib/telnyx/models/uac_inbound.rb +210 -0
  48. data/lib/telnyx/models/uac_internal_settings.rb +25 -0
  49. data/lib/telnyx/models/uac_outbound.rb +131 -0
  50. data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
  51. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
  52. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
  53. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
  54. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
  55. data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
  56. data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
  57. data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
  58. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
  59. data/lib/telnyx/models/xai_voice_settings.rb +36 -0
  60. data/lib/telnyx/models.rb +20 -0
  61. data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
  62. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  63. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  64. data/lib/telnyx/resources/calls/actions.rb +5 -5
  65. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  66. data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
  67. data/lib/telnyx/resources/uac_connections.rb +8 -8
  68. data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
  69. data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
  70. data/lib/telnyx/version.rb +1 -1
  71. data/lib/telnyx.rb +22 -4
  72. data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -341
  73. data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
  74. data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
  75. data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
  76. data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -341
  77. data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
  78. data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
  79. data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
  80. data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
  81. data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
  82. data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
  83. data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
  84. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -355
  85. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -340
  86. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
  87. data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -56
  88. data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
  89. data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
  90. data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
  91. data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -51
  92. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
  93. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
  94. data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
  95. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
  96. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
  97. data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
  98. data/rbi/telnyx/models/calls/transcription_start_request.rbi +10 -480
  99. data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
  100. data/rbi/telnyx/models/model_metadata.rbi +44 -0
  101. data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
  102. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
  103. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
  104. data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
  105. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
  106. data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
  107. data/rbi/telnyx/models/uac_connection.rbi +684 -0
  108. data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
  109. data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
  110. data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
  111. data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
  112. data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
  113. data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
  114. data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
  115. data/rbi/telnyx/models/uac_inbound.rbi +410 -0
  116. data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
  117. data/rbi/telnyx/models/uac_outbound.rbi +224 -0
  118. data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
  119. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
  120. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
  121. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
  122. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
  123. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
  124. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
  125. data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
  126. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
  127. data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
  128. data/rbi/telnyx/models.rbi +20 -0
  129. data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
  130. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
  131. data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
  132. data/rbi/telnyx/resources/calls/actions.rbi +6 -6
  133. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  134. data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
  135. data/rbi/telnyx/resources/uac_connections.rbi +7 -13
  136. data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
  137. data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
  138. data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -142
  139. data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
  140. data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
  141. data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
  142. data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -142
  143. data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
  144. data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
  145. data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
  146. data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
  147. data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
  148. data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
  149. data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
  150. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -145
  151. data/sig/telnyx/models/ai/inference_embedding.rbs +18 -142
  152. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
  153. data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -39
  154. data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
  155. data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
  156. data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
  157. data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -39
  158. data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
  159. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
  160. data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
  161. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
  162. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
  163. data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
  164. data/sig/telnyx/models/calls/transcription_start_request.rbs +2 -184
  165. data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
  166. data/sig/telnyx/models/model_metadata.rbs +32 -0
  167. data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
  168. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
  169. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
  170. data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
  171. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
  172. data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
  173. data/sig/telnyx/models/uac_connection.rbs +338 -0
  174. data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
  175. data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
  176. data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
  177. data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
  178. data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
  179. data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
  180. data/sig/telnyx/models/uac_external_settings.rbs +73 -0
  181. data/sig/telnyx/models/uac_inbound.rbs +190 -0
  182. data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
  183. data/sig/telnyx/models/uac_outbound.rbs +113 -0
  184. data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
  185. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
  186. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
  187. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
  188. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
  189. data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
  190. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
  191. data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
  192. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
  193. data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
  194. data/sig/telnyx/models.rbs +20 -0
  195. data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
  196. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  197. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  198. data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
  199. data/sig/telnyx/resources/uac_connections.rbs +7 -7
  200. data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
  201. data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
  202. metadata +68 -14
  203. data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
  204. data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
  205. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
  206. data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
  207. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
  208. data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
  209. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
  210. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
  211. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
  212. data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
  213. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
  214. data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
@@ -82,9 +82,8 @@ module Telnyx
82
82
  # `/ai/integrations/connections`. Each item references a catalog integration by
83
83
  # `integration_id`.
84
84
  #
85
- # @return [Array<Telnyx::Models::AI::Assistants::UpdateAssistant::Integration>, nil]
86
- optional :integrations,
87
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::UpdateAssistant::Integration] }
85
+ # @return [Array<Telnyx::Models::AI::AssistantIntegration>, nil]
86
+ optional :integrations, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantIntegration] }
88
87
 
89
88
  # @!attribute interruption_settings
90
89
  # Settings for interruptions and how the assistant decides the user has finished
@@ -94,8 +93,8 @@ module Telnyx
94
93
  # `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
95
94
  # `eager_eot_threshold`).
96
95
  #
97
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings, nil]
98
- optional :interruption_settings, -> { Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings }
96
+ # @return [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings, nil]
97
+ optional :interruption_settings, -> { Telnyx::AI::InferenceEmbeddingInterruptionSettings }
99
98
 
100
99
  # @!attribute llm_api_key_ref
101
100
  # This is only needed when using third-party inference providers selected by
@@ -112,9 +111,8 @@ module Telnyx
112
111
  # MCP servers attached to the assistant. Create MCP servers with
113
112
  # `/ai/mcp_servers`, then reference them by `id` here.
114
113
  #
115
- # @return [Array<Telnyx::Models::AI::Assistants::UpdateAssistant::McpServer>, nil]
116
- optional :mcp_servers,
117
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::Assistants::UpdateAssistant::McpServer] }
114
+ # @return [Array<Telnyx::Models::AI::AssistantMcpServer>, nil]
115
+ optional :mcp_servers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantMcpServer] }
118
116
 
119
117
  # @!attribute messaging_settings
120
118
  #
@@ -230,13 +228,13 @@ module Telnyx
230
228
  #
231
229
  # @param instructions [String] System instructions for the assistant. These may be templated with [dynamic vari
232
230
  #
233
- # @param integrations [Array<Telnyx::Models::AI::Assistants::UpdateAssistant::Integration>] Connected integrations attached to the assistant. The catalog of available integ
231
+ # @param integrations [Array<Telnyx::Models::AI::AssistantIntegration>] Connected integrations attached to the assistant. The catalog of available integ
234
232
  #
235
- # @param interruption_settings [Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
233
+ # @param interruption_settings [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
236
234
  #
237
235
  # @param llm_api_key_ref [String] This is only needed when using third-party inference providers selected by `mode
238
236
  #
239
- # @param mcp_servers [Array<Telnyx::Models::AI::Assistants::UpdateAssistant::McpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
237
+ # @param mcp_servers [Array<Telnyx::Models::AI::AssistantMcpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
240
238
  #
241
239
  # @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
242
240
  #
@@ -265,166 +263,6 @@ module Telnyx
265
263
  # @param voice_settings [Telnyx::Models::AI::VoiceSettings]
266
264
  #
267
265
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
268
-
269
- class Integration < Telnyx::Internal::Type::BaseModel
270
- # @!attribute integration_id
271
- # Catalog integration ID to attach. This is the `id` from the integrations catalog
272
- # at `/ai/integrations` (the same value also appears as `integration_id` on
273
- # entries returned by `/ai/integrations/connections`). It is **not** the
274
- # connection-level `id` from `/ai/integrations/connections`.
275
- #
276
- # @return [String]
277
- required :integration_id, String
278
-
279
- # @!attribute allowed_list
280
- # Optional per-assistant allowlist of integration tool names. When omitted or
281
- # empty, all tools allowed by the connected integration are available to the
282
- # assistant.
283
- #
284
- # @return [Array<String>, nil]
285
- optional :allowed_list, Telnyx::Internal::Type::ArrayOf[String]
286
-
287
- # @!method initialize(integration_id:, allowed_list: nil)
288
- # Some parameter documentations has been truncated, see
289
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::Integration} for more details.
290
- #
291
- # Reference to a connected integration attached to an assistant. Discover
292
- # available integrations with `/ai/integrations` and connected integrations with
293
- # `/ai/integrations/connections`.
294
- #
295
- # @param integration_id [String] Catalog integration ID to attach. This is the `id` from the integrations catalog
296
- #
297
- # @param allowed_list [Array<String>] Optional per-assistant allowlist of integration tool names. When omitted or empt
298
- end
299
-
300
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant#interruption_settings
301
- class InterruptionSettings < Telnyx::Internal::Type::BaseModel
302
- # @!attribute enable
303
- # Whether users can interrupt the assistant while it is speaking.
304
- #
305
- # @return [Boolean, nil]
306
- optional :enable, Telnyx::Internal::Type::Boolean
307
-
308
- # @!attribute start_speaking_plan
309
- # Controls when the assistant starts speaking after the user stops. These
310
- # thresholds primarily apply to non turn-taking transcription models. For
311
- # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
312
- # transcription end-of-turn settings under `transcription.settings` instead.
313
- #
314
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan, nil]
315
- optional :start_speaking_plan,
316
- -> { Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan }
317
-
318
- # @!method initialize(enable: nil, start_speaking_plan: nil)
319
- # Some parameter documentations has been truncated, see
320
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings} for more
321
- # details.
322
- #
323
- # Settings for interruptions and how the assistant decides the user has finished
324
- # speaking. These timings are most relevant when using non turn-taking
325
- # transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
326
- # behavior is controlled by the transcription end-of-turn settings under
327
- # `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
328
- # `eager_eot_threshold`).
329
- #
330
- # @param enable [Boolean] Whether users can interrupt the assistant while it is speaking.
331
- #
332
- # @param start_speaking_plan [Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan] Controls when the assistant starts speaking after the user stops. These threshol
333
-
334
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings#start_speaking_plan
335
- class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
336
- # @!attribute transcription_endpointing_plan
337
- # Endpointing thresholds used to decide when the user has finished speaking.
338
- # Applies to non turn-taking transcription models. For `deepgram/flux`, use
339
- # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
340
- # `eager_eot_threshold`.
341
- #
342
- # @return [Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan, nil]
343
- optional :transcription_endpointing_plan,
344
- -> { Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan }
345
-
346
- # @!attribute wait_seconds
347
- # Minimum seconds to wait before the assistant starts speaking.
348
- #
349
- # @return [Float, nil]
350
- optional :wait_seconds, Float
351
-
352
- # @!method initialize(transcription_endpointing_plan: nil, wait_seconds: nil)
353
- # Some parameter documentations has been truncated, see
354
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan}
355
- # for more details.
356
- #
357
- # Controls when the assistant starts speaking after the user stops. These
358
- # thresholds primarily apply to non turn-taking transcription models. For
359
- # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
360
- # transcription end-of-turn settings under `transcription.settings` instead.
361
- #
362
- # @param transcription_endpointing_plan [Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan] Endpointing thresholds used to decide when the user has finished speaking. Appli
363
- #
364
- # @param wait_seconds [Float] Minimum seconds to wait before the assistant starts speaking.
365
-
366
- # @see Telnyx::Models::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan#transcription_endpointing_plan
367
- class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
368
- # @!attribute on_no_punctuation_seconds
369
- # Seconds to wait after the transcript ends without punctuation.
370
- #
371
- # @return [Float, nil]
372
- optional :on_no_punctuation_seconds, Float
373
-
374
- # @!attribute on_number_seconds
375
- # Seconds to wait after the transcript ends with a number.
376
- #
377
- # @return [Float, nil]
378
- optional :on_number_seconds, Float
379
-
380
- # @!attribute on_punctuation_seconds
381
- # Seconds to wait after the transcript ends with punctuation.
382
- #
383
- # @return [Float, nil]
384
- optional :on_punctuation_seconds, Float
385
-
386
- # @!method initialize(on_no_punctuation_seconds: nil, on_number_seconds: nil, on_punctuation_seconds: nil)
387
- # Endpointing thresholds used to decide when the user has finished speaking.
388
- # Applies to non turn-taking transcription models. For `deepgram/flux`, use
389
- # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
390
- # `eager_eot_threshold`.
391
- #
392
- # @param on_no_punctuation_seconds [Float] Seconds to wait after the transcript ends without punctuation.
393
- #
394
- # @param on_number_seconds [Float] Seconds to wait after the transcript ends with a number.
395
- #
396
- # @param on_punctuation_seconds [Float] Seconds to wait after the transcript ends with punctuation.
397
- end
398
- end
399
- end
400
-
401
- class McpServer < Telnyx::Internal::Type::BaseModel
402
- # @!attribute id
403
- # ID of the MCP server to attach. This must be the `id` of an MCP server returned
404
- # by the `/ai/mcp_servers` endpoints.
405
- #
406
- # @return [String]
407
- required :id, String
408
-
409
- # @!attribute allowed_tools
410
- # Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
411
- # uses the MCP server's configured `allowed_tools`.
412
- #
413
- # @return [Array<String>, nil]
414
- optional :allowed_tools, Telnyx::Internal::Type::ArrayOf[String]
415
-
416
- # @!method initialize(id:, allowed_tools: nil)
417
- # Some parameter documentations has been truncated, see
418
- # {Telnyx::Models::AI::Assistants::UpdateAssistant::McpServer} for more details.
419
- #
420
- # Reference to an MCP server attached to an assistant. Create and manage MCP
421
- # servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
422
- # ID.
423
- #
424
- # @param id [String] ID of the MCP server to attach. This must be the `id` of an MCP server returned
425
- #
426
- # @param allowed_tools [Array<String>] Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
427
- end
428
266
  end
429
267
  end
430
268
 
@@ -112,9 +112,8 @@ module Telnyx
112
112
  # `/ai/integrations/connections`. Each item references a catalog integration by
113
113
  # `integration_id`.
114
114
  #
115
- # @return [Array<Telnyx::Models::AI::InferenceEmbedding::Integration>, nil]
116
- optional :integrations,
117
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::InferenceEmbedding::Integration] }
115
+ # @return [Array<Telnyx::Models::AI::AssistantIntegration>, nil]
116
+ optional :integrations, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantIntegration] }
118
117
 
119
118
  # @!attribute interruption_settings
120
119
  # Settings for interruptions and how the assistant decides the user has finished
@@ -124,8 +123,8 @@ module Telnyx
124
123
  # `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
125
124
  # `eager_eot_threshold`).
126
125
  #
127
- # @return [Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings, nil]
128
- optional :interruption_settings, -> { Telnyx::AI::InferenceEmbedding::InterruptionSettings }
126
+ # @return [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings, nil]
127
+ optional :interruption_settings, -> { Telnyx::AI::InferenceEmbeddingInterruptionSettings }
129
128
 
130
129
  # @!attribute llm_api_key_ref
131
130
  # This is only needed when using third-party inference providers selected by
@@ -142,8 +141,8 @@ module Telnyx
142
141
  # MCP servers attached to the assistant. Create MCP servers with
143
142
  # `/ai/mcp_servers`, then reference them by `id` here.
144
143
  #
145
- # @return [Array<Telnyx::Models::AI::InferenceEmbedding::McpServer>, nil]
146
- optional :mcp_servers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::InferenceEmbedding::McpServer] }
144
+ # @return [Array<Telnyx::Models::AI::AssistantMcpServer>, nil]
145
+ optional :mcp_servers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::AI::AssistantMcpServer] }
147
146
 
148
147
  # @!attribute messaging_settings
149
148
  #
@@ -266,13 +265,13 @@ module Telnyx
266
265
  #
267
266
  # @param insight_settings [Telnyx::Models::AI::InsightSettings]
268
267
  #
269
- # @param integrations [Array<Telnyx::Models::AI::InferenceEmbedding::Integration>] Connected integrations attached to the assistant. The catalog of available integ
268
+ # @param integrations [Array<Telnyx::Models::AI::AssistantIntegration>] Connected integrations attached to the assistant. The catalog of available integ
270
269
  #
271
- # @param interruption_settings [Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
270
+ # @param interruption_settings [Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings] Settings for interruptions and how the assistant decides the user has finished s
272
271
  #
273
272
  # @param llm_api_key_ref [String] This is only needed when using third-party inference providers selected by `mode
274
273
  #
275
- # @param mcp_servers [Array<Telnyx::Models::AI::InferenceEmbedding::McpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
274
+ # @param mcp_servers [Array<Telnyx::Models::AI::AssistantMcpServer>] MCP servers attached to the assistant. Create MCP servers with `/ai/mcp_servers`
276
275
  #
277
276
  # @param messaging_settings [Telnyx::Models::AI::MessagingSettings]
278
277
  #
@@ -301,165 +300,6 @@ module Telnyx
301
300
  # @param voice_settings [Telnyx::Models::AI::VoiceSettings]
302
301
  #
303
302
  # @param widget_settings [Telnyx::Models::AI::WidgetSettings] Configuration settings for the assistant's web widget.
304
-
305
- class Integration < Telnyx::Internal::Type::BaseModel
306
- # @!attribute integration_id
307
- # Catalog integration ID to attach. This is the `id` from the integrations catalog
308
- # at `/ai/integrations` (the same value also appears as `integration_id` on
309
- # entries returned by `/ai/integrations/connections`). It is **not** the
310
- # connection-level `id` from `/ai/integrations/connections`.
311
- #
312
- # @return [String]
313
- required :integration_id, String
314
-
315
- # @!attribute allowed_list
316
- # Optional per-assistant allowlist of integration tool names. When omitted or
317
- # empty, all tools allowed by the connected integration are available to the
318
- # assistant.
319
- #
320
- # @return [Array<String>, nil]
321
- optional :allowed_list, Telnyx::Internal::Type::ArrayOf[String]
322
-
323
- # @!method initialize(integration_id:, allowed_list: nil)
324
- # Some parameter documentations has been truncated, see
325
- # {Telnyx::Models::AI::InferenceEmbedding::Integration} for more details.
326
- #
327
- # Reference to a connected integration attached to an assistant. Discover
328
- # available integrations with `/ai/integrations` and connected integrations with
329
- # `/ai/integrations/connections`.
330
- #
331
- # @param integration_id [String] Catalog integration ID to attach. This is the `id` from the integrations catalog
332
- #
333
- # @param allowed_list [Array<String>] Optional per-assistant allowlist of integration tool names. When omitted or empt
334
- end
335
-
336
- # @see Telnyx::Models::AI::InferenceEmbedding#interruption_settings
337
- class InterruptionSettings < Telnyx::Internal::Type::BaseModel
338
- # @!attribute enable
339
- # Whether users can interrupt the assistant while it is speaking.
340
- #
341
- # @return [Boolean, nil]
342
- optional :enable, Telnyx::Internal::Type::Boolean
343
-
344
- # @!attribute start_speaking_plan
345
- # Controls when the assistant starts speaking after the user stops. These
346
- # thresholds primarily apply to non turn-taking transcription models. For
347
- # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
348
- # transcription end-of-turn settings under `transcription.settings` instead.
349
- #
350
- # @return [Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan, nil]
351
- optional :start_speaking_plan,
352
- -> { Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan }
353
-
354
- # @!method initialize(enable: nil, start_speaking_plan: nil)
355
- # Some parameter documentations has been truncated, see
356
- # {Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings} for more details.
357
- #
358
- # Settings for interruptions and how the assistant decides the user has finished
359
- # speaking. These timings are most relevant when using non turn-taking
360
- # transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
361
- # behavior is controlled by the transcription end-of-turn settings under
362
- # `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
363
- # `eager_eot_threshold`).
364
- #
365
- # @param enable [Boolean] Whether users can interrupt the assistant while it is speaking.
366
- #
367
- # @param start_speaking_plan [Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan] Controls when the assistant starts speaking after the user stops. These threshol
368
-
369
- # @see Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings#start_speaking_plan
370
- class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
371
- # @!attribute transcription_endpointing_plan
372
- # Endpointing thresholds used to decide when the user has finished speaking.
373
- # Applies to non turn-taking transcription models. For `deepgram/flux`, use
374
- # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
375
- # `eager_eot_threshold`.
376
- #
377
- # @return [Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan, nil]
378
- optional :transcription_endpointing_plan,
379
- -> { Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan }
380
-
381
- # @!attribute wait_seconds
382
- # Minimum seconds to wait before the assistant starts speaking.
383
- #
384
- # @return [Float, nil]
385
- optional :wait_seconds, Float
386
-
387
- # @!method initialize(transcription_endpointing_plan: nil, wait_seconds: nil)
388
- # Some parameter documentations has been truncated, see
389
- # {Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan}
390
- # for more details.
391
- #
392
- # Controls when the assistant starts speaking after the user stops. These
393
- # thresholds primarily apply to non turn-taking transcription models. For
394
- # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
395
- # transcription end-of-turn settings under `transcription.settings` instead.
396
- #
397
- # @param transcription_endpointing_plan [Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan] Endpointing thresholds used to decide when the user has finished speaking. Appli
398
- #
399
- # @param wait_seconds [Float] Minimum seconds to wait before the assistant starts speaking.
400
-
401
- # @see Telnyx::Models::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan#transcription_endpointing_plan
402
- class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
403
- # @!attribute on_no_punctuation_seconds
404
- # Seconds to wait after the transcript ends without punctuation.
405
- #
406
- # @return [Float, nil]
407
- optional :on_no_punctuation_seconds, Float
408
-
409
- # @!attribute on_number_seconds
410
- # Seconds to wait after the transcript ends with a number.
411
- #
412
- # @return [Float, nil]
413
- optional :on_number_seconds, Float
414
-
415
- # @!attribute on_punctuation_seconds
416
- # Seconds to wait after the transcript ends with punctuation.
417
- #
418
- # @return [Float, nil]
419
- optional :on_punctuation_seconds, Float
420
-
421
- # @!method initialize(on_no_punctuation_seconds: nil, on_number_seconds: nil, on_punctuation_seconds: nil)
422
- # Endpointing thresholds used to decide when the user has finished speaking.
423
- # Applies to non turn-taking transcription models. For `deepgram/flux`, use
424
- # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
425
- # `eager_eot_threshold`.
426
- #
427
- # @param on_no_punctuation_seconds [Float] Seconds to wait after the transcript ends without punctuation.
428
- #
429
- # @param on_number_seconds [Float] Seconds to wait after the transcript ends with a number.
430
- #
431
- # @param on_punctuation_seconds [Float] Seconds to wait after the transcript ends with punctuation.
432
- end
433
- end
434
- end
435
-
436
- class McpServer < Telnyx::Internal::Type::BaseModel
437
- # @!attribute id
438
- # ID of the MCP server to attach. This must be the `id` of an MCP server returned
439
- # by the `/ai/mcp_servers` endpoints.
440
- #
441
- # @return [String]
442
- required :id, String
443
-
444
- # @!attribute allowed_tools
445
- # Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
446
- # uses the MCP server's configured `allowed_tools`.
447
- #
448
- # @return [Array<String>, nil]
449
- optional :allowed_tools, Telnyx::Internal::Type::ArrayOf[String]
450
-
451
- # @!method initialize(id:, allowed_tools: nil)
452
- # Some parameter documentations has been truncated, see
453
- # {Telnyx::Models::AI::InferenceEmbedding::McpServer} for more details.
454
- #
455
- # Reference to an MCP server attached to an assistant. Create and manage MCP
456
- # servers with the `/ai/mcp_servers` endpoints, then attach them to assistants by
457
- # ID.
458
- #
459
- # @param id [String] ID of the MCP server to attach. This must be the `id` of an MCP server returned
460
- #
461
- # @param allowed_tools [Array<String>] Optional per-assistant allowlist of MCP tool names. When omitted, the assistant
462
- end
463
303
  end
464
304
  end
465
305
  end
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class InferenceEmbeddingInterruptionSettings < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute disable_greeting_interruption
8
+ # When true, disables user interruptions while the assistant greeting is playing.
9
+ #
10
+ # @return [Boolean, nil]
11
+ optional :disable_greeting_interruption, Telnyx::Internal::Type::Boolean
12
+
13
+ # @!attribute enable
14
+ # Whether users can interrupt the assistant while it is speaking.
15
+ #
16
+ # @return [Boolean, nil]
17
+ optional :enable, Telnyx::Internal::Type::Boolean
18
+
19
+ # @!attribute start_speaking_plan
20
+ # Controls when the assistant starts speaking after the user stops. These
21
+ # thresholds primarily apply to non turn-taking transcription models. For
22
+ # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
23
+ # transcription end-of-turn settings under `transcription.settings` instead.
24
+ #
25
+ # @return [Telnyx::Models::AI::StartSpeakingPlan, nil]
26
+ optional :start_speaking_plan, -> { Telnyx::AI::StartSpeakingPlan }
27
+
28
+ # @!method initialize(disable_greeting_interruption: nil, enable: nil, start_speaking_plan: nil)
29
+ # Some parameter documentations has been truncated, see
30
+ # {Telnyx::Models::AI::InferenceEmbeddingInterruptionSettings} for more details.
31
+ #
32
+ # Settings for interruptions and how the assistant decides the user has finished
33
+ # speaking. These timings are most relevant when using non turn-taking
34
+ # transcription models. For turn-taking models like `deepgram/flux`, end-of-turn
35
+ # behavior is controlled by the transcription end-of-turn settings under
36
+ # `transcription.settings` (`eot_threshold`, `eot_timeout_ms`,
37
+ # `eager_eot_threshold`).
38
+ #
39
+ # @param disable_greeting_interruption [Boolean] When true, disables user interruptions while the assistant greeting is playing.
40
+ #
41
+ # @param enable [Boolean] Whether users can interrupt the assistant while it is speaking.
42
+ #
43
+ # @param start_speaking_plan [Telnyx::Models::AI::StartSpeakingPlan] Controls when the assistant starts speaking after the user stops. These threshol
44
+ end
45
+ end
46
+ end
47
+ end
@@ -7,8 +7,8 @@ module Telnyx
7
7
  class OpenAIListModelsResponse < Telnyx::Internal::Type::BaseModel
8
8
  # @!attribute data
9
9
  #
10
- # @return [Array<Telnyx::Models::AI::OpenAIListModelsResponse::Data>]
11
- required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::AI::OpenAIListModelsResponse::Data] }
10
+ # @return [Array<Telnyx::Models::ModelMetadata>]
11
+ required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::ModelMetadata] }
12
12
 
13
13
  # @!attribute object
14
14
  #
@@ -16,36 +16,8 @@ module Telnyx
16
16
  optional :object, String
17
17
 
18
18
  # @!method initialize(data:, object: nil)
19
- # @param data [Array<Telnyx::Models::AI::OpenAIListModelsResponse::Data>]
19
+ # @param data [Array<Telnyx::Models::ModelMetadata>]
20
20
  # @param object [String]
21
-
22
- class Data < Telnyx::Internal::Type::BaseModel
23
- # @!attribute id
24
- #
25
- # @return [String]
26
- required :id, String
27
-
28
- # @!attribute created
29
- #
30
- # @return [Integer]
31
- required :created, Integer
32
-
33
- # @!attribute owned_by
34
- #
35
- # @return [String]
36
- required :owned_by, String
37
-
38
- # @!attribute object
39
- #
40
- # @return [String, nil]
41
- optional :object, String
42
-
43
- # @!method initialize(id:, created:, owned_by:, object: nil)
44
- # @param id [String]
45
- # @param created [Integer]
46
- # @param owned_by [String]
47
- # @param object [String]
48
- end
49
21
  end
50
22
  end
51
23
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute transcription_endpointing_plan
8
+ # Endpointing thresholds used to decide when the user has finished speaking.
9
+ # Applies to non turn-taking transcription models. For `deepgram/flux`, use
10
+ # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
11
+ # `eager_eot_threshold`.
12
+ #
13
+ # @return [Telnyx::Models::AI::TranscriptionEndpointingPlan, nil]
14
+ optional :transcription_endpointing_plan, -> { Telnyx::AI::TranscriptionEndpointingPlan }
15
+
16
+ # @!attribute wait_seconds
17
+ # Minimum seconds to wait before the assistant starts speaking.
18
+ #
19
+ # @return [Float, nil]
20
+ optional :wait_seconds, Float
21
+
22
+ # @!method initialize(transcription_endpointing_plan: nil, wait_seconds: nil)
23
+ # Some parameter documentations has been truncated, see
24
+ # {Telnyx::Models::AI::StartSpeakingPlan} for more details.
25
+ #
26
+ # Controls when the assistant starts speaking after the user stops. These
27
+ # thresholds primarily apply to non turn-taking transcription models. For
28
+ # turn-taking models like `deepgram/flux`, end-of-turn detection is driven by the
29
+ # transcription end-of-turn settings under `transcription.settings` instead.
30
+ #
31
+ # @param transcription_endpointing_plan [Telnyx::Models::AI::TranscriptionEndpointingPlan] Endpointing thresholds used to decide when the user has finished speaking. Appli
32
+ #
33
+ # @param wait_seconds [Float] Minimum seconds to wait before the assistant starts speaking.
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module AI
6
+ class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
7
+ # @!attribute on_no_punctuation_seconds
8
+ # Seconds to wait after the transcript ends without punctuation.
9
+ #
10
+ # @return [Float, nil]
11
+ optional :on_no_punctuation_seconds, Float
12
+
13
+ # @!attribute on_number_seconds
14
+ # Seconds to wait after the transcript ends with a number.
15
+ #
16
+ # @return [Float, nil]
17
+ optional :on_number_seconds, Float
18
+
19
+ # @!attribute on_punctuation_seconds
20
+ # Seconds to wait after the transcript ends with punctuation.
21
+ #
22
+ # @return [Float, nil]
23
+ optional :on_punctuation_seconds, Float
24
+
25
+ # @!method initialize(on_no_punctuation_seconds: nil, on_number_seconds: nil, on_punctuation_seconds: nil)
26
+ # Endpointing thresholds used to decide when the user has finished speaking.
27
+ # Applies to non turn-taking transcription models. For `deepgram/flux`, use
28
+ # `transcription.settings.eot_threshold` / `eot_timeout_ms` /
29
+ # `eager_eot_threshold`.
30
+ #
31
+ # @param on_no_punctuation_seconds [Float] Seconds to wait after the transcript ends without punctuation.
32
+ #
33
+ # @param on_number_seconds [Float] Seconds to wait after the transcript ends with a number.
34
+ #
35
+ # @param on_punctuation_seconds [Float] Seconds to wait after the transcript ends with punctuation.
36
+ end
37
+ end
38
+ end
39
+ end
@@ -32,7 +32,7 @@ module Telnyx
32
32
  # variable string like `{{ targets }}` where `targets` is returned by the dynamic
33
33
  # variables webhook and resolves to an array of target objects at runtime.
34
34
  #
35
- # @return [Array<Telnyx::Models::AI::TransferTool::Transfer::Targets::UnionMember0>, String]
35
+ # @return [Array<Telnyx::Models::AI::TransferTool::Transfer::Targets::TargetsList>, String]
36
36
  required :targets, union: -> { Telnyx::AI::TransferTool::Transfer::Targets }
37
37
 
38
38
  # @!method initialize(from:, targets:)
@@ -41,7 +41,7 @@ module Telnyx
41
41
  #
42
42
  # @param from [String] Number or SIP URI placing the call.
43
43
  #
44
- # @param targets [Array<Telnyx::Models::AI::TransferTool::Transfer::Targets::UnionMember0>, String] The different possible targets of the transfer. The assistant will be able to ch
44
+ # @param targets [Array<Telnyx::Models::AI::TransferTool::Transfer::Targets::TargetsList>, String] The different possible targets of the transfer. The assistant will be able to ch
45
45
 
46
46
  # The different possible targets of the transfer. The assistant will be able to
47
47
  # choose one of the targets to transfer the call to. This can also be a dynamic
@@ -52,12 +52,12 @@ module Telnyx
52
52
  module Targets
53
53
  extend Telnyx::Internal::Type::Union
54
54
 
55
- variant -> { Telnyx::Models::AI::TransferTool::Transfer::Targets::UnionMember0Array }
55
+ variant -> { Telnyx::Models::AI::TransferTool::Transfer::Targets::TargetsListArray }
56
56
 
57
57
  # A dynamic variable string like `{{ targets }}` where `targets` is returned by the dynamic variables webhook and resolves to an array of target objects at runtime.
58
58
  variant String
59
59
 
60
- class UnionMember0 < Telnyx::Internal::Type::BaseModel
60
+ class TargetsList < Telnyx::Internal::Type::BaseModel
61
61
  # @!attribute to
62
62
  # The destination number or SIP URI of the call.
63
63
  #
@@ -77,13 +77,11 @@ module Telnyx
77
77
  end
78
78
 
79
79
  # @!method self.variants
80
- # @return [Array(Array<Telnyx::Models::AI::TransferTool::Transfer::Targets::UnionMember0>, String)]
80
+ # @return [Array(Array<Telnyx::Models::AI::TransferTool::Transfer::Targets::TargetsList>, String)]
81
81
 
82
82
  # @type [Telnyx::Internal::Type::Converter]
83
- UnionMember0Array =
84
- Telnyx::Internal::Type::ArrayOf[-> {
85
- Telnyx::AI::TransferTool::Transfer::Targets::UnionMember0
86
- }]
83
+ TargetsListArray =
84
+ Telnyx::Internal::Type::ArrayOf[-> { Telnyx::AI::TransferTool::Transfer::Targets::TargetsList }]
87
85
  end
88
86
  end
89
87