telnyx 5.111.0 → 5.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/models/ai/assistant_create_params.rb +178 -9
  5. data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
  6. data/lib/telnyx/models/ai/assistant_update_params.rb +178 -9
  7. data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
  8. data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
  9. data/lib/telnyx/models/ai/assistants/update_assistant.rb +179 -9
  10. data/lib/telnyx/models/ai/inference_embedding.rb +177 -9
  11. data/lib/telnyx/models/ai/openai_list_models_response.rb +210 -3
  12. data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
  13. data/lib/telnyx/models/ai_retrieve_models_response.rb +210 -3
  14. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
  15. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
  16. data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
  17. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
  18. data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +491 -0
  19. data/lib/telnyx/models/calls/action_start_conversation_relay_response.rb +37 -0
  20. data/lib/telnyx/models/calls/action_stop_conversation_relay_params.rb +44 -0
  21. data/lib/telnyx/models/calls/action_stop_conversation_relay_response.rb +18 -0
  22. data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
  23. data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
  24. data/lib/telnyx/models/network_list_interfaces_response.rb +2 -112
  25. data/lib/telnyx/models/public_internet_gateway_create_response.rb +8 -3
  26. data/lib/telnyx/models/public_internet_gateway_delete_response.rb +8 -3
  27. data/lib/telnyx/models/public_internet_gateway_list_response.rb +10 -0
  28. data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +8 -3
  29. data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
  30. data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
  31. data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
  32. data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
  33. data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
  34. data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
  35. data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
  36. data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
  37. data/lib/telnyx/models/virtual_cross_connect_create_response.rb +8 -3
  38. data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +8 -3
  39. data/lib/telnyx/models/virtual_cross_connect_list_response.rb +10 -0
  40. data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +8 -3
  41. data/lib/telnyx/models/virtual_cross_connect_update_response.rb +8 -3
  42. data/lib/telnyx/models/wireguard_interface_create_response.rb +8 -3
  43. data/lib/telnyx/models/wireguard_interface_delete_response.rb +8 -3
  44. data/lib/telnyx/models/wireguard_interface_list_response.rb +10 -0
  45. data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +8 -3
  46. data/lib/telnyx/models.rb +0 -20
  47. data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
  48. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  49. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  50. data/lib/telnyx/resources/calls/actions.rb +101 -5
  51. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  52. data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
  53. data/lib/telnyx/resources/uac_connections.rb +8 -8
  54. data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
  55. data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
  56. data/lib/telnyx/version.rb +1 -1
  57. data/lib/telnyx.rb +8 -22
  58. data/rbi/telnyx/models/ai/assistant_create_params.rbi +352 -12
  59. data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
  60. data/rbi/telnyx/models/ai/assistant_update_params.rbi +352 -12
  61. data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
  62. data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
  63. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +366 -12
  64. data/rbi/telnyx/models/ai/inference_embedding.rbi +351 -12
  65. data/rbi/telnyx/models/ai/openai_list_models_response.rbi +315 -3
  66. data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
  67. data/rbi/telnyx/models/ai_retrieve_models_response.rbi +310 -3
  68. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
  69. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
  70. data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
  71. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
  72. data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +1075 -0
  73. data/rbi/telnyx/models/calls/action_start_conversation_relay_response.rbi +95 -0
  74. data/rbi/telnyx/models/calls/action_stop_conversation_relay_params.rbi +72 -0
  75. data/rbi/telnyx/models/calls/action_stop_conversation_relay_response.rbi +39 -0
  76. data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
  77. data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
  78. data/rbi/telnyx/models/network_list_interfaces_response.rbi +4 -181
  79. data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +38 -6
  80. data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +38 -6
  81. data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +23 -0
  82. data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +38 -6
  83. data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
  84. data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
  85. data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
  86. data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
  87. data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
  88. data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
  89. data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
  90. data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
  91. data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +36 -6
  92. data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +36 -6
  93. data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +23 -0
  94. data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +38 -6
  95. data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +36 -6
  96. data/rbi/telnyx/models/wireguard_interface_create_response.rbi +36 -6
  97. data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +36 -6
  98. data/rbi/telnyx/models/wireguard_interface_list_response.rbi +23 -0
  99. data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +36 -6
  100. data/rbi/telnyx/models.rbi +0 -20
  101. data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
  102. data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
  103. data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
  104. data/rbi/telnyx/resources/calls/actions.rbi +152 -6
  105. data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
  106. data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
  107. data/rbi/telnyx/resources/uac_connections.rbi +13 -7
  108. data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
  109. data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
  110. data/sig/telnyx/models/ai/assistant_create_params.rbs +149 -18
  111. data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
  112. data/sig/telnyx/models/ai/assistant_update_params.rbs +149 -18
  113. data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
  114. data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
  115. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +152 -18
  116. data/sig/telnyx/models/ai/inference_embedding.rbs +149 -18
  117. data/sig/telnyx/models/ai/openai_list_models_response.rbs +149 -4
  118. data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
  119. data/sig/telnyx/models/ai_retrieve_models_response.rbs +149 -4
  120. data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
  121. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
  122. data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
  123. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
  124. data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +416 -0
  125. data/sig/telnyx/models/calls/action_start_conversation_relay_response.rbs +45 -0
  126. data/sig/telnyx/models/calls/action_stop_conversation_relay_params.rbs +38 -0
  127. data/sig/telnyx/models/calls/action_stop_conversation_relay_response.rbs +20 -0
  128. data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
  129. data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
  130. data/sig/telnyx/models/network_list_interfaces_response.rbs +4 -106
  131. data/sig/telnyx/models/public_internet_gateway_create_response.rbs +18 -6
  132. data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +18 -6
  133. data/sig/telnyx/models/public_internet_gateway_list_response.rbs +11 -0
  134. data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +18 -6
  135. data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
  136. data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
  137. data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
  138. data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
  139. data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
  140. data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
  141. data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
  142. data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
  143. data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +18 -6
  144. data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +18 -6
  145. data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +11 -0
  146. data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +18 -6
  147. data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +18 -6
  148. data/sig/telnyx/models/wireguard_interface_create_response.rbs +18 -6
  149. data/sig/telnyx/models/wireguard_interface_delete_response.rbs +18 -6
  150. data/sig/telnyx/models/wireguard_interface_list_response.rbs +11 -0
  151. data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +18 -6
  152. data/sig/telnyx/models.rbs +0 -20
  153. data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
  154. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  155. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  156. data/sig/telnyx/resources/calls/actions.rbs +29 -0
  157. data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
  158. data/sig/telnyx/resources/uac_connections.rbs +7 -7
  159. data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
  160. data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
  161. metadata +26 -68
  162. data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
  163. data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
  164. data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
  165. data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
  166. data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
  167. data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
  168. data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
  169. data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -47
  170. data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
  171. data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
  172. data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
  173. data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
  174. data/lib/telnyx/models/model_metadata.rb +0 -212
  175. data/lib/telnyx/models/public_internet_gateway_read.rb +0 -83
  176. data/lib/telnyx/models/uac_connection.rb +0 -412
  177. data/lib/telnyx/models/uac_external_settings.rb +0 -101
  178. data/lib/telnyx/models/uac_inbound.rb +0 -210
  179. data/lib/telnyx/models/uac_internal_settings.rb +0 -25
  180. data/lib/telnyx/models/uac_outbound.rb +0 -131
  181. data/lib/telnyx/models/virtual_cross_connect_combined.rb +0 -212
  182. data/lib/telnyx/models/wireguard_interface_read.rb +0 -136
  183. data/lib/telnyx/models/xai_voice_settings.rb +0 -36
  184. data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
  185. data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
  186. data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
  187. data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
  188. data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
  189. data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
  190. data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
  191. data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -83
  192. data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
  193. data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
  194. data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
  195. data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
  196. data/rbi/telnyx/models/model_metadata.rbi +0 -272
  197. data/rbi/telnyx/models/public_internet_gateway_read.rbi +0 -128
  198. data/rbi/telnyx/models/uac_connection.rbi +0 -684
  199. data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
  200. data/rbi/telnyx/models/uac_inbound.rbi +0 -410
  201. data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
  202. data/rbi/telnyx/models/uac_outbound.rbi +0 -224
  203. data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +0 -345
  204. data/rbi/telnyx/models/wireguard_interface_read.rbi +0 -213
  205. data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
  206. data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
  207. data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
  208. data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
  209. data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
  210. data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
  211. data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
  212. data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
  213. data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -40
  214. data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
  215. data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
  216. data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
  217. data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
  218. data/sig/telnyx/models/model_metadata.rbs +0 -142
  219. data/sig/telnyx/models/public_internet_gateway_read.rbs +0 -80
  220. data/sig/telnyx/models/uac_connection.rbs +0 -338
  221. data/sig/telnyx/models/uac_external_settings.rbs +0 -73
  222. data/sig/telnyx/models/uac_inbound.rbs +0 -190
  223. data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
  224. data/sig/telnyx/models/uac_outbound.rbs +0 -113
  225. data/sig/telnyx/models/virtual_cross_connect_combined.rbs +0 -190
  226. data/sig/telnyx/models/wireguard_interface_read.rbs +0 -127
  227. data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
