telnyx 5.98.0 → 5.99.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 (61) 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 +9 -231
  5. data/lib/telnyx/models/ai/assistant_update_params.rb +9 -231
  6. data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -236
  7. data/lib/telnyx/models/ai/external_llm.rb +89 -0
  8. data/lib/telnyx/models/ai/external_llm_req.rb +89 -0
  9. data/lib/telnyx/models/ai/fallback_config.rb +37 -0
  10. data/lib/telnyx/models/ai/fallback_config_req.rb +37 -0
  11. data/lib/telnyx/models/ai/inference_embedding.rb +9 -234
  12. data/lib/telnyx/models/ai/post_conversation_settings.rb +30 -0
  13. data/lib/telnyx/models/ai/post_conversation_settings_req.rb +30 -0
  14. data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +26 -3
  15. data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +26 -3
  16. data/lib/telnyx/models/calls/action_speak_params.rb +26 -3
  17. data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +26 -3
  18. data/lib/telnyx/models/conferences/action_speak_params.rb +26 -3
  19. data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
  20. data/lib/telnyx/resources/ai/assistants.rb +6 -6
  21. data/lib/telnyx/resources/calls/actions.rb +4 -4
  22. data/lib/telnyx/resources/conferences/actions.rb +1 -1
  23. data/lib/telnyx/version.rb +1 -1
  24. data/lib/telnyx.rb +6 -0
  25. data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -463
  26. data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -463
  27. data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -469
  28. data/rbi/telnyx/models/ai/external_llm.rbi +161 -0
  29. data/rbi/telnyx/models/ai/external_llm_req.rbi +161 -0
  30. data/rbi/telnyx/models/ai/fallback_config.rbi +64 -0
  31. data/rbi/telnyx/models/ai/fallback_config_req.rbi +64 -0
  32. data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -460
  33. data/rbi/telnyx/models/ai/post_conversation_settings.rbi +45 -0
  34. data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +45 -0
  35. data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +50 -5
  36. data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +50 -5
  37. data/rbi/telnyx/models/calls/action_speak_params.rbi +50 -5
  38. data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +50 -5
  39. data/rbi/telnyx/models/conferences/action_speak_params.rbi +50 -5
  40. data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -5
  41. data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
  42. data/rbi/telnyx/resources/calls/actions.rbi +16 -4
  43. data/rbi/telnyx/resources/conferences/actions.rbi +4 -1
  44. data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -205
  45. data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -205
  46. data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -205
  47. data/sig/telnyx/models/ai/external_llm.rbs +75 -0
  48. data/sig/telnyx/models/ai/external_llm_req.rbs +75 -0
  49. data/sig/telnyx/models/ai/fallback_config.rbs +38 -0
  50. data/sig/telnyx/models/ai/fallback_config_req.rbs +40 -0
  51. data/sig/telnyx/models/ai/inference_embedding.rbs +17 -206
  52. data/sig/telnyx/models/ai/post_conversation_settings.rbs +17 -0
  53. data/sig/telnyx/models/ai/post_conversation_settings_req.rbs +17 -0
  54. data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -0
  55. data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -0
  56. data/sig/telnyx/models/calls/action_speak_params.rbs +15 -0
  57. data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -0
  58. data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -0
  59. data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
  60. data/sig/telnyx/resources/ai/assistants.rbs +6 -6
  61. metadata +20 -2
@@ -59,6 +59,8 @@ module Telnyx
59
59
  # `voice_settings` to configure precision, sample_rate, and format.
60
60
  # - **Inworld:** Use `Inworld.<ModelId>.<VoiceId>` (e.g., `Inworld.Mini.Loretta`,
61
61
  # `Inworld.Max.Oliver`). Supported models: `Mini`, `Max`.
62
+ # - **xAI:** Use `xAI.<VoiceId>` (e.g., `xAI.eve`). Available voices: `eve`,
63
+ # `ara`, `rex`, `sal`, `leo`.
62
64
  #
63
65
  # For service_level basic, you may define the gender of the speaker (male or
64
66
  # female).
@@ -105,7 +107,7 @@ module Telnyx
105
107
  # @!attribute voice_settings
106
108
  # The settings associated with the voice selected
107
109
  #
108
- # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld, nil]
110
+ # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai, nil]
109
111
  optional :voice_settings, union: -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings }
110
112
 
111
113
  # @!method initialize(id:, payload:, voice:, call_control_ids: nil, command_id: nil, language: nil, payload_type: nil, region: nil, voice_settings: nil, request_options: {})
@@ -128,7 +130,7 @@ module Telnyx
128
130
  #
129
131
  # @param region [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::Region] Region where the conference data is located. Defaults to the region defined in u
130
132
  #
