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
|
@@ -14,10 +14,10 @@ module Telnyx
|
|
|
14
14
|
greeting: String,
|
|
15
15
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
16
16
|
instructions: String,
|
|
17
|
-
integrations: ::Array[Telnyx::AI::
|
|
18
|
-
interruption_settings: Telnyx::AI::
|
|
17
|
+
integrations: ::Array[Telnyx::AI::AssistantUpdateParams::Integration],
|
|
18
|
+
interruption_settings: Telnyx::AI::AssistantUpdateParams::InterruptionSettings,
|
|
19
19
|
llm_api_key_ref: String,
|
|
20
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
20
|
+
mcp_servers: ::Array[Telnyx::AI::AssistantUpdateParams::McpServer],
|
|
21
21
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
22
22
|
model: String,
|
|
23
23
|
name: String,
|
|
@@ -90,27 +90,27 @@ module Telnyx
|
|
|
90
90
|
|
|
91
91
|
def instructions=: (String) -> String
|
|
92
92
|
|
|
93
|
-
attr_reader integrations: ::Array[Telnyx::AI::
|
|
93
|
+
attr_reader integrations: ::Array[Telnyx::AI::AssistantUpdateParams::Integration]?
|
|
94
94
|
|
|
95
95
|
def integrations=: (
|
|
96
|
-
::Array[Telnyx::AI::
|
|
97
|
-
) -> ::Array[Telnyx::AI::
|
|
96
|
+
::Array[Telnyx::AI::AssistantUpdateParams::Integration]
|
|
97
|
+
) -> ::Array[Telnyx::AI::AssistantUpdateParams::Integration]
|
|
98
98
|
|
|
99
|
-
attr_reader interruption_settings: Telnyx::AI::
|
|
99
|
+
attr_reader interruption_settings: Telnyx::AI::AssistantUpdateParams::InterruptionSettings?
|
|
100
100
|
|
|
101
101
|
def interruption_settings=: (
|
|
102
|
-
Telnyx::AI::
|
|
103
|
-
) -> Telnyx::AI::
|
|
102
|
+
Telnyx::AI::AssistantUpdateParams::InterruptionSettings
|
|
103
|
+
) -> Telnyx::AI::AssistantUpdateParams::InterruptionSettings
|
|
104
104
|
|
|
105
105
|
attr_reader llm_api_key_ref: String?
|
|
106
106
|
|
|
107
107
|
def llm_api_key_ref=: (String) -> String
|
|
108
108
|
|
|
109
|
-
attr_reader mcp_servers: ::Array[Telnyx::AI::
|
|
109
|
+
attr_reader mcp_servers: ::Array[Telnyx::AI::AssistantUpdateParams::McpServer]?
|
|
110
110
|
|
|
111
111
|
def mcp_servers=: (
|
|
112
|
-
::Array[Telnyx::AI::
|
|
113
|
-
) -> ::Array[Telnyx::AI::
|
|
112
|
+
::Array[Telnyx::AI::AssistantUpdateParams::McpServer]
|
|
113
|
+
) -> ::Array[Telnyx::AI::AssistantUpdateParams::McpServer]
|
|
114
114
|
|
|
115
115
|
attr_reader messaging_settings: Telnyx::AI::MessagingSettings?
|
|
116
116
|
|
|
@@ -202,10 +202,10 @@ module Telnyx
|
|
|
202
202
|
?greeting: String,
|
|
203
203
|
?insight_settings: Telnyx::AI::InsightSettings,
|
|
204
204
|
?instructions: String,
|
|
205
|
-
?integrations: ::Array[Telnyx::AI::
|
|
206
|
-
?interruption_settings: Telnyx::AI::
|
|
205
|
+
?integrations: ::Array[Telnyx::AI::AssistantUpdateParams::Integration],
|
|
206
|
+
?interruption_settings: Telnyx::AI::AssistantUpdateParams::InterruptionSettings,
|
|
207
207
|
?llm_api_key_ref: String,
|
|
208
|
-
?mcp_servers: ::Array[Telnyx::AI::
|
|
208
|
+
?mcp_servers: ::Array[Telnyx::AI::AssistantUpdateParams::McpServer],
|
|
209
209
|
?messaging_settings: Telnyx::AI::MessagingSettings,
|
|
210
210
|
?model: String,
|
|
211
211
|
?name: String,
|
|
@@ -236,10 +236,10 @@ module Telnyx
|
|
|
236
236
|
greeting: String,
|
|
237
237
|
insight_settings: Telnyx::AI::InsightSettings,
|
|
238
238
|
instructions: String,
|
|
239
|
-
integrations: ::Array[Telnyx::AI::
|
|
240
|
-
interruption_settings: Telnyx::AI::
|
|
239
|
+
integrations: ::Array[Telnyx::AI::AssistantUpdateParams::Integration],
|
|
240
|
+
interruption_settings: Telnyx::AI::AssistantUpdateParams::InterruptionSettings,
|
|
241
241
|
llm_api_key_ref: String,
|
|
242
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
242
|
+
mcp_servers: ::Array[Telnyx::AI::AssistantUpdateParams::McpServer],
|
|
243
243
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
244
244
|
model: String,
|
|
245
245
|
name: String,
|
|
@@ -257,6 +257,130 @@ module Telnyx
|
|
|
257
257
|
widget_settings: Telnyx::AI::WidgetSettings,
|
|
258
258
|
request_options: Telnyx::RequestOptions
|
|
259
259
|
}
|
|
260
|
+
|
|
261
|
+
type integration =
|
|
262
|
+
{ integration_id: String, allowed_list: ::Array[String] }
|
|
263
|
+
|
|
264
|
+
class Integration < Telnyx::Internal::Type::BaseModel
|
|
265
|
+
attr_accessor integration_id: String
|
|
266
|
+
|
|
267
|
+
attr_reader allowed_list: ::Array[String]?
|
|
268
|
+
|
|
269
|
+
def allowed_list=: (::Array[String]) -> ::Array[String]
|
|
270
|
+
|
|
271
|
+
def initialize: (
|
|
272
|
+
integration_id: String,
|
|
273
|
+
?allowed_list: ::Array[String]
|
|
274
|
+
) -> void
|
|
275
|
+
|
|
276
|
+
def to_hash: -> {
|
|
277
|
+
integration_id: String,
|
|
278
|
+
allowed_list: ::Array[String]
|
|
279
|
+
}
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
type interruption_settings =
|
|
283
|
+
{
|
|
284
|
+
enable: bool,
|
|
285
|
+
start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
class InterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
289
|
+
attr_reader enable: bool?
|
|
290
|
+
|
|
291
|
+
def enable=: (bool) -> bool
|
|
292
|
+
|
|
293
|
+
attr_reader start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan?
|
|
294
|
+
|
|
295
|
+
def start_speaking_plan=: (
|
|
296
|
+
Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
297
|
+
) -> Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
298
|
+
|
|
299
|
+
def initialize: (
|
|
300
|
+
?enable: bool,
|
|
301
|
+
?start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
302
|
+
) -> void
|
|
303
|
+
|
|
304
|
+
def to_hash: -> {
|
|
305
|
+
enable: bool,
|
|
306
|
+
start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
type start_speaking_plan =
|
|
310
|
+
{
|
|
311
|
+
transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
312
|
+
wait_seconds: Float
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
|
|
316
|
+
attr_reader transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan?
|
|
317
|
+
|
|
318
|
+
def transcription_endpointing_plan=: (
|
|
319
|
+
Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
320
|
+
) -> Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
321
|
+
|
|
322
|
+
attr_reader wait_seconds: Float?
|
|
323
|
+
|
|
324
|
+
def wait_seconds=: (Float) -> Float
|
|
325
|
+
|
|
326
|
+
def initialize: (
|
|
327
|
+
?transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
328
|
+
?wait_seconds: Float
|
|
329
|
+
) -> void
|
|
330
|
+
|
|
331
|
+
def to_hash: -> {
|
|
332
|
+
transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
333
|
+
wait_seconds: Float
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
type transcription_endpointing_plan =
|
|
337
|
+
{
|
|
338
|
+
on_no_punctuation_seconds: Float,
|
|
339
|
+
on_number_seconds: Float,
|
|
340
|
+
on_punctuation_seconds: Float
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
class TranscriptionEndpointingPlan < Telnyx::Internal::Type::BaseModel
|
|
344
|
+
attr_reader on_no_punctuation_seconds: Float?
|
|
345
|
+
|
|
346
|
+
def on_no_punctuation_seconds=: (Float) -> Float
|
|
347
|
+
|
|
348
|
+
attr_reader on_number_seconds: Float?
|
|
349
|
+
|
|
350
|
+
def on_number_seconds=: (Float) -> Float
|
|
351
|
+
|
|
352
|
+
attr_reader on_punctuation_seconds: Float?
|
|
353
|
+
|
|
354
|
+
def on_punctuation_seconds=: (Float) -> Float
|
|
355
|
+
|
|
356
|
+
def initialize: (
|
|
357
|
+
?on_no_punctuation_seconds: Float,
|
|
358
|
+
?on_number_seconds: Float,
|
|
359
|
+
?on_punctuation_seconds: Float
|
|
360
|
+
) -> void
|
|
361
|
+
|
|
362
|
+
def to_hash: -> {
|
|
363
|
+
on_no_punctuation_seconds: Float,
|
|
364
|
+
on_number_seconds: Float,
|
|
365
|
+
on_punctuation_seconds: Float
|
|
366
|
+
}
|
|
367
|
+
end
|
|
368
|
+
end
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
type mcp_server = { id: String, allowed_tools: ::Array[String] }
|
|
372
|
+
|
|
373
|
+
class McpServer < Telnyx::Internal::Type::BaseModel
|
|
374
|
+
attr_accessor id: String
|
|
375
|
+
|
|
376
|
+
attr_reader allowed_tools: ::Array[String]?
|
|
377
|
+
|
|
378
|
+
def allowed_tools=: (::Array[String]) -> ::Array[String]
|
|
379
|
+
|
|
380
|
+
def initialize: (id: String, ?allowed_tools: ::Array[String]) -> void
|
|
381
|
+
|
|
382
|
+
def to_hash: -> { id: String, allowed_tools: ::Array[String] }
|
|
383
|
+
end
|
|
260
384
|
end
|
|
261
385
|
end
|
|
262
386
|
end
|
|
@@ -3,20 +3,127 @@ module Telnyx
|
|
|
3
3
|
module AI
|
|
4
4
|
module Assistants
|
|
5
5
|
type canary_deploy =
|
|
6
|
-
{ rules: ::Array[Telnyx::AI::Assistants::
|
|
6
|
+
{ rules: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule] }
|
|
7
7
|
|
|
8
8
|
class CanaryDeploy < Telnyx::Internal::Type::BaseModel
|
|
9
|
-
attr_reader rules: ::Array[Telnyx::AI::Assistants::
|
|
9
|
+
attr_reader rules: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule]?
|
|
10
10
|
|
|
11
11
|
def rules=: (
|
|
12
|
-
::Array[Telnyx::AI::Assistants::
|
|
13
|
-
) -> ::Array[Telnyx::AI::Assistants::
|
|
12
|
+
::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule]
|
|
13
|
+
) -> ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule]
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
|
-
?rules: ::Array[Telnyx::AI::Assistants::
|
|
16
|
+
?rules: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule]
|
|
17
17
|
) -> void
|
|
18
18
|
|
|
19
|
-
def to_hash: -> {
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
rules: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule]
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type rule =
|
|
24
|
+
{
|
|
25
|
+
serve: Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve,
|
|
26
|
+
match: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Match]
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
class Rule < Telnyx::Internal::Type::BaseModel
|
|
30
|
+
attr_accessor serve: Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve
|
|
31
|
+
|
|
32
|
+
attr_reader match: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Match]?
|
|
33
|
+
|
|
34
|
+
def match=: (
|
|
35
|
+
::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Match]
|
|
36
|
+
) -> ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Match]
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
serve: Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve,
|
|
40
|
+
?match: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Match]
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
serve: Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve,
|
|
45
|
+
match: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Match]
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type serve =
|
|
49
|
+
{
|
|
50
|
+
rollout: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout],
|
|
51
|
+
version_id: String
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
class Serve < Telnyx::Internal::Type::BaseModel
|
|
55
|
+
attr_reader rollout: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout]?
|
|
56
|
+
|
|
57
|
+
def rollout=: (
|
|
58
|
+
::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout]
|
|
59
|
+
) -> ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout]
|
|
60
|
+
|
|
61
|
+
attr_reader version_id: String?
|
|
62
|
+
|
|
63
|
+
def version_id=: (String) -> String
|
|
64
|
+
|
|
65
|
+
def initialize: (
|
|
66
|
+
?rollout: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout],
|
|
67
|
+
?version_id: String
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
rollout: ::Array[Telnyx::AI::Assistants::CanaryDeploy::Rule::Serve::Rollout],
|
|
72
|
+
version_id: String
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
type rollout = { version_id: String, weight: Float }
|
|
76
|
+
|
|
77
|
+
class Rollout < Telnyx::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor version_id: String
|
|
79
|
+
|
|
80
|
+
attr_accessor weight: Float
|
|
81
|
+
|
|
82
|
+
def initialize: (version_id: String, weight: Float) -> void
|
|
83
|
+
|
|
84
|
+
def to_hash: -> { version_id: String, weight: Float }
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type match =
|
|
89
|
+
{
|
|
90
|
+
attribute: String,
|
|
91
|
+
operator: Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Match::operator,
|
|
92
|
+
values: ::Array[String]
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
class Match < Telnyx::Internal::Type::BaseModel
|
|
96
|
+
attr_accessor attribute: String
|
|
97
|
+
|
|
98
|
+
attr_accessor operator: Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Match::operator
|
|
99
|
+
|
|
100
|
+
attr_accessor values: ::Array[String]
|
|
101
|
+
|
|
102
|
+
def initialize: (
|
|
103
|
+
attribute: String,
|
|
104
|
+
operator: Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Match::operator,
|
|
105
|
+
values: ::Array[String]
|
|
106
|
+
) -> void
|
|
107
|
+
|
|
108
|
+
def to_hash: -> {
|
|
109
|
+
attribute: String,
|
|
110
|
+
operator: Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Match::operator,
|
|
111
|
+
values: ::Array[String]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
type operator = :in | :not_in | :starts_with
|
|
115
|
+
|
|
116
|
+
module Operator
|
|
117
|
+
extend Telnyx::Internal::Type::Enum
|
|
118
|
+
|
|
119
|
+
IN: :in
|
|
120
|
+
NOT_IN: :not_in
|
|
121
|
+
STARTS_WITH: :starts_with
|
|
122
|
+
|
|
123
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Assistants::CanaryDeploy::Rule::Match::operator]
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
20
127
|
end
|
|
21
128
|
end
|
|
22
129
|
end
|
|
@@ -6,7 +6,7 @@ module Telnyx
|
|
|
6
6
|
{
|
|
7
7
|
assistant_id: String,
|
|
8
8
|
created_at: Time,
|
|
9
|
-
rules: ::Array[Telnyx::AI::Assistants::
|
|
9
|
+
rules: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule],
|
|
10
10
|
updated_at: Time
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -15,23 +15,128 @@ module Telnyx
|
|
|
15
15
|
|
|
16
16
|
attr_accessor created_at: Time
|
|
17
17
|
|
|
18
|
-
attr_accessor rules: ::Array[Telnyx::AI::Assistants::
|
|
18
|
+
attr_accessor rules: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule]
|
|
19
19
|
|
|
20
20
|
attr_accessor updated_at: Time
|
|
21
21
|
|
|
22
22
|
def initialize: (
|
|
23
23
|
assistant_id: String,
|
|
24
24
|
created_at: Time,
|
|
25
|
-
rules: ::Array[Telnyx::AI::Assistants::
|
|
25
|
+
rules: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule],
|
|
26
26
|
updated_at: Time
|
|
27
27
|
) -> void
|
|
28
28
|
|
|
29
29
|
def to_hash: -> {
|
|
30
30
|
assistant_id: String,
|
|
31
31
|
created_at: Time,
|
|
32
|
-
rules: ::Array[Telnyx::AI::Assistants::
|
|
32
|
+
rules: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule],
|
|
33
33
|
updated_at: Time
|
|
34
34
|
}
|
|
35
|
+
|
|
36
|
+
type rule =
|
|
37
|
+
{
|
|
38
|
+
serve: Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve,
|
|
39
|
+
match: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match]
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class Rule < Telnyx::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor serve: Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve
|
|
44
|
+
|
|
45
|
+
attr_reader match: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match]?
|
|
46
|
+
|
|
47
|
+
def match=: (
|
|
48
|
+
::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match]
|
|
49
|
+
) -> ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match]
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
serve: Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve,
|
|
53
|
+
?match: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match]
|
|
54
|
+
) -> void
|
|
55
|
+
|
|
56
|
+
def to_hash: -> {
|
|
57
|
+
serve: Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve,
|
|
58
|
+
match: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Match]
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
type serve =
|
|
62
|
+
{
|
|
63
|
+
rollout: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout],
|
|
64
|
+
version_id: String
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
class Serve < Telnyx::Internal::Type::BaseModel
|
|
68
|
+
attr_reader rollout: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout]?
|
|
69
|
+
|
|
70
|
+
def rollout=: (
|
|
71
|
+
::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout]
|
|
72
|
+
) -> ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout]
|
|
73
|
+
|
|
74
|
+
attr_reader version_id: String?
|
|
75
|
+
|
|
76
|
+
def version_id=: (String) -> String
|
|
77
|
+
|
|
78
|
+
def initialize: (
|
|
79
|
+
?rollout: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout],
|
|
80
|
+
?version_id: String
|
|
81
|
+
) -> void
|
|
82
|
+
|
|
83
|
+
def to_hash: -> {
|
|
84
|
+
rollout: ::Array[Telnyx::AI::Assistants::CanaryDeployResponse::Rule::Serve::Rollout],
|
|
85
|
+
version_id: String
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
type rollout = { version_id: String, weight: Float }
|
|
89
|
+
|
|
90
|
+
class Rollout < Telnyx::Internal::Type::BaseModel
|
|
91
|
+
attr_accessor version_id: String
|
|
92
|
+
|
|
93
|
+
attr_accessor weight: Float
|
|
94
|
+
|
|
95
|
+
def initialize: (version_id: String, weight: Float) -> void
|
|
96
|
+
|
|
97
|
+
def to_hash: -> { version_id: String, weight: Float }
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
type match =
|
|
102
|
+
{
|
|
103
|
+
attribute: String,
|
|
104
|
+
operator: Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match::operator,
|
|
105
|
+
values: ::Array[String]
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
class Match < Telnyx::Internal::Type::BaseModel
|
|
109
|
+
attr_accessor attribute: String
|
|
110
|
+
|
|
111
|
+
attr_accessor operator: Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match::operator
|
|
112
|
+
|
|
113
|
+
attr_accessor values: ::Array[String]
|
|
114
|
+
|
|
115
|
+
def initialize: (
|
|
116
|
+
attribute: String,
|
|
117
|
+
operator: Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match::operator,
|
|
118
|
+
values: ::Array[String]
|
|
119
|
+
) -> void
|
|
120
|
+
|
|
121
|
+
def to_hash: -> {
|
|
122
|
+
attribute: String,
|
|
123
|
+
operator: Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match::operator,
|
|
124
|
+
values: ::Array[String]
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
type operator = :in | :not_in | :starts_with
|
|
128
|
+
|
|
129
|
+
module Operator
|
|
130
|
+
extend Telnyx::Internal::Type::Enum
|
|
131
|
+
|
|
132
|
+
IN: :in
|
|
133
|
+
NOT_IN: :not_in
|
|
134
|
+
STARTS_WITH: :starts_with
|
|
135
|
+
|
|
136
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Assistants::CanaryDeployResponse::Rule::Match::operator]
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
35
140
|
end
|
|
36
141
|
end
|
|
37
142
|
end
|
|
@@ -11,6 +11,8 @@ module Telnyx
|
|
|
11
11
|
telnyx_end_user_target: String,
|
|
12
12
|
conversation_metadata: ::Hash[Symbol, Telnyx::Models::AI::Assistants::ScheduledEventCreateParams::conversation_metadata],
|
|
13
13
|
dynamic_variables: ::Hash[Symbol, String],
|
|
14
|
+
max_retries_client_errors: Integer,
|
|
15
|
+
retry_interval_secs: Integer,
|
|
14
16
|
text: String
|
|
15
17
|
}
|
|
16
18
|
& Telnyx::Internal::Type::request_parameters
|
|
@@ -41,6 +43,14 @@ module Telnyx
|
|
|
41
43
|
::Hash[Symbol, String]
|
|
42
44
|
) -> ::Hash[Symbol, String]
|
|
43
45
|
|
|
46
|
+
attr_reader max_retries_client_errors: Integer?
|
|
47
|
+
|
|
48
|
+
def max_retries_client_errors=: (Integer) -> Integer
|
|
49
|
+
|
|
50
|
+
attr_reader retry_interval_secs: Integer?
|
|
51
|
+
|
|
52
|
+
def retry_interval_secs=: (Integer) -> Integer
|
|
53
|
+
|
|
44
54
|
attr_reader text: String?
|
|
45
55
|
|
|
46
56
|
def text=: (String) -> String
|
|
@@ -53,6 +63,8 @@ module Telnyx
|
|
|
53
63
|
telnyx_end_user_target: String,
|
|
54
64
|
?conversation_metadata: ::Hash[Symbol, Telnyx::Models::AI::Assistants::ScheduledEventCreateParams::conversation_metadata],
|
|
55
65
|
?dynamic_variables: ::Hash[Symbol, String],
|
|
66
|
+
?max_retries_client_errors: Integer,
|
|
67
|
+
?retry_interval_secs: Integer,
|
|
56
68
|
?text: String,
|
|
57
69
|
?request_options: Telnyx::request_opts
|
|
58
70
|
) -> void
|
|
@@ -65,6 +77,8 @@ module Telnyx
|
|
|
65
77
|
telnyx_end_user_target: String,
|
|
66
78
|
conversation_metadata: ::Hash[Symbol, Telnyx::Models::AI::Assistants::ScheduledEventCreateParams::conversation_metadata],
|
|
67
79
|
dynamic_variables: ::Hash[Symbol, String],
|
|
80
|
+
max_retries_client_errors: Integer,
|
|
81
|
+
retry_interval_secs: Integer,
|
|
68
82
|
text: String,
|
|
69
83
|
request_options: Telnyx::RequestOptions
|
|
70
84
|
}
|
|
@@ -9,13 +9,19 @@ module Telnyx
|
|
|
9
9
|
telnyx_agent_target: String,
|
|
10
10
|
telnyx_conversation_channel: Telnyx::Models::AI::Assistants::conversation_channel_type,
|
|
11
11
|
telnyx_end_user_target: String,
|
|
12
|
+
call_attempts: ::Array[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt],
|
|
13
|
+
call_duration: Integer,
|
|
14
|
+
call_status: String,
|
|
12
15
|
conversation_id: String,
|
|
13
16
|
conversation_metadata: ::Hash[Symbol, Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::conversation_metadata],
|
|
14
17
|
created_at: Time,
|
|
18
|
+
dispatched_at: Time,
|
|
15
19
|
dynamic_variables: ::Hash[Symbol, String],
|
|
16
20
|
errors: ::Array[String],
|
|
21
|
+
max_retries_client_errors: Integer,
|
|
17
22
|
retry_attempts: Integer,
|
|
18
23
|
retry_count: Integer,
|
|
24
|
+
retry_interval_secs: Integer,
|
|
19
25
|
scheduled_event_id: String,
|
|
20
26
|
status: Telnyx::Models::AI::Assistants::event_status
|
|
21
27
|
}
|
|
@@ -31,6 +37,20 @@ module Telnyx
|
|
|
31
37
|
|
|
32
38
|
attr_accessor telnyx_end_user_target: String
|
|
33
39
|
|
|
40
|
+
attr_reader call_attempts: ::Array[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt]?
|
|
41
|
+
|
|
42
|
+
def call_attempts=: (
|
|
43
|
+
::Array[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt]
|
|
44
|
+
) -> ::Array[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt]
|
|
45
|
+
|
|
46
|
+
attr_reader call_duration: Integer?
|
|
47
|
+
|
|
48
|
+
def call_duration=: (Integer) -> Integer
|
|
49
|
+
|
|
50
|
+
attr_reader call_status: String?
|
|
51
|
+
|
|
52
|
+
def call_status=: (String) -> String
|
|
53
|
+
|
|
34
54
|
attr_reader conversation_id: String?
|
|
35
55
|
|
|
36
56
|
def conversation_id=: (String) -> String
|
|
@@ -45,6 +65,10 @@ module Telnyx
|
|
|
45
65
|
|
|
46
66
|
def created_at=: (Time) -> Time
|
|
47
67
|
|
|
68
|
+
attr_reader dispatched_at: Time?
|
|
69
|
+
|
|
70
|
+
def dispatched_at=: (Time) -> Time
|
|
71
|
+
|
|
48
72
|
attr_reader dynamic_variables: ::Hash[Symbol, String]?
|
|
49
73
|
|
|
50
74
|
def dynamic_variables=: (
|
|
@@ -55,6 +79,10 @@ module Telnyx
|
|
|
55
79
|
|
|
56
80
|
def errors=: (::Array[String]) -> ::Array[String]
|
|
57
81
|
|
|
82
|
+
attr_reader max_retries_client_errors: Integer?
|
|
83
|
+
|
|
84
|
+
def max_retries_client_errors=: (Integer) -> Integer
|
|
85
|
+
|
|
58
86
|
attr_reader retry_attempts: Integer?
|
|
59
87
|
|
|
60
88
|
def retry_attempts=: (Integer) -> Integer
|
|
@@ -63,6 +91,10 @@ module Telnyx
|
|
|
63
91
|
|
|
64
92
|
def retry_count=: (Integer) -> Integer
|
|
65
93
|
|
|
94
|
+
attr_reader retry_interval_secs: Integer?
|
|
95
|
+
|
|
96
|
+
def retry_interval_secs=: (Integer) -> Integer
|
|
97
|
+
|
|
66
98
|
attr_reader scheduled_event_id: String?
|
|
67
99
|
|
|
68
100
|
def scheduled_event_id=: (String) -> String
|
|
@@ -79,13 +111,19 @@ module Telnyx
|
|
|
79
111
|
telnyx_agent_target: String,
|
|
80
112
|
telnyx_conversation_channel: Telnyx::Models::AI::Assistants::conversation_channel_type,
|
|
81
113
|
telnyx_end_user_target: String,
|
|
114
|
+
?call_attempts: ::Array[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt],
|
|
115
|
+
?call_duration: Integer,
|
|
116
|
+
?call_status: String,
|
|
82
117
|
?conversation_id: String,
|
|
83
118
|
?conversation_metadata: ::Hash[Symbol, Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::conversation_metadata],
|
|
84
119
|
?created_at: Time,
|
|
120
|
+
?dispatched_at: Time,
|
|
85
121
|
?dynamic_variables: ::Hash[Symbol, String],
|
|
86
122
|
?errors: ::Array[String],
|
|
123
|
+
?max_retries_client_errors: Integer,
|
|
87
124
|
?retry_attempts: Integer,
|
|
88
125
|
?retry_count: Integer,
|
|
126
|
+
?retry_interval_secs: Integer,
|
|
89
127
|
?scheduled_event_id: String,
|
|
90
128
|
?status: Telnyx::Models::AI::Assistants::event_status
|
|
91
129
|
) -> void
|
|
@@ -96,17 +134,64 @@ module Telnyx
|
|
|
96
134
|
telnyx_agent_target: String,
|
|
97
135
|
telnyx_conversation_channel: Telnyx::Models::AI::Assistants::conversation_channel_type,
|
|
98
136
|
telnyx_end_user_target: String,
|
|
137
|
+
call_attempts: ::Array[Telnyx::AI::Assistants::ScheduledPhoneCallEventResponse::CallAttempt],
|
|
138
|
+
call_duration: Integer,
|
|
139
|
+
call_status: String,
|
|
99
140
|
conversation_id: String,
|
|
100
141
|
conversation_metadata: ::Hash[Symbol, Telnyx::Models::AI::Assistants::ScheduledPhoneCallEventResponse::conversation_metadata],
|
|
101
142
|
created_at: Time,
|
|
143
|
+
dispatched_at: Time,
|
|
102
144
|
dynamic_variables: ::Hash[Symbol, String],
|
|
103
145
|
errors: ::Array[String],
|
|
146
|
+
max_retries_client_errors: Integer,
|
|
104
147
|
retry_attempts: Integer,
|
|
105
148
|
retry_count: Integer,
|
|
149
|
+
retry_interval_secs: Integer,
|
|
106
150
|
scheduled_event_id: String,
|
|
107
151
|
status: Telnyx::Models::AI::Assistants::event_status
|
|
108
152
|
}
|
|
109
153
|
|
|
154
|
+
type call_attempt =
|
|
155
|
+
{
|
|
156
|
+
attempt_number: Integer,
|
|
157
|
+
attempted_at: Time,
|
|
158
|
+
call_status: String,
|
|
159
|
+
call_duration: Integer,
|
|
160
|
+
telnyx_call_control_id: String
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
class CallAttempt < Telnyx::Internal::Type::BaseModel
|
|
164
|
+
attr_accessor attempt_number: Integer
|
|
165
|
+
|
|
166
|
+
attr_accessor attempted_at: Time
|
|
167
|
+
|
|
168
|
+
attr_accessor call_status: String
|
|
169
|
+
|
|
170
|
+
attr_reader call_duration: Integer?
|
|
171
|
+
|
|
172
|
+
def call_duration=: (Integer) -> Integer
|
|
173
|
+
|
|
174
|
+
attr_reader telnyx_call_control_id: String?
|
|
175
|
+
|
|
176
|
+
def telnyx_call_control_id=: (String) -> String
|
|
177
|
+
|
|
178
|
+
def initialize: (
|
|
179
|
+
attempt_number: Integer,
|
|
180
|
+
attempted_at: Time,
|
|
181
|
+
call_status: String,
|
|
182
|
+
?call_duration: Integer,
|
|
183
|
+
?telnyx_call_control_id: String
|
|
184
|
+
) -> void
|
|
185
|
+
|
|
186
|
+
def to_hash: -> {
|
|
187
|
+
attempt_number: Integer,
|
|
188
|
+
attempted_at: Time,
|
|
189
|
+
call_status: String,
|
|
190
|
+
call_duration: Integer,
|
|
191
|
+
telnyx_call_control_id: String
|
|
192
|
+
}
|
|
193
|
+
end
|
|
194
|
+
|
|
110
195
|
type conversation_metadata = String | Integer | bool
|
|
111
196
|
|
|
112
197
|
module ConversationMetadata
|