@@ -6,8 +6,8 @@ module Telnyx
6
6
  class AIRetrieveModelsResponse < Telnyx::Internal::Type::BaseModel
7
7
  # @!attribute data
8
8
  #
9
- # @return [Array<Telnyx::Models::ModelMetadata>]
10
- required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::ModelMetadata] }
9
+ # @return [Array<Telnyx::Models::AIRetrieveModelsResponse::Data>]
10
+ required :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::AIRetrieveModelsResponse::Data] }
11
11
 
12
12
  # @!attribute object
13
13
  #
@@ -15,8 +15,215 @@ module Telnyx
15
15
  optional :object, String
16
16
 
17
17
  # @!method initialize(data:, object: nil)
18
- # @param data [Array<Telnyx::Models::ModelMetadata>]
18
+ # @param data [Array<Telnyx::Models::AIRetrieveModelsResponse::Data>]
19
19
  # @param object [String]
20
+
21
+ class Data < Telnyx::Internal::Type::BaseModel
22
+ # @!attribute id
23
+ # Model identifier. For open-source models, follows the
24
+ # `{organization}/{model_name}` convention from Hugging Face (e.g.
25
+ # `moonshotai/Kimi-K2.6`).
26
+ #
27
+ # @return [String]
28
+ required :id, String
29
+
30
+ # @!attribute context_length
31
+ # Maximum total tokens (prompt + completion) supported by the model in a single
32
+ # request.
33
+ #
34
+ # @return [Integer]
35
+ required :context_length, Integer
36
+
37
+ # @!attribute created
38
+ # Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
39
+ #
40
+ # @return [Time]
41
+ required :created, Time
42
+
43
+ # @!attribute languages
44
+ # ISO language codes the model supports (e.g. `en`, `es`).
45
+ #
46
+ # @return [Array<String>]
47
+ required :languages, Telnyx::Internal::Type::ArrayOf[String]
48
+
49
+ # @!attribute license
50
+ # License the model is distributed under, e.g. `Apache 2.0`, `MIT`,
51
+ # `Llama 3 Community License`.
52
+ #
53
+ # @return [String]
54
+ required :license, String
55
+
56
+ # @!attribute organization
57
+ # Organization that originally published the model, matching the prefix of `id`
58
+ # for open-source models.
59
+ #
60
+ # @return [String]
61
+ required :organization, String
62
+
63
+ # @!attribute owned_by
64
+ # Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
65
+ # provider name for proxied models, or the Telnyx organization id for fine-tuned
66
+ # models.
67
+ #
68
+ # @return [String]
69
+ required :owned_by, String
70
+
71
+ # @!attribute parameters
72
+ # Total parameter count of the model.
73
+ #
74
+ # @return [Integer]
75
+ required :parameters, Integer
76
+
77
+ # @!attribute tier
78
+ # Billing tier the model belongs to. Used together with `pricing` to determine
79
+ # cost per 1M tokens.
80
+ #
81
+ # @return [Symbol, Telnyx::Models::AIRetrieveModelsResponse::Data::Tier]
82
+ required :tier, enum: -> { Telnyx::Models::AIRetrieveModelsResponse::Data::Tier }
83
+
84
+ # @!attribute base_model
85
+ # Base model the fine-tuned model was trained from. Only set for fine-tuned
86
+ # models.
87
+ #
88
+ # @return [String, nil]
89
+ optional :base_model, String, nil?: true
90
+
91
+ # @!attribute description
92
+ # Short, human-readable summary of what the model is best suited for.
93
+ #
94
+ # @return [String, nil]
95
+ optional :description, String, nil?: true
96
+
97
+ # @!attribute is_fine_tunable
98
+ # Whether the model can be used as a base for a fine-tuning job via
99
+ # `POST /v2/ai/fine_tuning/jobs`.
100
+ #
101
+ # @return [Boolean, nil]
102
+ optional :is_fine_tunable, Telnyx::Internal::Type::Boolean
103
+
104
+ # @!attribute is_vision_supported
105
+ # Whether the model accepts image inputs in chat completions (multimodal vision
106
+ # support).
107
+ #
108
+ # @return [Boolean, nil]
109
+ optional :is_vision_supported, Telnyx::Internal::Type::Boolean
110
+
111
+ # @!attribute max_completion_tokens
112
+ # Maximum number of completion (output) tokens the model will generate per
113
+ # request. `null` if unconstrained beyond `context_length`.
114
+ #
115
+ # @return [Integer, nil]
116
+ optional :max_completion_tokens, Integer, nil?: true
117
+
118
+ # @!attribute object
119
+ # Object type. Always `model`.
120
+ #
121
+ # @return [String, nil]
122
+ optional :object, String
123
+
124
+ # @!attribute parameters_str
125
+ # Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
126
+ #
127
+ # @return [String, nil]
128
+ optional :parameters_str, String, nil?: true
129
+
130
+ # @!attribute pricing
131
+ # Mapping of token kind to price, as strings to preserve precision. Typical keys
132
+ # are `prompt`, `cached_prompt`, and `completion`. When pricing is available the
133
+ # block also includes `currency` (ISO 4217 code matching the account's configured
134
+ # billing currency) and `unit` (the denomination the prices are quoted in,
135
+ # currently always `1M_tokens` for token-priced models).
136
+ #
137
+ # @return [Hash{Symbol=>String}, nil]
138
+ optional :pricing, Telnyx::Internal::Type::HashOf[String]
139
+
140
+ # @!attribute recommended_for_assistants
141
+ # Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI
142
+ # Assistant.
143
+ #
144
+ # @return [Boolean, nil]
145
+ optional :recommended_for_assistants, Telnyx::Internal::Type::Boolean
146
+
147
+ # @!attribute regions
148
+ # Public region names where the model is currently deployed (e.g. `us-central-1`,
149
+ # `eu-central-1`).
150
+ #
151
+ # @return [Array<String>, nil]
152
+ optional :regions, Telnyx::Internal::Type::ArrayOf[String]
153
+
154
+ # @!attribute task
155
+ # Primary task the model is intended for, e.g. `text-generation`,
156
+ # `audio-text-to-text`, `feature-extraction` (embeddings).
157
+ #
158
+ # @return [String, nil]
159
+ optional :task, String
160
+
161
+ # @!method initialize(id:, context_length:, created:, languages:, license:, organization:, owned_by:, parameters:, tier:, base_model: nil, description: nil, is_fine_tunable: nil, is_vision_supported: nil, max_completion_tokens: nil, object: nil, parameters_str: nil, pricing: nil, recommended_for_assistants: nil, regions: nil, task: nil)
162
+ # Some parameter documentations has been truncated, see
163
+ # {Telnyx::Models::AIRetrieveModelsResponse::Data} for more details.
164
+ #
165
+ # Metadata for a model available on Telnyx Inference. Returned by
166
+ # `GET /v2/ai/openai/models` (and the deprecated `GET /v2/ai/models`). Open-source
167
+ # models live under their Hugging Face organization (e.g. `moonshotai/Kimi-K2.6`,
168
+ # `zai-org/GLM-5.1-FP8`, `MiniMaxAI/MiniMax-M2.7`); fine-tuned models are owned by
169
+ # the Telnyx organization that trained them.
170
+ #
171
+ # @param id [String] Model identifier. For open-source models, follows the `{organization}/{model_nam
172
+ #
173
+ # @param context_length [Integer] Maximum total tokens (prompt + completion) supported by the model in a single re
174
+ #
175
+ # @param created [Time] Timestamp at which the model was registered on Telnyx Inference (ISO 8601).
176
+ #
177
+ # @param languages [Array<String>] ISO language codes the model supports (e.g. `en`, `es`).
178
+ #
179
+ # @param license [String] License the model is distributed under, e.g. `Apache 2.0`, `MIT`, `Llama 3 Commu
180
+ #
181
+ # @param organization [String] Organization that originally published the model, matching the prefix of `id` fo
182
+ #
183
+ # @param owned_by [String] Owner of the model. `Telnyx` for Telnyx-hosted open-source models, the upstream
184
+ #
185
+ # @param parameters [Integer] Total parameter count of the model.
186
+ #
187
+ # @param tier [Symbol, Telnyx::Models::AIRetrieveModelsResponse::Data::Tier] Billing tier the model belongs to. Used together with `pricing` to determine cos
188
+ #
189
+ # @param base_model [String, nil] Base model the fine-tuned model was trained from. Only set for fine-tuned models
190
+ #
191
+ # @param description [String, nil] Short, human-readable summary of what the model is best suited for.
192
+ #
193
+ # @param is_fine_tunable [Boolean] Whether the model can be used as a base for a fine-tuning job via `POST /v2/ai/f
194
+ #
195
+ # @param is_vision_supported [Boolean] Whether the model accepts image inputs in chat completions (multimodal vision su
196
+ #
197
+ # @param max_completion_tokens [Integer, nil] Maximum number of completion (output) tokens the model will generate per request
198
+ #
199
+ # @param object [String] Object type. Always `model`.
200
+ #
201
+ # @param parameters_str [String, nil] Human-readable parameter count, e.g. `1.0T`, `753.9B`, `8B`.
202
+ #
203
+ # @param pricing [Hash{Symbol=>String}] Mapping of token kind to price, as strings to preserve precision. Typical keys a
204
+ #
205
+ # @param recommended_for_assistants [Boolean] Whether Telnyx currently recommends this model as the LLM powering a Telnyx AI A
206
+ #
207
+ # @param regions [Array<String>] Public region names where the model is currently deployed (e.g. `us-central-1`,
208
+ #
209
+ # @param task [String] Primary task the model is intended for, e.g. `text-generation`, `audio-text-to-t
210
+
211
+ # Billing tier the model belongs to. Used together with `pricing` to determine
212
+ # cost per 1M tokens.
213
+ #
214
+ # @see Telnyx::Models::AIRetrieveModelsResponse::Data#tier
215
+ module Tier
216
+ extend Telnyx::Internal::Type::Enum
217
+
218
+ SMALL = :small
219
+ MEDIUM = :medium
220
+ LARGE = :large
221
+ UNLISTED = :unlisted
222
+
223
+ # @!method self.values
224
+ # @return [Array<Symbol>]
225
+ end
226
+ end
20
227
  end