131
- # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld] The settings associated with the voice selected
133
+ # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
132
134
  #
133
135
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
134
136
 
@@ -219,6 +221,8 @@ module Telnyx
219
221
 
220
222
  variant :inworld, -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Inworld }
221
223
 
224
+ variant :xai, -> { Telnyx::Conferences::ActionSpeakParams::VoiceSettings::Xai }
225
+
222
226
  class Inworld < Telnyx::Internal::Type::BaseModel
223
227
  # @!attribute type
224
228
  # Voice settings provider type
@@ -230,8 +234,27 @@ module Telnyx
230
234
  # @param type [Symbol, :inworld] Voice settings provider type
231
235
  end
232
236
 
237
+ class Xai < Telnyx::Internal::Type::BaseModel
238
+ # @!attribute type
239
+ # Voice settings provider type
240
+ #
241
+ # @return [Symbol, :xai]
242
+ required :type, const: :xai
243
+
244
+ # @!attribute language
245
+ # Language code, or `auto` to detect automatically.
246
+ #
247
+ # @return [String, nil]
248
+ optional :language, String
249
+
250
+ # @!method initialize(language: nil, type: :xai)
251
+ # @param language [String] Language code, or `auto` to detect automatically.
252
+ #
253
+ # @param type [Symbol, :xai] Voice settings provider type
254
+ end
255
+
233
256
  # @!method self.variants
234
- # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld)]
257
+ # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai)]
235
258
  end
236
259
  end
237
260
  end
@@ -59,9 +59,9 @@ module Telnyx
59
59
  #
60
60
  # @param enabled_features [Array<Symbol, Telnyx::Models::AI::EnabledFeatures>] Body param
61
61
  #
62
- # @param external_llm [Telnyx::Models::AI::Assistants::UpdateAssistant::ExternalLlm] Body param
62
+ # @param external_llm [Telnyx::Models::AI::ExternalLlmReq] Body param
63
63
  #
64
- # @param fallback_config [Telnyx::Models::AI::Assistants::UpdateAssistant::FallbackConfig] Body param
64
+ # @param fallback_config [Telnyx::Models::AI::FallbackConfigReq] Body param
65
65
  #
66
66
  # @param greeting [String] Body param: Text that the assistant will use to start the conversation. This may
67
67
  #
@@ -85,7 +85,7 @@ module Telnyx
85
85
  #
86
86
  # @param observability_settings [Telnyx::Models::AI::ObservabilityReq] Body param
87
87
  #
88
- # @param post_conversation_settings [Telnyx::Models::AI::Assistants::UpdateAssistant::PostConversationSettings] Body param: Configuration for post-conversation processing. When enabled, the as
88
+ # @param post_conversation_settings [Telnyx::Models::AI::PostConversationSettingsReq] Body param: Configuration for post-conversation processing. When enabled, the as
89
89
  #
90
90
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings] Body param
91
91
  #
@@ -50,9 +50,9 @@ module Telnyx
50
50
  #
51
51
  # @param enabled_features [Array<Symbol, Telnyx::Models::AI::EnabledFeatures>]
52
52
  #
53
- # @param external_llm [Telnyx::Models::AI::AssistantCreateParams::ExternalLlm]
53
+ # @param external_llm [Telnyx::Models::AI::ExternalLlmReq]
54
54
  #
55
- # @param fallback_config [Telnyx::Models::AI::AssistantCreateParams::FallbackConfig]
55
+ # @param fallback_config [Telnyx::Models::AI::FallbackConfigReq]
56
56
  #
57
57
  # @param greeting [String] Text that the assistant will use to start the conversation. This may be template
58
58
  #
@@ -72,7 +72,7 @@ module Telnyx
72
72
  #
73
73
  # @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
74
74
  #
75
- # @param post_conversation_settings [Telnyx::Models::AI::AssistantCreateParams::PostConversationSettings] Configuration for post-conversation processing. When enabled, the assistant rece
75
+ # @param post_conversation_settings [Telnyx::Models::AI::PostConversationSettingsReq] Configuration for post-conversation processing. When enabled, the assistant rece
76
76
  #
77
77
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
78
78
  #
@@ -151,9 +151,9 @@ module Telnyx
151
151
  #
152
152
  # @param enabled_features [Array<Symbol, Telnyx::Models::AI::EnabledFeatures>]
153
153
  #
154
- # @param external_llm [Telnyx::Models::AI::AssistantUpdateParams::ExternalLlm]
154
+ # @param external_llm [Telnyx::Models::AI::ExternalLlmReq]
155
155
  #
156
- # @param fallback_config [Telnyx::Models::AI::AssistantUpdateParams::FallbackConfig]
156
+ # @param fallback_config [Telnyx::Models::AI::FallbackConfigReq]
157
157
  #
