telnyx 5.102.1 → 5.103.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +170 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +170 -9
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +123 -3
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +125 -3
- data/lib/telnyx/models/ai/assistants/scheduled_event_create_params.rb +17 -1
- data/lib/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rb +91 -1
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +171 -9
- data/lib/telnyx/models/ai/inference_embedding.rb +169 -9
- data/lib/telnyx/models/ai/openai_list_models_response.rb +31 -3
- data/lib/telnyx/models/ai/transfer_tool.rb +9 -7
- data/lib/telnyx/models/ai_retrieve_models_response.rb +31 -3
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +23 -4
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_speak_params.rb +23 -4
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +23 -4
- data/lib/telnyx/models/calls/transcription_start_request.rb +167 -5
- data/lib/telnyx/models/conferences/action_speak_params.rb +23 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection_create_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_create_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_delete_response.rb +878 -3
- data/lib/telnyx/models/uac_connection_list_response.rb +876 -0
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +879 -3
- data/lib/telnyx/models/uac_connection_update_params.rb +255 -9
- data/lib/telnyx/models/uac_connection_update_response.rb +878 -3
- data/lib/telnyx/models.rb +0 -14
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/scheduled_events.rb +5 -1
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/calls/actions.rb +5 -5
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +1 -19
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +341 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +341 -12
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +290 -4
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +301 -3
- data/rbi/telnyx/models/ai/assistants/scheduled_event_create_params.rbi +22 -0
- data/rbi/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbi +153 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +355 -12
- data/rbi/telnyx/models/ai/inference_embedding.rbi +340 -12
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +56 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +51 -3
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +41 -5
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +480 -10
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +41 -5
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection_create_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_create_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_list_response.rbi +1727 -0
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +1756 -4
- data/rbi/telnyx/models/uac_connection_update_params.rbi +516 -12
- data/rbi/telnyx/models/uac_connection_update_response.rbi +1756 -4
- data/rbi/telnyx/models.rbi +0 -14
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +4 -2
- data/rbi/telnyx/resources/ai/assistants/scheduled_events.rbi +6 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +9 -3
- data/rbi/telnyx/resources/ai/assistants.rbi +10 -6
- data/rbi/telnyx/resources/calls/actions.rbi +6 -6
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/uac_connections.rbi +13 -7
- data/sig/telnyx/models/ai/assistant_create_params.rbs +142 -18
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +142 -18
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +113 -6
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +109 -4
- data/sig/telnyx/models/ai/assistants/scheduled_event_create_params.rbs +14 -0
- data/sig/telnyx/models/ai/assistants/scheduled_phone_call_event_response.rbs +85 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +145 -18
- data/sig/telnyx/models/ai/inference_embedding.rbs +142 -18
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +39 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +39 -4
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +15 -1
- data/sig/telnyx/models/calls/transcription_start_request.rbs +184 -2
- data/sig/telnyx/models/conferences/action_speak_params.rbs +15 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection_create_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_create_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_delete_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_list_response.rbs +722 -0
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +731 -5
- data/sig/telnyx/models/uac_connection_update_params.rbs +211 -17
- data/sig/telnyx/models/uac_connection_update_response.rbs +731 -5
- data/sig/telnyx/models.rbs +0 -14
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/scheduled_events.rbs +2 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- metadata +4 -58
- data/lib/telnyx/models/ai/assistant_integration.rb +0 -38
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +0 -35
- data/lib/telnyx/models/ai/assistants/clause.rb +0 -54
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +0 -27
- data/lib/telnyx/models/ai/assistants/rule_input.rb +0 -40
- data/lib/telnyx/models/ai/assistants/rule_output.rb +0 -40
- data/lib/telnyx/models/ai/assistants/serve.rb +0 -33
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +0 -39
- data/lib/telnyx/models/ai/start_speaking_plan.rb +0 -37
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +0 -39
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +0 -64
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +0 -108
- data/lib/telnyx/models/model_metadata.rb +0 -33
- data/lib/telnyx/models/uac_connection.rb +0 -412
- data/lib/telnyx/models/uac_external_settings.rb +0 -101
- data/lib/telnyx/models/uac_inbound.rb +0 -210
- data/lib/telnyx/models/uac_internal_settings.rb +0 -25
- data/lib/telnyx/models/uac_outbound.rb +0 -131
- data/lib/telnyx/models/xai_voice_settings.rb +0 -36
- data/rbi/telnyx/models/ai/assistant_integration.rbi +0 -60
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +0 -51
- data/rbi/telnyx/models/ai/assistants/clause.rbi +0 -91
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +0 -36
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +0 -73
- data/rbi/telnyx/models/ai/assistants/serve.rbi +0 -61
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +0 -72
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +0 -70
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +0 -71
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +0 -155
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +0 -329
- data/rbi/telnyx/models/model_metadata.rbi +0 -44
- data/rbi/telnyx/models/uac_connection.rbi +0 -684
- data/rbi/telnyx/models/uac_external_settings.rbi +0 -146
- data/rbi/telnyx/models/uac_inbound.rbi +0 -410
- data/rbi/telnyx/models/uac_internal_settings.rbi +0 -39
- data/rbi/telnyx/models/uac_outbound.rbi +0 -224
- data/rbi/telnyx/models/xai_voice_settings.rbi +0 -64
- data/sig/telnyx/models/ai/assistant_integration.rbs +0 -26
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/clause.rbs +0 -46
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +0 -19
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +0 -33
- data/sig/telnyx/models/ai/assistants/serve.rbs +0 -35
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +0 -30
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +0 -33
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +0 -38
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +0 -62
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +0 -130
- data/sig/telnyx/models/model_metadata.rbs +0 -32
- data/sig/telnyx/models/uac_connection.rbs +0 -338
- data/sig/telnyx/models/uac_external_settings.rbs +0 -73
- data/sig/telnyx/models/uac_inbound.rbs +0 -190
- data/sig/telnyx/models/uac_internal_settings.rbs +0 -15
- data/sig/telnyx/models/uac_outbound.rbs +0 -113
- data/sig/telnyx/models/xai_voice_settings.rbs +0 -34
|
@@ -16,10 +16,10 @@ module Telnyx
|
|
|
16
16
|
greeting: String,
|
|
17
17
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
18
18
|
instructions: String,
|
|
19
|
-
integrations: ::Array[Telnyx::AI::
|
|
20
|
-
interruption_settings: Telnyx::AI::
|
|
19
|
+
integrations: ::Array[Telnyx::AI::Assistants::UpdateAssistant::Integration],
|
|
20
|
+
interruption_settings: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings,
|
|
21
21
|
llm_api_key_ref: String,
|
|
22
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
22
|
+
mcp_servers: ::Array[Telnyx::AI::Assistants::UpdateAssistant::McpServer],
|
|
23
23
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
24
24
|
model: String,
|
|
25
25
|
name: String,
|
|
@@ -85,27 +85,27 @@ module Telnyx
|
|
|
85
85
|
|
|
86
86
|
def instructions=: (String) -> String
|
|
87
87
|
|
|
88
|
-
attr_reader integrations: ::Array[Telnyx::AI::
|
|
88
|
+
attr_reader integrations: ::Array[Telnyx::AI::Assistants::UpdateAssistant::Integration]?
|
|
89
89
|
|
|
90
90
|
def integrations=: (
|
|
91
|
-
::Array[Telnyx::AI::
|
|
92
|
-
) -> ::Array[Telnyx::AI::
|
|
91
|
+
::Array[Telnyx::AI::Assistants::UpdateAssistant::Integration]
|
|
92
|
+
) -> ::Array[Telnyx::AI::Assistants::UpdateAssistant::Integration]
|
|
93
93
|
|
|
94
|
-
attr_reader interruption_settings: Telnyx::AI::
|
|
94
|
+
attr_reader interruption_settings: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings?
|
|
95
95
|
|
|
96
96
|
def interruption_settings=: (
|
|
97
|
-
Telnyx::AI::
|
|
98
|
-
) -> Telnyx::AI::
|
|
97
|
+
Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings
|
|
98
|
+
) -> Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings
|
|
99
99
|
|
|
100
100
|
attr_reader llm_api_key_ref: String?
|
|
101
101
|
|
|
102
102
|
def llm_api_key_ref=: (String) -> String
|
|
103
103
|
|
|
104
|
-
attr_reader mcp_servers: ::Array[Telnyx::AI::
|
|
104
|
+
attr_reader mcp_servers: ::Array[Telnyx::AI::Assistants::UpdateAssistant::McpServer]?
|
|
105
105
|
|
|
106
106
|
def mcp_servers=: (
|
|
107
|
-
::Array[Telnyx::AI::
|
|
108
|
-
) -> ::Array[Telnyx::AI::
|
|
107
|
+
::Array[Telnyx::AI::Assistants::UpdateAssistant::McpServer]
|
|
108
|
+
) -> ::Array[Telnyx::AI::Assistants::UpdateAssistant::McpServer]
|
|
109
109
|
|
|
110
110
|
attr_reader messaging_settings: Telnyx::AI::MessagingSettings?
|
|
111
111
|
|
|
@@ -192,10 +192,10 @@ module Telnyx
|
|
|
192
192
|
?greeting: String,
|
|
193
193
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
194
194
|
?instructions: String,
|
|
195
|
-
?integrations: ::Array[Telnyx::AI::
|
|
196
|
-
?interruption_settings: Telnyx::AI::
|
|
195
|
+
?integrations: ::Array[Telnyx::AI::Assistants::UpdateAssistant::Integration],
|
|
196
|
+
?interruption_settings: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings,
|
|
197
197
|
?llm_api_key_ref: String,
|
|
198
|
-
?mcp_servers: ::Array[Telnyx::AI::
|
|
198
|
+
?mcp_servers: ::Array[Telnyx::AI::Assistants::UpdateAssistant::McpServer],
|
|
199
199
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
200
200
|
?model: String,
|
|
201
201
|
?name: String,
|
|
@@ -223,10 +223,10 @@ module Telnyx
|
|
|
223
223
|
greeting: String,
|
|
224
224
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
225
225
|
instructions: String,
|
|
226
|
-
integrations: ::Array[Telnyx::AI::
|
|
227
|
-
interruption_settings: Telnyx::AI::
|
|
226
|
+
integrations: ::Array[Telnyx::AI::Assistants::UpdateAssistant::Integration],
|
|
227
|
+
interruption_settings: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings,
|
|
228
228
|
llm_api_key_ref: String,
|
|
229
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
229
|
+
mcp_servers: ::Array[Telnyx::AI::Assistants::UpdateAssistant::McpServer],
|
|
230
230
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
231
231
|
model: String,
|
|
232
232
|
name: String,
|
|
@@ -242,6 +242,133 @@ module Telnyx
|
|
|
242
242
|
voice_settings: Telnyx::AI::VoiceSettings,
|
|
243
243
|
widget_settings: Telnyx::AI::WidgetSettings
|
|
244
244
|
}
|
|
245
|
+
|
|
246
|
+
type integration =
|
|
247
|
+
{ integration_id: String, allowed_list: ::Array[String] }
|
|
248
|
+
|
|
249
|
+
class Integration < Telnyx::Internal::Type::BaseModel
|
|
250
|
+
attr_accessor integration_id: String
|
|
251
|
+
|
|
252
|
+
attr_reader allowed_list: ::Array[String]?
|
|
253
|
+
|
|
254
|
+
def allowed_list=: (::Array[String]) -> ::Array[String]
|
|
255
|
+
|
|
256
|
+
def initialize: (
|
|
257
|
+
integration_id: String,
|
|
258
|
+
?allowed_list: ::Array[String]
|
|
259
|
+
) -> void
|
|
260
|
+
|
|
261
|
+
def to_hash: -> {
|
|
262
|
+
integration_id: String,
|
|
263
|
+
allowed_list: ::Array[String]
|
|
264
|
+
}
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
type interruption_settings =
|
|
268
|
+
{
|
|
269
|
+
enable: bool,
|
|
270
|
+
start_speaking_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
class InterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
274
|
+
attr_reader enable: bool?
|
|
275
|
+
|
|
276
|
+
def enable=: (bool) -> bool
|
|
277
|
+
|
|
278
|
+
attr_reader start_speaking_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan?
|
|
279
|
+
|
|
280
|
+
def start_speaking_plan=: (
|
|
281
|
+
Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan
|
|
282
|
+
) -> Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan
|
|
283
|
+
|
|
284
|
+
def initialize: (
|
|
285
|
+
?enable: bool,
|
|
286
|
+
?start_speaking_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan
|
|
287
|
+
) -> void
|
|
288
|
+
|
|
289
|
+
def to_hash: -> {
|
|
290
|
+
enable: bool,
|
|
291
|
+
start_speaking_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type start_speaking_plan =
|
|
295
|
+
{
|
|
296
|
+
transcription_endpointing_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
297
|
+
wait_seconds: Float
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
|
|
301
|
+
attr_reader transcription_endpointing_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan?
|
|
302
|
+
|
|
303
|
+
def transcription_endpointing_plan=: (
|
|
304
|
+
Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
305
|
+
) -> Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
306
|
+
|
|
307
|
+
attr_reader wait_seconds: Float?
|
|
308
|
+
|
|
309
|
+
def wait_seconds=: (Float) -> Float
|
|
310
|
+
|
|
311
|
+
def initialize: (
|
|
312
|
+
?transcription_endpointing_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
313
|
+
?wait_seconds: Float
|
|
314
|
+
) -> void
|
|
315
|
+
|
|
316
|
+
def to_hash: -> {
|
|
317
|
+
transcription_endpointing_plan: Telnyx::AI::Assistants::UpdateAssistant::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
318
|
+
wait_seconds: Float
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
type transcription_endpointing_plan =
|
|
322
|
+
{
|
|
323
|
+
on_no_punctuation_seconds: Float,
|
|
324
|
+
on_number_seconds: Float,
|
|
325
|
+
on_punctuation_seconds: Float
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
|
|
329
|
+
attr_reader on_no_punctuation_seconds: Float?
|
|
330
|
+
|
|
331
|
+
def on_no_punctuation_seconds=: (Float) -> Float
|
|
332
|
+
|
|
333
|
+
attr_reader on_number_seconds: Float?
|
|
334
|
+
|
|
335
|
+
def on_number_seconds=: (Float) -> Float
|
|
336
|
+
|
|
337
|
+
attr_reader on_punctuation_seconds: Float?
|
|
338
|
+
|
|
339
|
+
def on_punctuation_seconds=: (Float) -> Float
|
|
340
|
+
|
|
341
|
+
def initialize: (
|
|
342
|
+
?on_no_punctuation_seconds: Float,
|
|
343
|
+
?on_number_seconds: Float,
|
|
344
|
+
?on_punctuation_seconds: Float
|
|
345
|
+
) -> void
|
|
346
|
+
|
|
347
|
+
def to_hash: -> {
|
|
348
|
+
on_no_punctuation_seconds: Float,
|
|
349
|
+
on_number_seconds: Float,
|
|
350
|
+
on_punctuation_seconds: Float
|
|
351
|
+
}
|
|
352
|
+
end
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
type mcp_server = { id: String, allowed_tools: ::Array[String] }
|
|
357
|
+
|
|
358
|
+
class McpServer < Telnyx::Internal::Type::BaseModel
|
|
359
|
+
attr_accessor id: String
|
|
360
|
+
|
|
361
|
+
attr_reader allowed_tools: ::Array[String]?
|
|
362
|
+
|
|
363
|
+
def allowed_tools=: (::Array[String]) -> ::Array[String]
|
|
364
|
+
|
|
365
|
+
def initialize: (
|
|
366
|
+
id: String,
|
|
367
|
+
?allowed_tools: ::Array[String]
|
|
368
|
+
) -> void
|
|
369
|
+
|
|
370
|
+
def to_hash: -> { id: String, allowed_tools: ::Array[String] }
|
|
371
|
+
end
|
|
245
372
|
end
|
|
246
373
|
end
|
|
247
374
|
end
|
|
@@ -18,10 +18,10 @@ module Telnyx
|
|
|
18
18
|
greeting: String,
|
|
19
19
|
import_metadata: Telnyx::AI::ImportMetadata,
|
|
20
20
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
21
|
-
integrations: ::Array[Telnyx::AI::
|
|
22
|
-
interruption_settings: Telnyx::AI::
|
|
21
|
+
integrations: ::Array[Telnyx::AI::InferenceEmbedding::Integration],
|
|
22
|
+
interruption_settings: Telnyx::AI::InferenceEmbedding::InterruptionSettings,
|
|
23
23
|
llm_api_key_ref: String,
|
|
24
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
24
|
+
mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer],
|
|
25
25
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
26
26
|
observability_settings: Telnyx::AI::Observability,
|
|
27
27
|
post_conversation_settings: Telnyx::AI::PostConversationSettings,
|
|
@@ -97,27 +97,27 @@ module Telnyx
|
|
|
97
97
|
Telnyx::AI::InsightSettings
|
|
98
98
|
) -> Telnyx::AI::InsightSettings
|
|
99
99
|
|
|
100
|
-
attr_reader integrations: ::Array[Telnyx::AI::
|
|
100
|
+
attr_reader integrations: ::Array[Telnyx::AI::InferenceEmbedding::Integration]?
|
|
101
101
|
|
|
102
102
|
def integrations=: (
|
|
103
|
-
::Array[Telnyx::AI::
|
|
104
|
-
) -> ::Array[Telnyx::AI::
|
|
103
|
+
::Array[Telnyx::AI::InferenceEmbedding::Integration]
|
|
104
|
+
) -> ::Array[Telnyx::AI::InferenceEmbedding::Integration]
|
|
105
105
|
|
|
106
|
-
attr_reader interruption_settings: Telnyx::AI::
|
|
106
|
+
attr_reader interruption_settings: Telnyx::AI::InferenceEmbedding::InterruptionSettings?
|
|
107
107
|
|
|
108
108
|
def interruption_settings=: (
|
|
109
|
-
Telnyx::AI::
|
|
110
|
-
) -> Telnyx::AI::
|
|
109
|
+
Telnyx::AI::InferenceEmbedding::InterruptionSettings
|
|
110
|
+
) -> Telnyx::AI::InferenceEmbedding::InterruptionSettings
|
|
111
111
|
|
|
112
112
|
attr_reader llm_api_key_ref: String?
|
|
113
113
|
|
|
114
114
|
def llm_api_key_ref=: (String) -> String
|
|
115
115
|
|
|
116
|
-
attr_reader mcp_servers: ::Array[Telnyx::AI::
|
|
116
|
+
attr_reader mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer]?
|
|
117
117
|
|
|
118
118
|
def mcp_servers=: (
|
|
119
|
-
::Array[Telnyx::AI::
|
|
120
|
-
) -> ::Array[Telnyx::AI::
|
|
119
|
+
::Array[Telnyx::AI::InferenceEmbedding::McpServer]
|
|
120
|
+
) -> ::Array[Telnyx::AI::InferenceEmbedding::McpServer]
|
|
121
121
|
|
|
122
122
|
attr_reader messaging_settings: Telnyx::AI::MessagingSettings?
|
|
123
123
|
|
|
@@ -209,10 +209,10 @@ module Telnyx
|
|
|
209
209
|
?greeting: String,
|
|
210
210
|
?import_metadata: Telnyx::AI::ImportMetadata,
|
|
211
211
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
212
|
-
?integrations: ::Array[Telnyx::AI::
|
|
213
|
-
?interruption_settings: Telnyx::AI::
|
|
212
|
+
?integrations: ::Array[Telnyx::AI::InferenceEmbedding::Integration],
|
|
213
|
+
?interruption_settings: Telnyx::AI::InferenceEmbedding::InterruptionSettings,
|
|
214
214
|
?llm_api_key_ref: String,
|
|
215
|
-
?mcp_servers: ::Array[Telnyx::AI::
|
|
215
|
+
?mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer],
|
|
216
216
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
217
217
|
?observability_settings: Telnyx::AI::Observability,
|
|
218
218
|
?post_conversation_settings: Telnyx::AI::PostConversationSettings,
|
|
@@ -245,10 +245,10 @@ module Telnyx
|
|
|
245
245
|
greeting: String,
|
|
246
246
|
import_metadata: Telnyx::AI::ImportMetadata,
|
|
247
247
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
248
|
-
integrations: ::Array[Telnyx::AI::
|
|
249
|
-
interruption_settings: Telnyx::AI::
|
|
248
|
+
integrations: ::Array[Telnyx::AI::InferenceEmbedding::Integration],
|
|
249
|
+
interruption_settings: Telnyx::AI::InferenceEmbedding::InterruptionSettings,
|
|
250
250
|
llm_api_key_ref: String,
|
|
251
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
251
|
+
mcp_servers: ::Array[Telnyx::AI::InferenceEmbedding::McpServer],
|
|
252
252
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
253
253
|
observability_settings: Telnyx::AI::Observability,
|
|
254
254
|
post_conversation_settings: Telnyx::AI::PostConversationSettings,
|
|
@@ -264,6 +264,130 @@ module Telnyx
|
|
|
264
264
|
voice_settings: Telnyx::AI::VoiceSettings,
|
|
265
265
|
widget_settings: Telnyx::AI::WidgetSettings
|
|
266
266
|
}
|
|
267
|
+
|
|
268
|
+
type integration =
|
|
269
|
+
{ integration_id: String, allowed_list: ::Array[String] }
|
|
270
|
+
|
|
271
|
+
class Integration < Telnyx::Internal::Type::BaseModel
|
|
272
|
+
attr_accessor integration_id: String
|
|
273
|
+
|
|
274
|
+
attr_reader allowed_list: ::Array[String]?
|
|
275
|
+
|
|
276
|
+
def allowed_list=: (::Array[String]) -> ::Array[String]
|
|
277
|
+
|
|
278
|
+
def initialize: (
|
|
279
|
+
integration_id: String,
|
|
280
|
+
?allowed_list: ::Array[String]
|
|
281
|
+
) -> void
|
|
282
|
+
|
|
283
|
+
def to_hash: -> {
|
|
284
|
+
integration_id: String,
|
|
285
|
+
allowed_list: ::Array[String]
|
|
286
|
+
}
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
type interruption_settings =
|
|
290
|
+
{
|
|
291
|
+
enable: bool,
|
|
292
|
+
start_speaking_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
class InterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
296
|
+
attr_reader enable: bool?
|
|
297
|
+
|
|
298
|
+
def enable=: (bool) -> bool
|
|
299
|
+
|
|
300
|
+
attr_reader start_speaking_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan?
|
|
301
|
+
|
|
302
|
+
def start_speaking_plan=: (
|
|
303
|
+
Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan
|
|
304
|
+
) -> Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan
|
|
305
|
+
|
|
306
|
+
def initialize: (
|
|
307
|
+
?enable: bool,
|
|
308
|
+
?start_speaking_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan
|
|
309
|
+
) -> void
|
|
310
|
+
|
|
311
|
+
def to_hash: -> {
|
|
312
|
+
enable: bool,
|
|
313
|
+
start_speaking_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
type start_speaking_plan =
|
|
317
|
+
{
|
|
318
|
+
transcription_endpointing_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
319
|
+
wait_seconds: Float
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
|
|
323
|
+
attr_reader transcription_endpointing_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan?
|
|
324
|
+
|
|
325
|
+
def transcription_endpointing_plan=: (
|
|
326
|
+
Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
327
|
+
) -> Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
328
|
+
|
|
329
|
+
attr_reader wait_seconds: Float?
|
|
330
|
+
|
|
331
|
+
def wait_seconds=: (Float) -> Float
|
|
332
|
+
|
|
333
|
+
def initialize: (
|
|
334
|
+
?transcription_endpointing_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
335
|
+
?wait_seconds: Float
|
|
336
|
+
) -> void
|
|
337
|
+
|
|
338
|
+
def to_hash: -> {
|
|
339
|
+
transcription_endpointing_plan: Telnyx::AI::InferenceEmbedding::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
340
|
+
wait_seconds: Float
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
type transcription_endpointing_plan =
|
|
344
|
+
{
|
|
345
|
+
on_no_punctuation_seconds: Float,
|
|
346
|
+
on_number_seconds: Float,
|
|
347
|
+
on_punctuation_seconds: Float
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
|
|
351
|
+
attr_reader on_no_punctuation_seconds: Float?
|
|
352
|
+
|
|
353
|
+
def on_no_punctuation_seconds=: (Float) -> Float
|
|
354
|
+
|
|
355
|
+
attr_reader on_number_seconds: Float?
|
|
356
|
+
|
|
357
|
+
def on_number_seconds=: (Float) -> Float
|
|
358
|
+
|
|
359
|
+
attr_reader on_punctuation_seconds: Float?
|
|
360
|
+
|
|
361
|
+
def on_punctuation_seconds=: (Float) -> Float
|
|
362
|
+
|
|
363
|
+
def initialize: (
|
|
364
|
+
?on_no_punctuation_seconds: Float,
|
|
365
|
+
?on_number_seconds: Float,
|
|
366
|
+
?on_punctuation_seconds: Float
|
|
367
|
+
) -> void
|
|
368
|
+
|
|
369
|
+
def to_hash: -> {
|
|
370
|
+
on_no_punctuation_seconds: Float,
|
|
371
|
+
on_number_seconds: Float,
|
|
372
|
+
on_punctuation_seconds: Float
|
|
373
|
+
}
|
|
374
|
+
end
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
type mcp_server = { id: String, allowed_tools: ::Array[String] }
|
|
379
|
+
|
|
380
|
+
class McpServer < Telnyx::Internal::Type::BaseModel
|
|
381
|
+
attr_accessor id: String
|
|
382
|
+
|
|
383
|
+
attr_reader allowed_tools: ::Array[String]?
|
|
384
|
+
|
|
385
|
+
def allowed_tools=: (::Array[String]) -> ::Array[String]
|
|
386
|
+
|
|
387
|
+
def initialize: (id: String, ?allowed_tools: ::Array[String]) -> void
|
|
388
|
+
|
|
389
|
+
def to_hash: -> { id: String, allowed_tools: ::Array[String] }
|
|
390
|
+
end
|
|
267
391
|
end
|
|
268
392
|
end
|
|
269
393
|
end
|
|
@@ -2,21 +2,56 @@ module Telnyx
|
|
|
2
2
|
module Models
|
|
3
3
|
module AI
|
|
4
4
|
type openai_list_models_response =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
data: ::Array[Telnyx::Models::AI::OpenAIListModelsResponse::Data],
|
|
7
|
+
object: String
|
|
8
|
+
}
|
|
6
9
|
|
|
7
10
|
class OpenAIListModelsResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor data: ::Array[Telnyx::
|
|
11
|
+
attr_accessor data: ::Array[Telnyx::Models::AI::OpenAIListModelsResponse::Data]
|
|
9
12
|
|
|
10
13
|
attr_reader object: String?
|
|
11
14
|
|
|
12
15
|
def object=: (String) -> String
|
|
13
16
|
|
|
14
17
|
def initialize: (
|
|
15
|
-
data: ::Array[Telnyx::
|
|
18
|
+
data: ::Array[Telnyx::Models::AI::OpenAIListModelsResponse::Data],
|
|
16
19
|
?object: String
|
|
17
20
|
) -> void
|
|
18
21
|
|
|
19
|
-
def to_hash: -> {
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
data: ::Array[Telnyx::Models::AI::OpenAIListModelsResponse::Data],
|
|
24
|
+
object: String
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
type data =
|
|
28
|
+
{ id: String, created: Integer, owned_by: String, object: String }
|
|
29
|
+
|
|
30
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
31
|
+
attr_accessor id: String
|
|
32
|
+
|
|
33
|
+
attr_accessor created: Integer
|
|
34
|
+
|
|
35
|
+
attr_accessor owned_by: String
|
|
36
|
+
|
|
37
|
+
attr_reader object: String?
|
|
38
|
+
|
|
39
|
+
def object=: (String) -> String
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
id: String,
|
|
43
|
+
created: Integer,
|
|
44
|
+
owned_by: String,
|
|
45
|
+
?object: String
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
id: String,
|
|
50
|
+
created: Integer,
|
|
51
|
+
owned_by: String,
|
|
52
|
+
object: String
|
|
53
|
+
}
|
|
54
|
+
end
|
|
20
55
|
end
|
|
21
56
|
end
|
|
22
57
|
end
|
|
@@ -44,15 +44,15 @@ module Telnyx
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
type targets =
|
|
47
|
-
::Array[Telnyx::AI::TransferTool::Transfer::Targets::
|
|
47
|
+
::Array[Telnyx::AI::TransferTool::Transfer::Targets::UnionMember0]
|
|
48
48
|
| String
|
|
49
49
|
|
|
50
50
|
module Targets
|
|
51
51
|
extend Telnyx::Internal::Type::Union
|
|
52
52
|
|
|
53
|
-
type
|
|
53
|
+
type union_member0 = { to: String, name: String }
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class UnionMember0 < Telnyx::Internal::Type::BaseModel
|
|
56
56
|
attr_accessor to: String
|
|
57
57
|
|
|
58
58
|
attr_reader name: String?
|
|
@@ -66,7 +66,7 @@ module Telnyx
|
|
|
66
66
|
|
|
67
67
|
def self?.variants: -> ::Array[Telnyx::Models::AI::TransferTool::Transfer::targets]
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
UnionMember0Array: Telnyx::Internal::Type::Converter
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
|
|
@@ -1,21 +1,56 @@
|
|
|
1
1
|
module Telnyx
|
|
2
2
|
module Models
|
|
3
3
|
type ai_retrieve_models_response =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
data: ::Array[Telnyx::Models::AIRetrieveModelsResponse::Data],
|
|
6
|
+
object: String
|
|
7
|
+
}
|
|
5
8
|
|
|
6
9
|
class AIRetrieveModelsResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
-
attr_accessor data: ::Array[Telnyx::
|
|
10
|
+
attr_accessor data: ::Array[Telnyx::Models::AIRetrieveModelsResponse::Data]
|
|
8
11
|
|
|
9
12
|
attr_reader object: String?
|
|
10
13
|
|
|
11
14
|
def object=: (String) -> String
|
|
12
15
|
|
|
13
16
|
def initialize: (
|
|
14
|
-
data: ::Array[Telnyx::
|
|
17
|
+
data: ::Array[Telnyx::Models::AIRetrieveModelsResponse::Data],
|
|
15
18
|
?object: String
|
|
16
19
|
) -> void
|
|
17
20
|
|
|
18
|
-
def to_hash: -> {
|
|
21
|
+
def to_hash: -> {
|
|
22
|
+
data: ::Array[Telnyx::Models::AIRetrieveModelsResponse::Data],
|
|
23
|
+
object: String
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
type data =
|
|
27
|
+
{ id: String, created: Integer, owned_by: String, object: String }
|
|
28
|
+
|
|
29
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
30
|
+
attr_accessor id: String
|
|
31
|
+
|
|
32
|
+
attr_accessor created: Integer
|
|
33
|
+
|
|
34
|
+
attr_accessor owned_by: String
|
|
35
|
+
|
|
36
|
+
attr_reader object: String?
|
|
37
|
+
|
|
38
|
+
def object=: (String) -> String
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
id: String,
|
|
42
|
+
created: Integer,
|
|
43
|
+
owned_by: String,
|
|
44
|
+
?object: String
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
created: Integer,
|
|
50
|
+
owned_by: String,
|
|
51
|
+
object: String
|
|
52
|
+
}
|
|
53
|
+
end
|
|
19
54
|
end
|
|
20
55
|
end
|
|
21
56
|
end
|
|
@@ -182,11 +182,25 @@ module Telnyx
|
|
|
182
182
|
| Telnyx::AzureVoiceSettings
|
|
183
183
|
| Telnyx::RimeVoiceSettings
|
|
184
184
|
| Telnyx::ResembleVoiceSettings
|
|
185
|
-
| Telnyx::
|
|
185
|
+
| Telnyx::Calls::ActionGatherUsingAIParams::VoiceSettings::Xai
|
|
186
186
|
|
|
187
187
|
module VoiceSettings
|
|
188
188
|
extend Telnyx::Internal::Type::Union
|
|
189
189
|
|
|
190
|
+
type xai = { type: :xai, language: String }
|
|
191
|
+
|
|
192
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
193
|
+
attr_accessor type: :xai
|
|
194
|
+
|
|
195
|
+
attr_reader language: String?
|
|
196
|
+
|
|
197
|
+
def language=: (String) -> String
|
|
198
|
+
|
|
199
|
+
def initialize: (?language: String, ?type: :xai) -> void
|
|
200
|
+
|
|
201
|
+
def to_hash: -> { type: :xai, language: String }
|
|
202
|
+
end
|
|
203
|
+
|
|
190
204
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingAIParams::voice_settings]
|
|
191
205
|
end
|
|
192
206
|
end
|
|
@@ -237,7 +237,7 @@ module Telnyx
|
|
|
237
237
|
| Telnyx::RimeVoiceSettings
|
|
238
238
|
| Telnyx::ResembleVoiceSettings
|
|
239
239
|
| Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Inworld
|
|
240
|
-
| Telnyx::
|
|
240
|
+
| Telnyx::Calls::ActionGatherUsingSpeakParams::VoiceSettings::Xai
|
|
241
241
|
|
|
242
242
|
module VoiceSettings
|
|
243
243
|
extend Telnyx::Internal::Type::Union
|
|
@@ -252,6 +252,20 @@ module Telnyx
|
|
|
252
252
|
def to_hash: -> { type: :inworld }
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
+
type xai = { type: :xai, language: String }
|
|
256
|
+
|
|
257
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
258
|
+
attr_accessor type: :xai
|
|
259
|
+
|
|
260
|
+
attr_reader language: String?
|
|
261
|
+
|
|
262
|
+
def language=: (String) -> String
|
|
263
|
+
|
|
264
|
+
def initialize: (?language: String, ?type: :xai) -> void
|
|
265
|
+
|
|
266
|
+
def to_hash: -> { type: :xai, language: String }
|
|
267
|
+
end
|
|
268
|
+
|
|
255
269
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionGatherUsingSpeakParams::voice_settings]
|
|
256
270
|
end
|
|
257
271
|
end
|
|
@@ -218,7 +218,7 @@ module Telnyx
|
|
|
218
218
|
| Telnyx::RimeVoiceSettings
|
|
219
219
|
| Telnyx::ResembleVoiceSettings
|
|
220
220
|
| Telnyx::Calls::ActionSpeakParams::VoiceSettings::Inworld
|
|
221
|
-
| Telnyx::
|
|
221
|
+
| Telnyx::Calls::ActionSpeakParams::VoiceSettings::Xai
|
|
222
222
|
|
|
223
223
|
module VoiceSettings
|
|
224
224
|
extend Telnyx::Internal::Type::Union
|
|
@@ -233,6 +233,20 @@ module Telnyx
|
|
|
233
233
|
def to_hash: -> { type: :inworld }
|
|
234
234
|
end
|
|
235
235
|
|
|
236
|
+
type xai = { type: :xai, language: String }
|
|
237
|
+
|
|
238
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
239
|
+
attr_accessor type: :xai
|
|
240
|
+
|
|
241
|
+
attr_reader language: String?
|
|
242
|
+
|
|
243
|
+
def language=: (String) -> String
|
|
244
|
+
|
|
245
|
+
def initialize: (?language: String, ?type: :xai) -> void
|
|
246
|
+
|
|
247
|
+
def to_hash: -> { type: :xai, language: String }
|
|
248
|
+
end
|
|
249
|
+
|
|
236
250
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionSpeakParams::voice_settings]
|
|
237
251
|
end
|
|
238
252
|
end
|
|
@@ -387,11 +387,25 @@ module Telnyx
|
|
|
387
387
|
| Telnyx::AzureVoiceSettings
|
|
388
388
|
| Telnyx::RimeVoiceSettings
|
|
389
389
|
| Telnyx::ResembleVoiceSettings
|
|
390
|
-
| Telnyx::
|
|
390
|
+
| Telnyx::Calls::ActionStartAIAssistantParams::VoiceSettings::Xai
|
|
391
391
|
|
|
392
392
|
module VoiceSettings
|
|
393
393
|
extend Telnyx::Internal::Type::Union
|
|
394
394
|
|
|
395
|
+
type xai = { type: :xai, language: String }
|
|
396
|
+
|
|
397
|
+
class Xai < Telnyx::Internal::Type::BaseModel
|
|
398
|
+
attr_accessor type: :xai
|
|
399
|
+
|
|
400
|
+
attr_reader language: String?
|
|
401
|
+
|
|
402
|
+
def language=: (String) -> String
|
|
403
|
+
|
|
404
|
+
def initialize: (?language: String, ?type: :xai) -> void
|
|
405
|
+
|
|
406
|
+
def to_hash: -> { type: :xai, language: String }
|
|
407
|
+
end
|
|
408
|
+
|
|
395
409
|
def self?.variants: -> ::Array[Telnyx::Models::Calls::ActionStartAIAssistantParams::voice_settings]
|
|
396
410
|
end
|
|
397
411
|
end
|