21
228
  end
22
229
  end
@@ -144,7 +144,7 @@ module Telnyx
144
144
  # @!attribute voice_settings
145
145
  # The settings associated with the voice selected
146
146
  #
147
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
147
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai, nil]
148
148
  optional :voice_settings, union: -> { Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings }
149
149
 
150
150
  # @!method initialize(call_control_id:, parameters:, assistant: nil, client_state: nil, command_id: nil, gather_ended_speech: nil, greeting: nil, interruption_settings: nil, language: nil, message_history: nil, send_message_history_updates: nil, send_partial_results: nil, transcription: nil, user_response_timeout_ms: nil, voice: nil, voice_settings: nil, request_options: {})
@@ -181,7 +181,7 @@ module Telnyx
181
181
  #
182
182
  # @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
183
183
  #
184
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
184
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai] The settings associated with the voice selected
185
185
  #
186
186
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
187
187
 
@@ -235,10 +235,29 @@ module Telnyx
235
235
 
236
236
  variant :resemble, -> { Telnyx::ResembleVoiceSettings }
237
237
 
238
- variant :xai, -> { Telnyx::XaiVoiceSettings }
238
+ variant :xai, -> { Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai }
239
+
240
+ class Xai < Telnyx::Internal::Type::BaseModel
241
+ # @!attribute type
242
+ # Voice settings provider type
243
+ #
244
+ # @return [Symbol, :xai]
245
+ required :type, const: :xai
246
+
247
+ # @!attribute language
248
+ # Language code, or `auto` to detect automatically.
249
+ #
250
+ # @return [String, nil]
251
+ optional :language, String
252
+
253
+ # @!method initialize(language: nil, type: :xai)
254
+ # @param language [String] Language code, or `auto` to detect automatically.
255
+ #
256
+ # @param type [Symbol, :xai] Voice settings provider type
257
+ end
239
258
 