158
158
  # @param greeting [String] Text that the assistant will use to start the conversation. This may be template
159
159
  #
@@ -177,7 +177,7 @@ module Telnyx
177
177
  #
178
178
  # @param observability_settings [Telnyx::Models::AI::ObservabilityReq]
179
179
  #
180
- # @param post_conversation_settings [Telnyx::Models::AI::AssistantUpdateParams::PostConversationSettings] Configuration for post-conversation processing. When enabled, the assistant rece
180
+ # @param post_conversation_settings [Telnyx::Models::AI::PostConversationSettingsReq] Configuration for post-conversation processing. When enabled, the assistant rece
181
181
  #
182
182
  # @param privacy_settings [Telnyx::Models::AI::PrivacySettings]
183
183
  #
@@ -347,7 +347,7 @@ module Telnyx
347
347
  #
348
348
  # @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
349
349
  #
350
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings] The settings associated with the voice selected
350
+ # @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
351
351
  #
352
352
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
353
353
  #
@@ -480,7 +480,7 @@ module Telnyx
480
480
  #
481
481
  # @param valid_digits [String] A list of all digits accepted as valid.
482
482
  #
483
- # @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] The settings associated with the voice selected
483
+ # @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
484
484
  #
485
485
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
486
486
  #
@@ -860,7 +860,7 @@ module Telnyx
860
860
  #
861
861
  # @param target_legs [Symbol, Telnyx::Models::Calls::ActionSpeakParams::TargetLegs] Specifies which legs of the call should receive the spoken audio.
862
862
  #
863
- # @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] The settings associated with the voice selected
863
+ # @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
864
864
  #
865
865
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
866
866
  #
@@ -912,7 +912,7 @@ module Telnyx
912
912
  #
913
913
  # @param voice [String] The voice to be used by the voice assistant. Currently we support ElevenLabs, Te
914
914
  #
915
- # @param voice_settings [Telnyx::Models::Calls::ElevenLabsVoiceSettings, Telnyx::Models::Calls::TelnyxVoiceSettings, Telnyx::Models::Calls::AwsVoiceSettings, Telnyx::Models::AzureVoiceSettings, Telnyx::Models::RimeVoiceSettings, Telnyx::Models::ResembleVoiceSettings] The settings associated with the voice selected
915
+ # @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
916
916
  #
917
917
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
918
918
  #
@@ -520,7 +520,7 @@ module Telnyx
520
520
  #
521
521
  # @param region [Symbol, Telnyx::Models::Conferences::ActionSpeakParams::Region] Region where the conference data is located. Defaults to the region defined in u
522
522
  #
523
- # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld] The settings associated with the voice selected
523
+ # @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::Conferences::ActionSpeakParams::VoiceSettings::Inworld, Telnyx::Models::Conferences::ActionSpeakParams::VoiceSettings::Xai] The settings associated with the voice selected
524
524
  #
525
525
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
526
526
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Telnyx
4
- VERSION = "5.98.0"
4
+ VERSION = "5.99.0"
5
5
  end
data/lib/telnyx.rb CHANGED
@@ -256,6 +256,10 @@ require_relative "telnyx/models/ai/embedding_similarity_search_params"
256
256
  require_relative "telnyx/models/ai/embedding_similarity_search_response"
257
257
  require_relative "telnyx/models/ai/embedding_url_params"
258
258
  require_relative "telnyx/models/ai/enabled_features"
259
+ require_relative "telnyx/models/ai/external_llm"
260
+ require_relative "telnyx/models/ai/external_llm_req"
261
+ require_relative "telnyx/models/ai/fallback_config"
262
+ require_relative "telnyx/models/ai/fallback_config_req"
259
263
  require_relative "telnyx/models/ai/fine_tuning/fine_tuning_job"
260
264
  require_relative "telnyx/models/ai/fine_tuning/job_cancel_params"
261
265
  require_relative "telnyx/models/ai/fine_tuning/job_create_params"
@@ -371,6 +375,8 @@ require_relative "telnyx/models/ai/openai/embedding_create_embeddings_params"
371
375
  require_relative "telnyx/models/ai/openai/embedding_create_embeddings_response"
372
376
  require_relative "telnyx/models/ai/openai/embedding_list_embedding_models_params"
373
377
  require_relative "telnyx/models/ai/openai/embedding_list_embedding_models_response"
378
+ require_relative "telnyx/models/ai/post_conversation_settings"
379
+ require_relative "telnyx/models/ai/post_conversation_settings_req"
374
380
  require_relative "telnyx/models/ai/privacy_settings"
375
381
  require_relative "telnyx/models/ai/recursive_cluster"
376
382
  require_relative "telnyx/models/ai/retrieval_tool"