telnyx 5.112.0 → 5.113.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 +17 -0
- data/README.md +1 -1
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -178
- data/lib/telnyx/models/ai/assistant_integration.rb +38 -0
- data/lib/telnyx/models/ai/assistant_mcp_server.rb +35 -0
- data/lib/telnyx/models/ai/assistant_tool.rb +14 -14
- data/lib/telnyx/models/ai/assistant_update_params.rb +9 -178
- data/lib/telnyx/models/ai/assistants/canary_deploy.rb +3 -123
- data/lib/telnyx/models/ai/assistants/canary_deploy_response.rb +3 -125
- data/lib/telnyx/models/ai/assistants/clause.rb +54 -0
- data/lib/telnyx/models/ai/assistants/rollout_slot.rb +27 -0
- data/lib/telnyx/models/ai/assistants/rule_input.rb +40 -0
- data/lib/telnyx/models/ai/assistants/rule_output.rb +40 -0
- data/lib/telnyx/models/ai/assistants/serve.rb +33 -0
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +9 -179
- data/lib/telnyx/models/ai/inference_embedding.rb +9 -177
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +47 -0
- data/lib/telnyx/models/ai/openai_create_response_params.rb +3 -3
- data/lib/telnyx/models/ai/openai_list_models_response.rb +3 -210
- data/lib/telnyx/models/ai/start_speaking_plan.rb +37 -0
- data/lib/telnyx/models/ai/transcription_endpointing_plan.rb +39 -0
- data/lib/telnyx/models/ai/transfer_tool.rb +7 -9
- data/lib/telnyx/models/ai_create_response_params.rb +4 -4
- data/lib/telnyx/models/ai_retrieve_models_response.rb +3 -210
- data/lib/telnyx/models/call_conversation_ended.rb +13 -1
- data/lib/telnyx/models/calls/action_gather_using_ai_params.rb +4 -23
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_speak_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_ai_assistant_params.rb +4 -23
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +169 -118
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +64 -0
- data/lib/telnyx/models/calls/transcription_engine_speechmatics_config.rb +100 -0
- data/lib/telnyx/models/calls/transcription_engine_xai_config.rb +108 -0
- data/lib/telnyx/models/calls/transcription_start_request.rb +8 -167
- data/lib/telnyx/models/conferences/action_speak_params.rb +4 -23
- data/lib/telnyx/models/fax.rb +7 -5
- data/lib/telnyx/models/fax_create_params.rb +7 -5
- data/lib/telnyx/models/fax_delivered.rb +3 -2
- data/lib/telnyx/models/fax_failed.rb +3 -2
- data/lib/telnyx/models/fax_media_processed.rb +3 -2
- data/lib/telnyx/models/fax_queued.rb +3 -2
- data/lib/telnyx/models/fax_sending_started.rb +3 -2
- data/lib/telnyx/models/model_metadata.rb +212 -0
- data/lib/telnyx/models/network_list_interfaces_response.rb +112 -2
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +3 -8
- data/lib/telnyx/models/public_internet_gateway_read.rb +83 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +3 -8
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +62 -12
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +18 -4
- data/lib/telnyx/models/text_to_speech_generate_params.rb +6 -6
- data/lib/telnyx/models/uac_connection.rb +412 -0
- data/lib/telnyx/models/uac_connection_create_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_create_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_delete_response.rb +3 -878
- data/lib/telnyx/models/uac_connection_retrieve_response.rb +3 -879
- data/lib/telnyx/models/uac_connection_update_params.rb +9 -255
- data/lib/telnyx/models/uac_connection_update_response.rb +3 -878
- data/lib/telnyx/models/uac_external_settings.rb +101 -0
- data/lib/telnyx/models/uac_inbound.rb +210 -0
- data/lib/telnyx/models/uac_internal_settings.rb +25 -0
- data/lib/telnyx/models/uac_outbound.rb +131 -0
- data/lib/telnyx/models/virtual_cross_connect_combined.rb +212 -0
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +3 -8
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_create_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +3 -8
- data/lib/telnyx/models/wireguard_interface_read.rb +136 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +3 -8
- data/lib/telnyx/models/xai_voice_settings.rb +36 -0
- data/lib/telnyx/models.rb +20 -0
- data/lib/telnyx/resources/ai/assistants/canary_deploys.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +3 -3
- data/lib/telnyx/resources/ai/assistants.rb +6 -6
- data/lib/telnyx/resources/ai/openai.rb +1 -1
- data/lib/telnyx/resources/ai.rb +3 -3
- data/lib/telnyx/resources/calls/actions.rb +15 -17
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/faxes.rb +13 -1
- data/lib/telnyx/resources/public_internet_gateways.rb +2 -2
- data/lib/telnyx/resources/texml.rb +4 -2
- data/lib/telnyx/resources/uac_connections.rb +8 -8
- data/lib/telnyx/resources/virtual_cross_connects.rb +2 -2
- data/lib/telnyx/resources/wireguard_interfaces.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +23 -4
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistant_integration.rbi +60 -0
- data/rbi/telnyx/models/ai/assistant_mcp_server.rbi +51 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +10 -10
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +12 -352
- data/rbi/telnyx/models/ai/assistants/canary_deploy.rbi +4 -290
- data/rbi/telnyx/models/ai/assistants/canary_deploy_response.rbi +3 -301
- data/rbi/telnyx/models/ai/assistants/clause.rbi +91 -0
- data/rbi/telnyx/models/ai/assistants/rollout_slot.rbi +36 -0
- data/rbi/telnyx/models/ai/assistants/rule_input.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/rule_output.rbi +73 -0
- data/rbi/telnyx/models/ai/assistants/serve.rbi +61 -0
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +12 -366
- data/rbi/telnyx/models/ai/inference_embedding.rbi +12 -351
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +83 -0
- data/rbi/telnyx/models/ai/openai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai/openai_list_models_response.rbi +3 -315
- data/rbi/telnyx/models/ai/start_speaking_plan.rbi +70 -0
- data/rbi/telnyx/models/ai/transcription_endpointing_plan.rbi +71 -0
- data/rbi/telnyx/models/ai/transfer_tool.rbi +5 -5
- data/rbi/telnyx/models/ai_create_response_params.rbi +4 -4
- data/rbi/telnyx/models/ai_retrieve_models_response.rbi +3 -310
- data/rbi/telnyx/models/call_conversation_ended.rbi +10 -0
- data/rbi/telnyx/models/calls/action_gather_using_ai_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_ai_assistant_params.rbi +5 -41
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +371 -254
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +155 -0
- data/rbi/telnyx/models/calls/transcription_engine_speechmatics_config.rbi +289 -0
- data/rbi/telnyx/models/calls/transcription_engine_xai_config.rbi +329 -0
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +20 -480
- data/rbi/telnyx/models/conferences/action_speak_params.rbi +5 -41
- data/rbi/telnyx/models/fax.rbi +12 -8
- data/rbi/telnyx/models/fax_create_params.rbi +12 -8
- data/rbi/telnyx/models/fax_delivered.rbi +6 -4
- data/rbi/telnyx/models/fax_failed.rbi +6 -4
- data/rbi/telnyx/models/fax_media_processed.rbi +6 -4
- data/rbi/telnyx/models/fax_queued.rbi +6 -4
- data/rbi/telnyx/models/fax_sending_started.rbi +6 -4
- data/rbi/telnyx/models/model_metadata.rbi +272 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +181 -4
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +6 -38
- data/rbi/telnyx/models/public_internet_gateway_read.rbi +128 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +81 -9
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +27 -3
- data/rbi/telnyx/models/text_to_speech_generate_params.rbi +6 -6
- data/rbi/telnyx/models/uac_connection.rbi +684 -0
- data/rbi/telnyx/models/uac_connection_create_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_create_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_delete_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_retrieve_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_connection_update_params.rbi +12 -516
- data/rbi/telnyx/models/uac_connection_update_response.rbi +4 -1756
- data/rbi/telnyx/models/uac_external_settings.rbi +146 -0
- data/rbi/telnyx/models/uac_inbound.rbi +410 -0
- data/rbi/telnyx/models/uac_internal_settings.rbi +39 -0
- data/rbi/telnyx/models/uac_outbound.rbi +224 -0
- data/rbi/telnyx/models/virtual_cross_connect_combined.rbi +345 -0
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +6 -36
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +6 -38
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +6 -36
- data/rbi/telnyx/models/wireguard_interface_read.rbi +213 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +6 -36
- data/rbi/telnyx/models/xai_voice_settings.rbi +64 -0
- data/rbi/telnyx/models.rbi +20 -0
- data/rbi/telnyx/resources/ai/assistants/canary_deploys.rbi +2 -4
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +3 -9
- data/rbi/telnyx/resources/ai/assistants.rbi +6 -10
- data/rbi/telnyx/resources/ai/openai.rbi +1 -1
- data/rbi/telnyx/resources/ai.rbi +2 -2
- data/rbi/telnyx/resources/calls/actions.rbi +24 -24
- data/rbi/telnyx/resources/conferences/actions.rbi +1 -1
- data/rbi/telnyx/resources/faxes.rbi +18 -4
- data/rbi/telnyx/resources/public_internet_gateways.rbi +1 -1
- data/rbi/telnyx/resources/texml.rbi +7 -1
- data/rbi/telnyx/resources/uac_connections.rbi +7 -13
- data/rbi/telnyx/resources/virtual_cross_connects.rbi +1 -1
- data/rbi/telnyx/resources/wireguard_interfaces.rbi +1 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistant_integration.rbs +26 -0
- data/sig/telnyx/models/ai/assistant_mcp_server.rbs +19 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +8 -8
- data/sig/telnyx/models/ai/assistant_update_params.rbs +18 -149
- data/sig/telnyx/models/ai/assistants/canary_deploy.rbs +6 -113
- data/sig/telnyx/models/ai/assistants/canary_deploy_response.rbs +4 -109
- data/sig/telnyx/models/ai/assistants/clause.rbs +46 -0
- data/sig/telnyx/models/ai/assistants/rollout_slot.rbs +19 -0
- data/sig/telnyx/models/ai/assistants/rule_input.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/rule_output.rbs +33 -0
- data/sig/telnyx/models/ai/assistants/serve.rbs +35 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +18 -152
- data/sig/telnyx/models/ai/inference_embedding.rbs +18 -149
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +40 -0
- data/sig/telnyx/models/ai/openai_create_response_params.rbs +5 -5
- data/sig/telnyx/models/ai/openai_list_models_response.rbs +4 -149
- data/sig/telnyx/models/ai/start_speaking_plan.rbs +33 -0
- data/sig/telnyx/models/ai/transcription_endpointing_plan.rbs +38 -0
- data/sig/telnyx/models/ai/transfer_tool.rbs +4 -4
- data/sig/telnyx/models/ai_create_response_params.rbs +5 -4
- data/sig/telnyx/models/ai_retrieve_models_response.rbs +4 -149
- data/sig/telnyx/models/call_conversation_ended.rbs +5 -0
- data/sig/telnyx/models/calls/action_gather_using_ai_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_ai_assistant_params.rbs +1 -15
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +141 -102
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +62 -0
- data/sig/telnyx/models/calls/transcription_engine_speechmatics_config.rbs +114 -0
- data/sig/telnyx/models/calls/transcription_engine_xai_config.rbs +130 -0
- data/sig/telnyx/models/calls/transcription_start_request.rbs +13 -185
- data/sig/telnyx/models/conferences/action_speak_params.rbs +1 -15
- data/sig/telnyx/models/model_metadata.rbs +142 -0
- data/sig/telnyx/models/network_list_interfaces_response.rbs +106 -4
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +6 -18
- data/sig/telnyx/models/public_internet_gateway_read.rbs +80 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +27 -3
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +9 -1
- data/sig/telnyx/models/text_to_speech_generate_params.rbs +6 -6
- data/sig/telnyx/models/uac_connection.rbs +338 -0
- data/sig/telnyx/models/uac_connection_create_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_create_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_delete_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_retrieve_response.rbs +5 -731
- data/sig/telnyx/models/uac_connection_update_params.rbs +17 -211
- data/sig/telnyx/models/uac_connection_update_response.rbs +5 -731
- data/sig/telnyx/models/uac_external_settings.rbs +73 -0
- data/sig/telnyx/models/uac_inbound.rbs +190 -0
- data/sig/telnyx/models/uac_internal_settings.rbs +15 -0
- data/sig/telnyx/models/uac_outbound.rbs +113 -0
- data/sig/telnyx/models/virtual_cross_connect_combined.rbs +190 -0
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +6 -18
- data/sig/telnyx/models/wireguard_interface_read.rbs +127 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +6 -18
- data/sig/telnyx/models/xai_voice_settings.rbs +34 -0
- data/sig/telnyx/models.rbs +20 -0
- data/sig/telnyx/resources/ai/assistants/canary_deploys.rbs +2 -2
- data/sig/telnyx/resources/ai/assistants/versions.rbs +3 -3
- data/sig/telnyx/resources/ai/assistants.rbs +6 -6
- data/sig/telnyx/resources/ai/openai.rbs +1 -1
- data/sig/telnyx/resources/ai.rbs +1 -1
- data/sig/telnyx/resources/calls/actions.rbs +2 -4
- data/sig/telnyx/resources/public_internet_gateways.rbs +1 -1
- data/sig/telnyx/resources/texml.rbs +1 -0
- data/sig/telnyx/resources/uac_connections.rbs +7 -7
- data/sig/telnyx/resources/virtual_cross_connects.rbs +1 -1
- data/sig/telnyx/resources/wireguard_interfaces.rbs +1 -1
- metadata +71 -14
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +0 -10
- data/lib/telnyx/models/uac_connection_list_response.rb +0 -876
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +0 -10
- data/lib/telnyx/models/wireguard_interface_list_response.rb +0 -10
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +0 -23
- data/rbi/telnyx/models/uac_connection_list_response.rbi +0 -1727
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +0 -23
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +0 -23
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +0 -11
- data/sig/telnyx/models/uac_connection_list_response.rbs +0 -722
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +0 -11
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +0 -11
|
@@ -160,15 +160,15 @@ module Telnyx
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
type targets =
|
|
163
|
-
::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::Targets::
|
|
163
|
+
::Array[Telnyx::AI::AssistantTool::Transfer::Transfer::Targets::TargetsList]
|
|
164
164
|
| String
|
|
165
165
|
|
|
166
166
|
module Targets
|
|
167
167
|
extend Telnyx::Internal::Type::Union
|
|
168
168
|
|
|
169
|
-
type
|
|
169
|
+
type targets_list = { to: String, name: String }
|
|
170
170
|
|
|
171
|
-
class
|
|
171
|
+
class TargetsList < Telnyx::Internal::Type::BaseModel
|
|
172
172
|
attr_accessor to: String
|
|
173
173
|
|
|
174
174
|
attr_reader name: String?
|
|
@@ -182,7 +182,7 @@ module Telnyx
|
|
|
182
182
|
|
|
183
183
|
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantTool::Transfer::Transfer::targets]
|
|
184
184
|
|
|
185
|
-
|
|
185
|
+
TargetsListArray: Telnyx::Internal::Type::Converter
|
|
186
186
|
end
|
|
187
187
|
|
|
188
188
|
type custom_header = { name: String, value: String }
|
|
@@ -496,15 +496,15 @@ module Telnyx
|
|
|
496
496
|
end
|
|
497
497
|
|
|
498
498
|
type targets =
|
|
499
|
-
::Array[Telnyx::AI::AssistantTool::Invite::Invite::Targets::
|
|
499
|
+
::Array[Telnyx::AI::AssistantTool::Invite::Invite::Targets::TargetsList]
|
|
500
500
|
| String
|
|
501
501
|
|
|
502
502
|
module Targets
|
|
503
503
|
extend Telnyx::Internal::Type::Union
|
|
504
504
|
|
|
505
|
-
type
|
|
505
|
+
type targets_list = { to: String, name: String }
|
|
506
506
|
|
|
507
|
-
class
|
|
507
|
+
class TargetsList < Telnyx::Internal::Type::BaseModel
|
|
508
508
|
attr_accessor to: String
|
|
509
509
|
|
|
510
510
|
attr_reader name: String?
|
|
@@ -518,7 +518,7 @@ module Telnyx
|
|
|
518
518
|
|
|
519
519
|
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantTool::Invite::Invite::targets]
|
|
520
520
|
|
|
521
|
-
|
|
521
|
+
TargetsListArray: Telnyx::Internal::Type::Converter
|
|
522
522
|
end
|
|
523
523
|
|
|
524
524
|
type voicemail_detection =
|
|
@@ -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::AssistantIntegration],
|
|
18
|
+
interruption_settings: Telnyx::AI::InferenceEmbeddingInterruptionSettings,
|
|
19
19
|
llm_api_key_ref: String,
|
|
20
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
20
|
+
mcp_servers: ::Array[Telnyx::AI::AssistantMcpServer],
|
|
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::AssistantIntegration]?
|
|
94
94
|
|
|
95
95
|
def integrations=: (
|
|
96
|
-
::Array[Telnyx::AI::
|
|
97
|
-
) -> ::Array[Telnyx::AI::
|
|
96
|
+
::Array[Telnyx::AI::AssistantIntegration]
|
|
97
|
+
) -> ::Array[Telnyx::AI::AssistantIntegration]
|
|
98
98
|
|
|
99
|
-
attr_reader interruption_settings: Telnyx::AI::
|
|
99
|
+
attr_reader interruption_settings: Telnyx::AI::InferenceEmbeddingInterruptionSettings?
|
|
100
100
|
|
|
101
101
|
def interruption_settings=: (
|
|
102
|
-
Telnyx::AI::
|
|
103
|
-
) -> Telnyx::AI::
|
|
102
|
+
Telnyx::AI::InferenceEmbeddingInterruptionSettings
|
|
103
|
+
) -> Telnyx::AI::InferenceEmbeddingInterruptionSettings
|
|
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::AssistantMcpServer]?
|
|
110
110
|
|
|
111
111
|
def mcp_servers=: (
|
|
112
|
-
::Array[Telnyx::AI::
|
|
113
|
-
) -> ::Array[Telnyx::AI::
|
|
112
|
+
::Array[Telnyx::AI::AssistantMcpServer]
|
|
113
|
+
) -> ::Array[Telnyx::AI::AssistantMcpServer]
|
|
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::AssistantIntegration],
|
|
206
|
+
?interruption_settings: Telnyx::AI::InferenceEmbeddingInterruptionSettings,
|
|
207
207
|
?llm_api_key_ref: String,
|
|
208
|
-
?mcp_servers: ::Array[Telnyx::AI::
|
|
208
|
+
?mcp_servers: ::Array[Telnyx::AI::AssistantMcpServer],
|
|
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::AssistantIntegration],
|
|
240
|
+
interruption_settings: Telnyx::AI::InferenceEmbeddingInterruptionSettings,
|
|
241
241
|
llm_api_key_ref: String,
|
|
242
|
-
mcp_servers: ::Array[Telnyx::AI::
|
|
242
|
+
mcp_servers: ::Array[Telnyx::AI::AssistantMcpServer],
|
|
243
243
|
messaging_settings: Telnyx::AI::MessagingSettings,
|
|
244
244
|
model: String,
|
|
245
245
|
name: String,
|
|
@@ -257,137 +257,6 @@ 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
|
-
disable_greeting_interruption: bool,
|
|
285
|
-
enable: bool,
|
|
286
|
-
start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
class InterruptionSettings < Telnyx::Internal::Type::BaseModel
|
|
290
|
-
attr_reader disable_greeting_interruption: bool?
|
|
291
|
-
|
|
292
|
-
def disable_greeting_interruption=: (bool) -> bool
|
|
293
|
-
|
|
294
|
-
attr_reader enable: bool?
|
|
295
|
-
|
|
296
|
-
def enable=: (bool) -> bool
|
|
297
|
-
|
|
298
|
-
attr_reader start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan?
|
|
299
|
-
|
|
300
|
-
def start_speaking_plan=: (
|
|
301
|
-
Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
302
|
-
) -> Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
303
|
-
|
|
304
|
-
def initialize: (
|
|
305
|
-
?disable_greeting_interruption: bool,
|
|
306
|
-
?enable: bool,
|
|
307
|
-
?start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
308
|
-
) -> void
|
|
309
|
-
|
|
310
|
-
def to_hash: -> {
|
|
311
|
-
disable_greeting_interruption: bool,
|
|
312
|
-
enable: bool,
|
|
313
|
-
start_speaking_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
type start_speaking_plan =
|
|
317
|
-
{
|
|
318
|
-
transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
319
|
-
wait_seconds: Float
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
class StartSpeakingPlan < Telnyx::Internal::Type::BaseModel
|
|
323
|
-
attr_reader transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan?
|
|
324
|
-
|
|
325
|
-
def transcription_endpointing_plan=: (
|
|
326
|
-
Telnyx::AI::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan
|
|
327
|
-
) -> Telnyx::AI::AssistantUpdateParams::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::AssistantUpdateParams::InterruptionSettings::StartSpeakingPlan::TranscriptionEndpointingPlan,
|
|
335
|
-
?wait_seconds: Float
|
|
336
|
-
) -> void
|
|
337
|
-
|
|
338
|
-
def to_hash: -> {
|
|
339
|
-
transcription_endpointing_plan: Telnyx::AI::AssistantUpdateParams::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
|
|
391
260
|
end
|
|
392
261
|
end
|
|
393
262
|
end
|
|
@@ -3,127 +3,20 @@ 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::RuleInput] }
|
|
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::RuleInput]?
|
|
10
10
|
|
|
11
11
|
def rules=: (
|
|
12
|
-
::Array[Telnyx::AI::Assistants::
|
|
13
|
-
) -> ::Array[Telnyx::AI::Assistants::
|
|
12
|
+
::Array[Telnyx::AI::Assistants::RuleInput]
|
|
13
|
+
) -> ::Array[Telnyx::AI::Assistants::RuleInput]
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
|
-
?rules: ::Array[Telnyx::AI::Assistants::
|
|
16
|
+
?rules: ::Array[Telnyx::AI::Assistants::RuleInput]
|
|
17
17
|
) -> void
|
|
18
18
|
|
|
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
|
|
19
|
+
def to_hash: -> { rules: ::Array[Telnyx::AI::Assistants::RuleInput] }
|
|
127
20
|
end
|
|
128
21
|
end
|
|
129
22
|
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::RuleOutput],
|
|
10
10
|
updated_at: Time
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -15,128 +15,23 @@ 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::RuleOutput]
|
|
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::RuleOutput],
|
|
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::RuleOutput],
|
|
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
|
|
140
35
|
end
|
|
141
36
|
end
|
|
142
37
|
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Assistants
|
|
5
|
+
type clause =
|
|
6
|
+
{
|
|
7
|
+
attribute: String,
|
|
8
|
+
operator: Telnyx::Models::AI::Assistants::Clause::operator,
|
|
9
|
+
values: ::Array[String]
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class Clause < Telnyx::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor attribute: String
|
|
14
|
+
|
|
15
|
+
attr_accessor operator: Telnyx::Models::AI::Assistants::Clause::operator
|
|
16
|
+
|
|
17
|
+
attr_accessor values: ::Array[String]
|
|
18
|
+
|
|
19
|
+
def initialize: (
|
|
20
|
+
attribute: String,
|
|
21
|
+
operator: Telnyx::Models::AI::Assistants::Clause::operator,
|
|
22
|
+
values: ::Array[String]
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
attribute: String,
|
|
27
|
+
operator: Telnyx::Models::AI::Assistants::Clause::operator,
|
|
28
|
+
values: ::Array[String]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
type operator = :in | :not_in | :starts_with
|
|
32
|
+
|
|
33
|
+
module Operator
|
|
34
|
+
extend Telnyx::Internal::Type::Enum
|
|
35
|
+
|
|
36
|
+
IN: :in
|
|
37
|
+
NOT_IN: :not_in
|
|
38
|
+
STARTS_WITH: :starts_with
|
|
39
|
+
|
|
40
|
+
def self?.values: -> ::Array[Telnyx::Models::AI::Assistants::Clause::operator]
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Assistants
|
|
5
|
+
type rollout_slot = { version_id: String, weight: Float }
|
|
6
|
+
|
|
7
|
+
class RolloutSlot < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor version_id: String
|
|
9
|
+
|
|
10
|
+
attr_accessor weight: Float
|
|
11
|
+
|
|
12
|
+
def initialize: (version_id: String, weight: Float) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { version_id: String, weight: Float }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Assistants
|
|
5
|
+
type rule_input =
|
|
6
|
+
{
|
|
7
|
+
serve: Telnyx::AI::Assistants::Serve,
|
|
8
|
+
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class RuleInput < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor serve: Telnyx::AI::Assistants::Serve
|
|
13
|
+
|
|
14
|
+
attr_reader match: ::Array[Telnyx::AI::Assistants::Clause]?
|
|
15
|
+
|
|
16
|
+
def match=: (
|
|
17
|
+
::Array[Telnyx::AI::Assistants::Clause]
|
|
18
|
+
) -> ::Array[Telnyx::AI::Assistants::Clause]
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
serve: Telnyx::AI::Assistants::Serve,
|
|
22
|
+
?match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
serve: Telnyx::AI::Assistants::Serve,
|
|
27
|
+
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
module Assistants
|
|
5
|
+
type rule_output =
|
|
6
|
+
{
|
|
7
|
+
serve: Telnyx::AI::Assistants::Serve,
|
|
8
|
+
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class RuleOutput < Telnyx::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor serve: Telnyx::AI::Assistants::Serve
|
|
13
|
+
|
|
14
|
+
attr_reader match: ::Array[Telnyx::AI::Assistants::Clause]?
|
|
15
|
+
|
|
16
|
+
def match=: (
|
|
17
|
+
::Array[Telnyx::AI::Assistants::Clause]
|
|
18
|
+
) -> ::Array[Telnyx::AI::Assistants::Clause]
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
serve: Telnyx::AI::Assistants::Serve,
|
|
22
|
+
?match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
serve: Telnyx::AI::Assistants::Serve,
|
|
27
|
+
match: ::Array[Telnyx::AI::Assistants::Clause]
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|