240
259
  # @!method self.variants
241
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
260
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai)]
242
261
  end
243
262
  end
244
263
  end
@@ -160,7 +160,7 @@ module Telnyx
160
160
  # @!attribute voice_settings
161
161
  # The settings associated with the voice selected
162
162
  #
163
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
163
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai, nil]
164
164
  optional :voice_settings, union: -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings }
165
165
 
166
166
  # @!method initialize(call_control_id:, payload:, voice:, client_state: nil, command_id: nil, inter_digit_timeout_millis: nil, invalid_payload: nil, language: nil, maximum_digits: nil, maximum_tries: nil, minimum_digits: nil, payload_type: nil, service_level: nil, terminating_digit: nil, timeout_millis: nil, valid_digits: nil, voice_settings: nil, request_options: {})
@@ -200,7 +200,7 @@ module Telnyx
200
200
  #
201
201
  # @param valid_digits [String] A list of all digits accepted as valid.
202
202
  #
203
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
203
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
204
204
  #
205
205
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
206
206
 
@@ -289,7 +289,7 @@ module Telnyx
289
289
 
290
290
  variant :inworld, -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld }
291
291
 
292
- variant :xai, -> { Telnyx::XaiVoiceSettings }
292
+ variant :xai, -> { Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai }
293
293
 
294
294
  class Inworld < Telnyx::Internal::Type::BaseModel
295
295
  # @!attribute type
@@ -302,8 +302,27 @@ module Telnyx
302
302
  # @param type [Symbol, :inworld] Voice settings provider type
303
303
  end
304
304
 
305
+ class Xai < Telnyx::Internal::Type::BaseModel
306
+ # @!attribute type
307
+ # Voice settings provider type
308
+ #
309
+ # @return [Symbol, :xai]
310
+ required :type, const: :xai
311
+
312
+ # @!attribute language
313
+ # Language code, or `auto` to detect automatically.
314
+ #
315
+ # @return [String, nil]
316
+ optional :language, String
317
+
318
+ # @!method initialize(language: nil, type: :xai)
319
+ # @param language [String] Language code, or `auto` to detect automatically.
320
+ #
321
+ # @param type [Symbol, :xai] Voice settings provider type
322
+ end
323
+
305
324
  # @!method self.variants
306
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
325
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai)]
307
326
  end
308
327
  end
309
328
  end
@@ -128,7 +128,7 @@ module Telnyx
128
128
  # @!attribute voice_settings
129
129
  # The settings associated with the voice selected
130
130
  #
131
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings, nil]
131
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Xai, nil]
132
132
  optional :voice_settings, union: -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings }
133
133
 
134
134
  # @!method initialize(call_control_id:, payload:, voice:, client_state: nil, command_id: nil, language: nil, loop_: nil, payload_type: nil, service_level: nil, stop: nil, target_legs: nil, voice_settings: nil, request_options: {})
@@ -157,7 +157,7 @@ module Telnyx
157
157
  #
158
158
  # @param target_legs [Symbol, Telnyx::Models::Calls::ActionSpeakParams::TargetLegs] Specifies which legs of the call should receive the spoken audio.
159
159
  #
160
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
160
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
161
161
  #
162
162
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
163
163
 
@@ -258,7 +258,7 @@ module Telnyx
258
258
 
259
259
  variant :inworld, -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld }
260
260
 
261
- variant :xai, -> { Telnyx::XaiVoiceSettings }
261
+ variant :xai, -> { Telnyx::Calls::ActionSpeakParams::VoiceSettings::Xai }
262
262
 
263
263
  class Inworld < Telnyx::Internal::Type::BaseModel
264
264
  # @!attribute type
@@ -271,8 +271,27 @@ module Telnyx
271
271
  # @param type [Symbol, :inworld] Voice settings provider type
272
272
  end
273
273
 
274
+ class Xai < Telnyx::Internal::Type::BaseModel
275
+ # @!attribute type
276
+ # Voice settings provider type
277
+ #
278
+ # @return [Symbol, :xai]
279
+ required :type, const: :xai
280
+
281
+ # @!attribute language
282
+ # Language code, or `auto` to detect automatically.
283
+ #
284
+ # @return [String, nil]
285
+ optional :language, String
286
+
287
+ # @!method initialize(language: nil, type: :xai)
288
+ # @param language [String] Language code, or `auto` to detect automatically.
289
+ #
290
+ # @param type [Symbol, :xai] Voice settings provider type
291
+ end
292
+
274
293
  # @!method self.variants
275
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::XaiVoiceSettings)]
294
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::MinimaxVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Calls::ActionSpeakParams::VoiceSettings::Xai)]
276
295
  end
277
296
  end
278
297
  end
@@ -114,7 +114,7 @@ module Telnyx
114
114
  # @!attribute voice_settings
115
115
  # The settings associated with the voice selected
116
116
  #
117
- # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings, nil]
117
+ # @return [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai, nil]
118
118
  optional :voice_settings, union: -> { Telnyx::Calls::ActionStartAIAssistantParams::VoiceSettings }
119
119
 
120
120
  # @!method initialize(call_control_id:, assistant: nil, client_state: nil, command_id: nil, greeting: nil, interruption_settings: nil, message_history: nil, participants: nil, send_message_history_updates: nil, transcription: nil, voice: nil, voice_settings: nil, request_options: {})
@@ -143,7 +143,7 @@ module Telnyx
143
143
  #
144
144
  # @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
145
145
  #
146
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings] The settings associated with the voice selected
146
+ # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai] The settings associated with the voice selected
147
147
  #
148
148
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
149
149
 
@@ -468,10 +468,29 @@ module Telnyx
468
468
 
469
469
  variant :resemble, -> { Telnyx::ResembleVoiceSettings }
470
470
 
471
- variant :xai, -> { Telnyx::XaiVoiceSettings }
471
+ variant :xai, -> { Telnyx::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai }
472
+
473
+ class Xai < Telnyx::Internal::Type::BaseModel
474
+ # @!attribute type
475
+ # Voice settings provider type
476
+ #
477
+ # @return [Symbol, :xai]
478
+ required :type, const: :xai
479
+
480
+ # @!attribute language
481
+ # Language code, or `auto` to detect automatically.
482
+ #
483
+ # @return [String, nil]
484
+ optional :language, String
485
+
486
+ # @!method initialize(language: nil, type: :xai)
487
+ # @param language [String] Language code, or `auto` to detect automatically.
488
+ #
489
+ # @param type [Symbol, :xai] Voice settings provider type
490
+ end
472
491
 
473
492
  # @!method self.variants
474
- # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::XaiVoiceSettings)]
493
+ # @return [Array(Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings, Telnyx::Models::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai)]
475
494
  end
476
495
  end
477
496
  end