telnyx 5.167.0 → 5.169.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 +14 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +44 -0
- data/lib/telnyx/internal/type/union.rb +6 -6
- data/lib/telnyx/models/ai/assistant_a2_a_agent.rb +195 -0
- data/lib/telnyx/models/ai/assistant_create_params.rb +22 -7
- data/lib/telnyx/models/ai/assistant_tool.rb +285 -12
- data/lib/telnyx/models/ai/assistant_update_params.rb +37 -10
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +37 -10
- data/lib/telnyx/models/ai/audio_transcribe_params.rb +33 -13
- data/lib/telnyx/models/ai/audio_transcribe_response.rb +34 -56
- data/lib/telnyx/models/ai/audio_transcription_response_word.rb +74 -0
- data/lib/telnyx/models/ai/chat_completion_request.rb +128 -74
- data/lib/telnyx/models/ai/flow_node.rb +2 -2
- data/lib/telnyx/models/ai/inference_embedding.rb +29 -11
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +10 -1
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +21 -1
- data/lib/telnyx/models/ai/openai/function_definition.rb +31 -0
- data/lib/telnyx/models/ai/post_conversation_settings.rb +4 -4
- data/lib/telnyx/models/ai/post_conversation_settings_req.rb +4 -4
- data/lib/telnyx/models/ai/privacy_settings.rb +20 -1
- data/lib/telnyx/models/ai/retrieval_tool.rb +21 -1
- data/lib/telnyx/models/ai/telephony_settings.rb +101 -17
- data/lib/telnyx/models/ai/tool_node.rb +2 -2
- data/lib/telnyx/models/ai/transcription_settings.rb +12 -4
- data/lib/telnyx/models/ai/transcription_settings_config.rb +12 -11
- data/lib/telnyx/models/ai/typesafe/v1_systemone_params.rb +268 -0
- data/lib/telnyx/models/ai/typesafe/v1_systemone_response.rb +222 -0
- data/lib/telnyx/models/bot_challenge_create_params.rb +38 -0
- data/lib/telnyx/models/bot_challenge_create_response.rb +87 -0
- data/lib/telnyx/models/bot_session_list_params.rb +34 -0
- data/lib/telnyx/models/bot_session_list_response.rb +32 -0
- data/lib/telnyx/models/bot_signup_create_params.rb +103 -0
- data/lib/telnyx/models/bot_signup_resend_magic_link_params.rb +22 -0
- data/lib/telnyx/models/call_dial_params.rb +75 -7
- data/lib/telnyx/models/calls/action_transfer_params.rb +75 -7
- data/lib/telnyx/models/calls/transcription_config.rb +14 -3
- data/lib/telnyx/models/calls/transcription_engine_assemblyai_config.rb +6 -3
- data/lib/telnyx/models/calls/transcription_engine_parakeet_config.rb +1 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_params.rb +66 -0
- data/lib/telnyx/models/compute/func_retrieve_logs_response.rb +161 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_params.rb +69 -0
- data/lib/telnyx/models/compute/func_retrieve_metric_aggregates_response.rb +137 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_params.rb +34 -0
- data/lib/telnyx/models/compute/func_retrieve_revisions_response.rb +101 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_params.rb +22 -0
- data/lib/telnyx/models/compute/func_retrieve_ship_inspection_response.rb +94 -0
- data/lib/telnyx/models/compute/funcs/export_create_params.rb +62 -0
- data/lib/telnyx/models/compute/funcs/export_delete_all_params.rb +24 -0
- data/lib/telnyx/models/compute/funcs/export_list_params.rb +24 -0
- data/lib/telnyx/models/compute/funcs/func_log_export_config_response.rb +113 -0
- data/lib/telnyx/models/compute/functions_observability_pagination_meta.rb +35 -0
- data/lib/telnyx/models/compute/logs_meta.rb +23 -0
- data/lib/telnyx/models/connection_retrieve_count_params.rb +14 -0
- data/lib/telnyx/models/connection_retrieve_count_response.rb +215 -0
- data/lib/telnyx/models/credential_connection.rb +4 -1
- data/lib/telnyx/models/detail_record_list_params.rb +19 -2
- data/lib/telnyx/models/email_inboxes/email_message.rb +12 -1
- data/lib/telnyx/models/email_message_batch_params.rb +4 -1
- data/lib/telnyx/models/email_message_batch_response.rb +1 -0
- data/lib/telnyx/models/fqdn_connection.rb +5 -2
- data/lib/telnyx/models/fqdn_connections/fqdn_authentication.rb +9 -2
- data/lib/telnyx/models/inbound_message_webhook_event.rb +3 -70
- data/lib/telnyx/models/machine_payment_account_credit_params.rb +29 -0
- data/lib/telnyx/models/machine_payment_account_credit_response.rb +223 -0
- data/lib/telnyx/models/message_retrieve_group_messages_response.rb +3 -3
- data/lib/telnyx/models/message_retrieve_response.rb +4 -4
- data/lib/telnyx/models/message_schedule_response.rb +3 -3
- data/lib/telnyx/models/message_send_group_mms_response.rb +3 -3
- data/lib/telnyx/models/message_send_long_code_response.rb +3 -3
- data/lib/telnyx/models/message_send_number_pool_response.rb +3 -3
- data/lib/telnyx/models/message_send_response.rb +3 -3
- data/lib/telnyx/models/message_send_short_code_response.rb +3 -3
- data/lib/telnyx/models/messaging_inbound_message.rb +71 -0
- data/lib/telnyx/models/messaging_inbound_message_payload.rb +412 -66
- data/lib/telnyx/models/messaging_messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +42 -2
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_features.rb +26 -0
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/noise_suppression_engine_list_params.rb +14 -0
- data/lib/telnyx/models/noise_suppression_engine_list_response.rb +50 -0
- data/lib/telnyx/models/number_order_status_update.rb +15 -3
- data/lib/telnyx/models/number_order_status_update_webhook_event.rb +15 -3
- data/lib/telnyx/models/outbound_message.rb +1 -0
- data/lib/telnyx/models/outbound_message_payload.rb +45 -5
- data/lib/telnyx/models/speech_to_text_retrieve_transcription_params.rb +1 -0
- data/lib/telnyx/models/success_response.rb +27 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +246 -3
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +82 -1
- data/lib/telnyx/models/texml/call_create_params.rb +78 -0
- data/lib/telnyx/models/texml/call_create_response.rb +55 -0
- data/lib/telnyx/models/texml_initiate_ai_call_params.rb +76 -1
- data/lib/telnyx/models/uac_connection.rb +4 -1
- data/lib/telnyx/models/uac_external_settings.rb +6 -2
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/unwrap_webhook_event.rb +5 -1
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +2 -2
- data/lib/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rb +104 -1
- data/lib/telnyx/models/whatsapp/phone_number_get_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_list_response.rb +103 -1
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rb +22 -0
- data/lib/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rb +207 -0
- data/lib/telnyx/models/whatsapp_account_update.rb +112 -0
- data/lib/telnyx/models/whatsapp_message_echo.rb +340 -0
- data/lib/telnyx/models/x402/credit_account/payment_list_params.rb +34 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_params.rb +24 -0
- data/lib/telnyx/models/x402/credit_account/payment_retrieve_response.rb +21 -0
- data/lib/telnyx/models/x402/credit_account/x402_transaction_record.rb +113 -0
- data/lib/telnyx/models.rb +26 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +4 -2
- data/lib/telnyx/resources/ai/assistants.rb +8 -4
- data/lib/telnyx/resources/ai/audio.rb +2 -2
- data/lib/telnyx/resources/ai/openai/chat.rb +2 -8
- data/lib/telnyx/resources/ai/typesafe/v1.rb +62 -0
- data/lib/telnyx/resources/ai/typesafe.rb +22 -0
- data/lib/telnyx/resources/ai.rb +4 -0
- data/lib/telnyx/resources/bot_challenge.rb +53 -0
- data/lib/telnyx/resources/bot_sessions.rb +57 -0
- data/lib/telnyx/resources/bot_signup.rb +97 -0
- data/lib/telnyx/resources/calls/actions.rb +1 -1
- data/lib/telnyx/resources/calls.rb +1 -1
- data/lib/telnyx/resources/compute/funcs/export.rb +105 -0
- data/lib/telnyx/resources/compute/funcs.rb +145 -0
- data/lib/telnyx/resources/compute.rb +18 -0
- data/lib/telnyx/resources/connections.rb +20 -0
- data/lib/telnyx/resources/detail_records.rb +1 -1
- data/lib/telnyx/resources/email_messages.rb +6 -2
- data/lib/telnyx/resources/machine_payments.rb +73 -0
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/noise_suppression_engines.rb +37 -0
- data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +15 -1
- data/lib/telnyx/resources/texml/calls.rb +57 -0
- data/lib/telnyx/resources/texml.rb +20 -1
- data/lib/telnyx/resources/voice_clones.rb +4 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/resources/whatsapp/phone_numbers.rb +22 -0
- data/lib/telnyx/resources/x402/credit_account/payments.rb +71 -0
- data/lib/telnyx/resources/x402/credit_account.rb +8 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +56 -0
- data/rbi/telnyx/client.rbi +38 -0
- data/rbi/telnyx/models/ai/assistant_a2_a_agent.rbi +345 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +45 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +423 -20
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +73 -16
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +73 -16
- data/rbi/telnyx/models/ai/audio_transcribe_params.rbi +71 -20
- data/rbi/telnyx/models/ai/audio_transcribe_response.rbi +63 -97
- data/rbi/telnyx/models/ai/audio_transcription_response_word.rbi +108 -0
- data/rbi/telnyx/models/ai/chat_completion_request.rbi +228 -150
- data/rbi/telnyx/models/ai/flow_node.rbi +4 -2
- data/rbi/telnyx/models/ai/inference_embedding.rbi +53 -16
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +10 -0
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +29 -3
- data/rbi/telnyx/models/ai/openai/function_definition.rbi +56 -0
- data/rbi/telnyx/models/ai/post_conversation_settings.rbi +4 -4
- data/rbi/telnyx/models/ai/post_conversation_settings_req.rbi +4 -4
- data/rbi/telnyx/models/ai/privacy_settings.rbi +43 -3
- data/rbi/telnyx/models/ai/retrieval_tool.rbi +29 -3
- data/rbi/telnyx/models/ai/telephony_settings.rbi +197 -20
- data/rbi/telnyx/models/ai/tool_node.rbi +4 -2
- data/rbi/telnyx/models/ai/transcription_settings.rbi +25 -6
- data/rbi/telnyx/models/ai/transcription_settings_config.rbi +18 -16
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_params.rbi +504 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_response.rbi +348 -0
- data/rbi/telnyx/models/bot_challenge_create_params.rbi +68 -0
- data/rbi/telnyx/models/bot_challenge_create_response.rbi +169 -0
- data/rbi/telnyx/models/bot_session_list_params.rbi +53 -0
- data/rbi/telnyx/models/bot_session_list_response.rbi +64 -0
- data/rbi/telnyx/models/bot_signup_create_params.rbi +179 -0
- data/rbi/telnyx/models/bot_signup_resend_magic_link_params.rbi +43 -0
- data/rbi/telnyx/models/call_dial_params.rbi +111 -10
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +111 -10
- data/rbi/telnyx/models/calls/transcription_config.rbi +29 -5
- data/rbi/telnyx/models/calls/transcription_engine_assemblyai_config.rbi +11 -3
- data/rbi/telnyx/models/calls/transcription_engine_parakeet_config.rbi +5 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_params.rbi +130 -0
- data/rbi/telnyx/models/compute/func_retrieve_logs_response.rbi +410 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbi +102 -0
- data/rbi/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbi +231 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_params.rbi +59 -0
- data/rbi/telnyx/models/compute/func_retrieve_revisions_response.rbi +213 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_params.rbi +40 -0
- data/rbi/telnyx/models/compute/func_retrieve_ship_inspection_response.rbi +252 -0
- data/rbi/telnyx/models/compute/funcs/export_create_params.rbi +84 -0
- data/rbi/telnyx/models/compute/funcs/export_delete_all_params.rbi +42 -0
- data/rbi/telnyx/models/compute/funcs/export_list_params.rbi +42 -0
- data/rbi/telnyx/models/compute/funcs/func_log_export_config_response.rbi +227 -0
- data/rbi/telnyx/models/compute/functions_observability_pagination_meta.rbi +70 -0
- data/rbi/telnyx/models/compute/logs_meta.rbi +38 -0
- data/rbi/telnyx/models/connection_retrieve_count_params.rbi +30 -0
- data/rbi/telnyx/models/connection_retrieve_count_response.rbi +353 -0
- data/rbi/telnyx/models/credential_connection.rbi +8 -2
- data/rbi/telnyx/models/detail_record_list_params.rbi +30 -2
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +22 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +6 -0
- data/rbi/telnyx/models/email_message_batch_response.rbi +5 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +8 -2
- data/rbi/telnyx/models/fqdn_connections/fqdn_authentication.rbi +8 -2
- data/rbi/telnyx/models/inbound_message_webhook_event.rbi +4 -173
- data/rbi/telnyx/models/machine_payment_account_credit_params.rbi +51 -0
- data/rbi/telnyx/models/machine_payment_account_credit_response.rbi +446 -0
- data/rbi/telnyx/models/message_retrieve_group_messages_response.rbi +6 -12
- data/rbi/telnyx/models/message_retrieve_response.rbi +3 -3
- data/rbi/telnyx/models/message_schedule_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_group_mms_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_long_code_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_number_pool_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_response.rbi +4 -6
- data/rbi/telnyx/models/message_send_short_code_response.rbi +4 -6
- data/rbi/telnyx/models/messaging_inbound_message.rbi +152 -0
- data/rbi/telnyx/models/messaging_inbound_message_payload.rbi +911 -192
- data/rbi/telnyx/models/messaging_messaging_profile.rbi +19 -0
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +90 -16
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +19 -0
- data/rbi/telnyx/models/messaging_profile_features.rbi +43 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +19 -0
- data/rbi/telnyx/models/noise_suppression_engine_list_params.rbi +30 -0
- data/rbi/telnyx/models/noise_suppression_engine_list_response.rbi +94 -0
- data/rbi/telnyx/models/number_order_status_update.rbi +34 -3
- data/rbi/telnyx/models/number_order_status_update_webhook_event.rbi +39 -3
- data/rbi/telnyx/models/outbound_message.rbi +5 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +74 -4
- data/rbi/telnyx/models/speech_to_text_retrieve_transcription_params.rbi +5 -0
- data/rbi/telnyx/models/success_response.rbi +36 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +339 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +111 -0
- data/rbi/telnyx/models/texml/call_create_params.rbi +124 -0
- data/rbi/telnyx/models/texml/call_create_response.rbi +98 -0
- data/rbi/telnyx/models/texml_initiate_ai_call_params.rbi +103 -0
- data/rbi/telnyx/models/uac_connection.rbi +8 -2
- data/rbi/telnyx/models/uac_external_settings.rbi +10 -2
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -4
- data/rbi/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_get_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_list_response.rbi +213 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbi +40 -0
- data/rbi/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbi +401 -0
- data/rbi/telnyx/models/whatsapp_account_update.rbi +236 -0
- data/rbi/telnyx/models/whatsapp_message_echo.rbi +611 -0
- data/rbi/telnyx/models/x402/credit_account/payment_list_params.rbi +64 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_params.rbi +42 -0
- data/rbi/telnyx/models/x402/credit_account/payment_retrieve_response.rbi +53 -0
- data/rbi/telnyx/models/x402/credit_account/x402_transaction_record.rbi +219 -0
- data/rbi/telnyx/models.rbi +29 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +31 -7
- data/rbi/telnyx/resources/ai/assistants.rbi +46 -12
- data/rbi/telnyx/resources/ai/audio.rbi +20 -9
- data/rbi/telnyx/resources/ai/openai/chat.rbi +9 -13
- data/rbi/telnyx/resources/ai/typesafe/v1.rbi +61 -0
- data/rbi/telnyx/resources/ai/typesafe.rbi +19 -0
- data/rbi/telnyx/resources/ai.rbi +3 -0
- data/rbi/telnyx/resources/bot_challenge.rbi +45 -0
- data/rbi/telnyx/resources/bot_sessions.rbi +45 -0
- data/rbi/telnyx/resources/bot_signup.rbi +87 -0
- data/rbi/telnyx/resources/calls/actions.rbi +6 -5
- data/rbi/telnyx/resources/calls.rbi +6 -5
- data/rbi/telnyx/resources/compute/funcs/export.rbi +86 -0
- data/rbi/telnyx/resources/compute/funcs.rbi +114 -0
- data/rbi/telnyx/resources/compute.rbi +15 -0
- data/rbi/telnyx/resources/connections.rbi +11 -0
- data/rbi/telnyx/resources/detail_records.rbi +12 -1
- data/rbi/telnyx/resources/email_messages.rbi +8 -2
- data/rbi/telnyx/resources/machine_payments.rbi +64 -0
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/noise_suppression_engines.rbi +26 -0
- data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +32 -0
- data/rbi/telnyx/resources/texml/calls.rbi +50 -0
- data/rbi/telnyx/resources/texml.rbi +36 -0
- data/rbi/telnyx/resources/voice_clones.rbi +4 -2
- data/rbi/telnyx/resources/webhooks.rbi +6 -2
- data/rbi/telnyx/resources/whatsapp/phone_numbers.rbi +18 -0
- data/rbi/telnyx/resources/x402/credit_account/payments.rbi +60 -0
- data/rbi/telnyx/resources/x402/credit_account.rbi +5 -0
- data/sig/telnyx/client.rbs +12 -0
- data/sig/telnyx/models/ai/assistant_a2_a_agent.rbs +140 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +162 -23
- data/sig/telnyx/models/ai/assistant_update_params.rbs +9 -0
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +9 -0
- data/sig/telnyx/models/ai/audio_transcribe_params.rbs +10 -0
- data/sig/telnyx/models/ai/audio_transcribe_response.rbs +29 -43
- data/sig/telnyx/models/ai/audio_transcription_response_word.rbs +60 -0
- data/sig/telnyx/models/ai/chat_completion_request.rbs +90 -79
- data/sig/telnyx/models/ai/inference_embedding.rbs +9 -0
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +5 -0
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +10 -3
- data/sig/telnyx/models/ai/openai/function_definition.rbs +34 -0
- data/sig/telnyx/models/ai/privacy_settings.rbs +11 -3
- data/sig/telnyx/models/ai/retrieval_tool.rbs +10 -3
- data/sig/telnyx/models/ai/telephony_settings.rbs +59 -4
- data/sig/telnyx/models/ai/transcription_settings.rbs +4 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +195 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_response.rbs +141 -0
- data/sig/telnyx/models/bot_challenge_create_params.rbs +42 -0
- data/sig/telnyx/models/bot_challenge_create_response.rbs +72 -0
- data/sig/telnyx/models/bot_session_list_params.rbs +28 -0
- data/sig/telnyx/models/bot_session_list_response.rbs +26 -0
- data/sig/telnyx/models/bot_signup_create_params.rbs +89 -0
- data/sig/telnyx/models/bot_signup_resend_magic_link_params.rbs +20 -0
- data/sig/telnyx/models/call_dial_params.rbs +49 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +49 -0
- data/sig/telnyx/models/calls/transcription_config.rbs +4 -0
- data/sig/telnyx/models/calls/transcription_engine_assemblyai_config.rbs +3 -1
- data/sig/telnyx/models/calls/transcription_engine_parakeet_config.rbs +3 -1
- data/sig/telnyx/models/compute/func_retrieve_logs_params.rbs +69 -0
- data/sig/telnyx/models/compute/func_retrieve_logs_response.rbs +210 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_params.rbs +66 -0
- data/sig/telnyx/models/compute/func_retrieve_metric_aggregates_response.rbs +149 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_params.rbs +38 -0
- data/sig/telnyx/models/compute/func_retrieve_revisions_response.rbs +131 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_params.rbs +22 -0
- data/sig/telnyx/models/compute/func_retrieve_ship_inspection_response.rbs +117 -0
- data/sig/telnyx/models/compute/funcs/export_create_params.rbs +50 -0
- data/sig/telnyx/models/compute/funcs/export_delete_all_params.rbs +27 -0
- data/sig/telnyx/models/compute/funcs/export_list_params.rbs +27 -0
- data/sig/telnyx/models/compute/funcs/func_log_export_config_response.rbs +115 -0
- data/sig/telnyx/models/compute/functions_observability_pagination_meta.rbs +45 -0
- data/sig/telnyx/models/compute/logs_meta.rbs +21 -0
- data/sig/telnyx/models/connection_retrieve_count_params.rbs +15 -0
- data/sig/telnyx/models/connection_retrieve_count_response.rbs +169 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +12 -3
- data/sig/telnyx/models/email_message_batch_response.rbs +2 -0
- data/sig/telnyx/models/inbound_message_webhook_event.rbs +6 -79
- data/sig/telnyx/models/machine_payment_account_credit_params.rbs +23 -0
- data/sig/telnyx/models/machine_payment_account_credit_response.rbs +164 -0
- data/sig/telnyx/models/message_retrieve_group_messages_response.rbs +6 -8
- data/sig/telnyx/models/message_retrieve_response.rbs +1 -2
- data/sig/telnyx/models/message_schedule_response.rbs +6 -7
- data/sig/telnyx/models/message_send_group_mms_response.rbs +6 -6
- data/sig/telnyx/models/message_send_long_code_response.rbs +6 -6
- data/sig/telnyx/models/message_send_number_pool_response.rbs +6 -6
- data/sig/telnyx/models/message_send_response.rbs +6 -7
- data/sig/telnyx/models/message_send_short_code_response.rbs +6 -6
- data/sig/telnyx/models/messaging_inbound_message.rbs +76 -0
- data/sig/telnyx/models/messaging_inbound_message_payload.rbs +438 -97
- data/sig/telnyx/models/messaging_messaging_profile.rbs +5 -0
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +39 -1
- data/sig/telnyx/models/messaging_profile_create_params.rbs +5 -0
- data/sig/telnyx/models/messaging_profile_features.rbs +15 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +5 -0
- data/sig/telnyx/models/noise_suppression_engine_list_params.rbs +15 -0
- data/sig/telnyx/models/noise_suppression_engine_list_response.rbs +43 -0
- data/sig/telnyx/models/number_order_status_update.rbs +14 -4
- data/sig/telnyx/models/number_order_status_update_webhook_event.rbs +14 -4
- data/sig/telnyx/models/outbound_message.rbs +2 -1
- data/sig/telnyx/models/outbound_message_payload.rbs +45 -7
- data/sig/telnyx/models/speech_to_text_retrieve_transcription_params.rbs +2 -0
- data/sig/telnyx/models/success_response.rbs +15 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +159 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +49 -0
- data/sig/telnyx/models/texml/call_create_params.rbs +72 -0
- data/sig/telnyx/models/texml/call_create_response.rbs +47 -0
- data/sig/telnyx/models/texml_initiate_ai_call_params.rbs +49 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/unwrap_webhook_event.rbs +2 -0
- data/sig/telnyx/models/whatsapp/business_accounts/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_get_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_list_response.rbs +90 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_params.rbs +25 -0
- data/sig/telnyx/models/whatsapp/phone_number_retrieve_phone_number_response.rbs +201 -0
- data/sig/telnyx/models/whatsapp_account_update.rbs +107 -0
- data/sig/telnyx/models/whatsapp_message_echo.rbs +291 -0
- data/sig/telnyx/models/x402/credit_account/payment_list_params.rbs +36 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/x402/credit_account/payment_retrieve_response.rbs +26 -0
- data/sig/telnyx/models/x402/credit_account/x402_transaction_record.rbs +104 -0
- data/sig/telnyx/models.rbs +26 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +2 -0
- data/sig/telnyx/resources/ai/openai/chat.rbs +1 -4
- data/sig/telnyx/resources/ai/typesafe/v1.rbs +17 -0
- data/sig/telnyx/resources/ai/typesafe.rbs +11 -0
- data/sig/telnyx/resources/ai.rbs +2 -0
- data/sig/telnyx/resources/bot_challenge.rbs +14 -0
- data/sig/telnyx/resources/bot_sessions.rbs +13 -0
- data/sig/telnyx/resources/bot_signup.rbs +24 -0
- data/sig/telnyx/resources/compute/funcs/export.rbs +30 -0
- data/sig/telnyx/resources/compute/funcs.rbs +43 -0
- data/sig/telnyx/resources/compute.rbs +9 -0
- data/sig/telnyx/resources/connections.rbs +4 -0
- data/sig/telnyx/resources/machine_payments.rbs +12 -0
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/noise_suppression_engines.rbs +11 -0
- data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +7 -0
- data/sig/telnyx/resources/texml/calls.rbs +19 -0
- data/sig/telnyx/resources/texml.rbs +9 -0
- data/sig/telnyx/resources/webhooks.rbs +6 -2
- data/sig/telnyx/resources/whatsapp/phone_numbers.rbs +5 -0
- data/sig/telnyx/resources/x402/credit_account/payments.rbs +22 -0
- data/sig/telnyx/resources/x402/credit_account.rbs +2 -0
- metadata +170 -2
|
@@ -170,6 +170,36 @@ module Telnyx
|
|
|
170
170
|
enum: -> { Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetection },
|
|
171
171
|
api_name: :MachineDetection
|
|
172
172
|
|
|
173
|
+
# @!attribute machine_detection_beep_max_frequency
|
|
174
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
175
|
+
# Only used when MachineDetection is enabled.
|
|
176
|
+
#
|
|
177
|
+
# @return [Integer, nil]
|
|
178
|
+
optional :machine_detection_beep_max_frequency,
|
|
179
|
+
Integer,
|
|
180
|
+
api_name: :MachineDetectionBeepMaxFrequency
|
|
181
|
+
|
|
182
|
+
# @!attribute machine_detection_beep_min_frequency
|
|
183
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
184
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
185
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
186
|
+
# used when MachineDetection is enabled.
|
|
187
|
+
#
|
|
188
|
+
# @return [Integer, nil]
|
|
189
|
+
optional :machine_detection_beep_min_frequency,
|
|
190
|
+
Integer,
|
|
191
|
+
api_name: :MachineDetectionBeepMinFrequency
|
|
192
|
+
|
|
193
|
+
# @!attribute machine_detection_beep_min_tone_duration
|
|
194
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
195
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
196
|
+
# is enabled.
|
|
197
|
+
#
|
|
198
|
+
# @return [Integer, nil]
|
|
199
|
+
optional :machine_detection_beep_min_tone_duration,
|
|
200
|
+
Integer,
|
|
201
|
+
api_name: :MachineDetectionBeepMinToneDuration
|
|
202
|
+
|
|
173
203
|
# @!attribute machine_detection_beep_profile
|
|
174
204
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
175
205
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -183,6 +213,43 @@ module Telnyx
|
|
|
183
213
|
},
|
|
184
214
|
api_name: :MachineDetectionBeepProfile
|
|
185
215
|
|
|
216
|
+
# @!attribute machine_detection_beep_spectral_confirmation
|
|
217
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
218
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
219
|
+
#
|
|
220
|
+
# @return [Boolean, nil]
|
|
221
|
+
optional :machine_detection_beep_spectral_confirmation,
|
|
222
|
+
Telnyx::Internal::Type::Boolean,
|
|
223
|
+
api_name: :MachineDetectionBeepSpectralConfirmation
|
|
224
|
+
|
|
225
|
+
# @!attribute machine_detection_beep_spectral_min_purity
|
|
226
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
227
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
228
|
+
# Only used when MachineDetection is enabled.
|
|
229
|
+
#
|
|
230
|
+
# @return [Float, nil]
|
|
231
|
+
optional :machine_detection_beep_spectral_min_purity,
|
|
232
|
+
Float,
|
|
233
|
+
api_name: :MachineDetectionBeepSpectralMinPurity
|
|
234
|
+
|
|
235
|
+
# @!attribute machine_detection_beep_spectral_reject_fax_cng
|
|
236
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
237
|
+
# used when MachineDetection is enabled.
|
|
238
|
+
#
|
|
239
|
+
# @return [Boolean, nil]
|
|
240
|
+
optional :machine_detection_beep_spectral_reject_fax_cng,
|
|
241
|
+
Telnyx::Internal::Type::Boolean,
|
|
242
|
+
api_name: :MachineDetectionBeepSpectralRejectFaxCng
|
|
243
|
+
|
|
244
|
+
# @!attribute machine_detection_beep_spectral_window
|
|
245
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
246
|
+
# MachineDetection is enabled.
|
|
247
|
+
#
|
|
248
|
+
# @return [Integer, nil]
|
|
249
|
+
optional :machine_detection_beep_spectral_window,
|
|
250
|
+
Integer,
|
|
251
|
+
api_name: :MachineDetectionBeepSpectralWindow
|
|
252
|
+
|
|
186
253
|
# @!attribute machine_detection_prompt_end_timeout
|
|
187
254
|
# Silence duration threshold after a call screening prompt before ending prompt
|
|
188
255
|
# detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -409,7 +476,7 @@ module Telnyx
|
|
|
409
476
|
enum: -> { Telnyx::Texml::Accounts::CallCallsParams::Body::WithURL::URLMethod },
|
|
410
477
|
api_name: :UrlMethod
|
|
411
478
|
|
|
412
|
-
# @!method initialize(url:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_beep_profile: nil, machine_detection_prompt_end_timeout: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url_method: nil)
|
|
479
|
+
# @!method initialize(url:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_beep_max_frequency: nil, machine_detection_beep_min_frequency: nil, machine_detection_beep_min_tone_duration: nil, machine_detection_beep_profile: nil, machine_detection_beep_spectral_confirmation: nil, machine_detection_beep_spectral_min_purity: nil, machine_detection_beep_spectral_reject_fax_cng: nil, machine_detection_beep_spectral_window: nil, machine_detection_prompt_end_timeout: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url_method: nil)
|
|
413
480
|
# Some parameter documentations has been truncated, see
|
|
414
481
|
# {Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL} for more
|
|
415
482
|
# details.
|
|
@@ -446,8 +513,22 @@ module Telnyx
|
|
|
446
513
|
#
|
|
447
514
|
# @param machine_detection [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetection] Enables Answering Machine Detection.
|
|
448
515
|
#
|
|
516
|
+
# @param machine_detection_beep_max_frequency [Integer] Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
517
|
+
#
|
|
518
|
+
# @param machine_detection_beep_min_frequency [Integer] Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
519
|
+
#
|
|
520
|
+
# @param machine_detection_beep_min_tone_duration [Integer] Shortest tone, in milliseconds, that can be treated as a beep. Raising it reject
|
|
521
|
+
#
|
|
449
522
|
# @param machine_detection_beep_profile [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithURL::MachineDetectionBeepProfile] Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
450
523
|
#
|
|
524
|
+
# @param machine_detection_beep_spectral_confirmation [Boolean] When enabled, a candidate beep must pass an additional spectral check before it
|
|
525
|
+
#
|
|
526
|
+
# @param machine_detection_beep_spectral_min_purity [Float] Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep. Raisin
|
|
527
|
+
#
|
|
528
|
+
# @param machine_detection_beep_spectral_reject_fax_cng [Boolean] When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
529
|
+
#
|
|
530
|
+
# @param machine_detection_beep_spectral_window [Integer] Length of the spectral confirmation window, in milliseconds. Only used when Mach
|
|
531
|
+
#
|
|
451
532
|
# @param machine_detection_prompt_end_timeout [Integer] Silence duration threshold after a call screening prompt before ending prompt de
|
|
452
533
|
#
|
|
453
534
|
# @param machine_detection_silence_timeout [Integer] If initial silence duration is greater than this value, consider it a machine. I
|
|
@@ -881,6 +962,36 @@ module Telnyx
|
|
|
881
962
|
},
|
|
882
963
|
api_name: :MachineDetection
|
|
883
964
|
|
|
965
|
+
# @!attribute machine_detection_beep_max_frequency
|
|
966
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
967
|
+
# Only used when MachineDetection is enabled.
|
|
968
|
+
#
|
|
969
|
+
# @return [Integer, nil]
|
|
970
|
+
optional :machine_detection_beep_max_frequency,
|
|
971
|
+
Integer,
|
|
972
|
+
api_name: :MachineDetectionBeepMaxFrequency
|
|
973
|
+
|
|
974
|
+
# @!attribute machine_detection_beep_min_frequency
|
|
975
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
976
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
977
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
978
|
+
# used when MachineDetection is enabled.
|
|
979
|
+
#
|
|
980
|
+
# @return [Integer, nil]
|
|
981
|
+
optional :machine_detection_beep_min_frequency,
|
|
982
|
+
Integer,
|
|
983
|
+
api_name: :MachineDetectionBeepMinFrequency
|
|
984
|
+
|
|
985
|
+
# @!attribute machine_detection_beep_min_tone_duration
|
|
986
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
987
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
988
|
+
# is enabled.
|
|
989
|
+
#
|
|
990
|
+
# @return [Integer, nil]
|
|
991
|
+
optional :machine_detection_beep_min_tone_duration,
|
|
992
|
+
Integer,
|
|
993
|
+
api_name: :MachineDetectionBeepMinToneDuration
|
|
994
|
+
|
|
884
995
|
# @!attribute machine_detection_beep_profile
|
|
885
996
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
886
997
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -894,6 +1005,43 @@ module Telnyx
|
|
|
894
1005
|
},
|
|
895
1006
|
api_name: :MachineDetectionBeepProfile
|
|
896
1007
|
|
|
1008
|
+
# @!attribute machine_detection_beep_spectral_confirmation
|
|
1009
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
1010
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
1011
|
+
#
|
|
1012
|
+
# @return [Boolean, nil]
|
|
1013
|
+
optional :machine_detection_beep_spectral_confirmation,
|
|
1014
|
+
Telnyx::Internal::Type::Boolean,
|
|
1015
|
+
api_name: :MachineDetectionBeepSpectralConfirmation
|
|
1016
|
+
|
|
1017
|
+
# @!attribute machine_detection_beep_spectral_min_purity
|
|
1018
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
1019
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
1020
|
+
# Only used when MachineDetection is enabled.
|
|
1021
|
+
#
|
|
1022
|
+
# @return [Float, nil]
|
|
1023
|
+
optional :machine_detection_beep_spectral_min_purity,
|
|
1024
|
+
Float,
|
|
1025
|
+
api_name: :MachineDetectionBeepSpectralMinPurity
|
|
1026
|
+
|
|
1027
|
+
# @!attribute machine_detection_beep_spectral_reject_fax_cng
|
|
1028
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1029
|
+
# used when MachineDetection is enabled.
|
|
1030
|
+
#
|
|
1031
|
+
# @return [Boolean, nil]
|
|
1032
|
+
optional :machine_detection_beep_spectral_reject_fax_cng,
|
|
1033
|
+
Telnyx::Internal::Type::Boolean,
|
|
1034
|
+
api_name: :MachineDetectionBeepSpectralRejectFaxCng
|
|
1035
|
+
|
|
1036
|
+
# @!attribute machine_detection_beep_spectral_window
|
|
1037
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
1038
|
+
# MachineDetection is enabled.
|
|
1039
|
+
#
|
|
1040
|
+
# @return [Integer, nil]
|
|
1041
|
+
optional :machine_detection_beep_spectral_window,
|
|
1042
|
+
Integer,
|
|
1043
|
+
api_name: :MachineDetectionBeepSpectralWindow
|
|
1044
|
+
|
|
897
1045
|
# @!attribute machine_detection_prompt_end_timeout
|
|
898
1046
|
# Silence duration threshold after a call screening prompt before ending prompt
|
|
899
1047
|
# detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -1124,7 +1272,7 @@ module Telnyx
|
|
|
1124
1272
|
enum: -> { Telnyx::Texml::Accounts::CallCallsParams::Body::WithTeXml::URLMethod },
|
|
1125
1273
|
api_name: :UrlMethod
|
|
1126
1274
|
|
|
1127
|
-
# @!method initialize(texml:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_beep_profile: nil, machine_detection_prompt_end_timeout: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
|
|
1275
|
+
# @!method initialize(texml:, application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_beep_max_frequency: nil, machine_detection_beep_min_frequency: nil, machine_detection_beep_min_tone_duration: nil, machine_detection_beep_profile: nil, machine_detection_beep_spectral_confirmation: nil, machine_detection_beep_spectral_min_purity: nil, machine_detection_beep_spectral_reject_fax_cng: nil, machine_detection_beep_spectral_window: nil, machine_detection_prompt_end_timeout: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
|
|
1128
1276
|
# Some parameter documentations has been truncated, see
|
|
1129
1277
|
# {Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml} for more
|
|
1130
1278
|
# details.
|
|
@@ -1161,8 +1309,22 @@ module Telnyx
|
|
|
1161
1309
|
#
|
|
1162
1310
|
# @param machine_detection [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetection] Enables Answering Machine Detection.
|
|
1163
1311
|
#
|
|
1312
|
+
# @param machine_detection_beep_max_frequency [Integer] Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
1313
|
+
#
|
|
1314
|
+
# @param machine_detection_beep_min_frequency [Integer] Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
1315
|
+
#
|
|
1316
|
+
# @param machine_detection_beep_min_tone_duration [Integer] Shortest tone, in milliseconds, that can be treated as a beep. Raising it reject
|
|
1317
|
+
#
|
|
1164
1318
|
# @param machine_detection_beep_profile [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::WithTeXml::MachineDetectionBeepProfile] Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
1165
1319
|
#
|
|
1320
|
+
# @param machine_detection_beep_spectral_confirmation [Boolean] When enabled, a candidate beep must pass an additional spectral check before it
|
|
1321
|
+
#
|
|
1322
|
+
# @param machine_detection_beep_spectral_min_purity [Float] Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep. Raisin
|
|
1323
|
+
#
|
|
1324
|
+
# @param machine_detection_beep_spectral_reject_fax_cng [Boolean] When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1325
|
+
#
|
|
1326
|
+
# @param machine_detection_beep_spectral_window [Integer] Length of the spectral confirmation window, in milliseconds. Only used when Mach
|
|
1327
|
+
#
|
|
1166
1328
|
# @param machine_detection_prompt_end_timeout [Integer] Silence duration threshold after a call screening prompt before ending prompt de
|
|
1167
1329
|
#
|
|
1168
1330
|
# @param machine_detection_silence_timeout [Integer] If initial silence duration is greater than this value, consider it a machine. I
|
|
@@ -1591,6 +1753,36 @@ module Telnyx
|
|
|
1591
1753
|
},
|
|
1592
1754
|
api_name: :MachineDetection
|
|
1593
1755
|
|
|
1756
|
+
# @!attribute machine_detection_beep_max_frequency
|
|
1757
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
1758
|
+
# Only used when MachineDetection is enabled.
|
|
1759
|
+
#
|
|
1760
|
+
# @return [Integer, nil]
|
|
1761
|
+
optional :machine_detection_beep_max_frequency,
|
|
1762
|
+
Integer,
|
|
1763
|
+
api_name: :MachineDetectionBeepMaxFrequency
|
|
1764
|
+
|
|
1765
|
+
# @!attribute machine_detection_beep_min_frequency
|
|
1766
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
1767
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
1768
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
1769
|
+
# used when MachineDetection is enabled.
|
|
1770
|
+
#
|
|
1771
|
+
# @return [Integer, nil]
|
|
1772
|
+
optional :machine_detection_beep_min_frequency,
|
|
1773
|
+
Integer,
|
|
1774
|
+
api_name: :MachineDetectionBeepMinFrequency
|
|
1775
|
+
|
|
1776
|
+
# @!attribute machine_detection_beep_min_tone_duration
|
|
1777
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
1778
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
1779
|
+
# is enabled.
|
|
1780
|
+
#
|
|
1781
|
+
# @return [Integer, nil]
|
|
1782
|
+
optional :machine_detection_beep_min_tone_duration,
|
|
1783
|
+
Integer,
|
|
1784
|
+
api_name: :MachineDetectionBeepMinToneDuration
|
|
1785
|
+
|
|
1594
1786
|
# @!attribute machine_detection_beep_profile
|
|
1595
1787
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
1596
1788
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -1604,6 +1796,43 @@ module Telnyx
|
|
|
1604
1796
|
},
|
|
1605
1797
|
api_name: :MachineDetectionBeepProfile
|
|
1606
1798
|
|
|
1799
|
+
# @!attribute machine_detection_beep_spectral_confirmation
|
|
1800
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
1801
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
1802
|
+
#
|
|
1803
|
+
# @return [Boolean, nil]
|
|
1804
|
+
optional :machine_detection_beep_spectral_confirmation,
|
|
1805
|
+
Telnyx::Internal::Type::Boolean,
|
|
1806
|
+
api_name: :MachineDetectionBeepSpectralConfirmation
|
|
1807
|
+
|
|
1808
|
+
# @!attribute machine_detection_beep_spectral_min_purity
|
|
1809
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
1810
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
1811
|
+
# Only used when MachineDetection is enabled.
|
|
1812
|
+
#
|
|
1813
|
+
# @return [Float, nil]
|
|
1814
|
+
optional :machine_detection_beep_spectral_min_purity,
|
|
1815
|
+
Float,
|
|
1816
|
+
api_name: :MachineDetectionBeepSpectralMinPurity
|
|
1817
|
+
|
|
1818
|
+
# @!attribute machine_detection_beep_spectral_reject_fax_cng
|
|
1819
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1820
|
+
# used when MachineDetection is enabled.
|
|
1821
|
+
#
|
|
1822
|
+
# @return [Boolean, nil]
|
|
1823
|
+
optional :machine_detection_beep_spectral_reject_fax_cng,
|
|
1824
|
+
Telnyx::Internal::Type::Boolean,
|
|
1825
|
+
api_name: :MachineDetectionBeepSpectralRejectFaxCng
|
|
1826
|
+
|
|
1827
|
+
# @!attribute machine_detection_beep_spectral_window
|
|
1828
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
1829
|
+
# MachineDetection is enabled.
|
|
1830
|
+
#
|
|
1831
|
+
# @return [Integer, nil]
|
|
1832
|
+
optional :machine_detection_beep_spectral_window,
|
|
1833
|
+
Integer,
|
|
1834
|
+
api_name: :MachineDetectionBeepSpectralWindow
|
|
1835
|
+
|
|
1607
1836
|
# @!attribute machine_detection_prompt_end_timeout
|
|
1608
1837
|
# Silence duration threshold after a call screening prompt before ending prompt
|
|
1609
1838
|
# detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
@@ -1845,7 +2074,7 @@ module Telnyx
|
|
|
1845
2074
|
},
|
|
1846
2075
|
api_name: :UrlMethod
|
|
1847
2076
|
|
|
1848
|
-
# @!method initialize(application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_beep_profile: nil, machine_detection_prompt_end_timeout: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
|
|
2077
|
+
# @!method initialize(application_sid: nil, async_amd: nil, async_amd_status_callback: nil, async_amd_status_callback_method: nil, caller_id: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, custom_headers: nil, deepfake_detection: nil, deepfake_detection_callback_method: nil, deepfake_detection_callback_url: nil, detection_mode: nil, fallback_url: nil, from: nil, machine_detection: nil, machine_detection_beep_max_frequency: nil, machine_detection_beep_min_frequency: nil, machine_detection_beep_min_tone_duration: nil, machine_detection_beep_profile: nil, machine_detection_beep_spectral_confirmation: nil, machine_detection_beep_spectral_min_purity: nil, machine_detection_beep_spectral_reject_fax_cng: nil, machine_detection_beep_spectral_window: nil, machine_detection_prompt_end_timeout: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, media_encryption: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_timeout: nil, recording_track: nil, send_recording_url: nil, sip_auth_password: nil, sip_auth_username: nil, sip_region: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, supervise_call_sid: nil, supervising_role: nil, texml: nil, time_limit: nil, timeout: nil, to: nil, trim: nil, url: nil, url_method: nil)
|
|
1849
2078
|
# Some parameter documentations has been truncated, see
|
|
1850
2079
|
# {Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault} for
|
|
1851
2080
|
# more details.
|
|
@@ -1880,8 +2109,22 @@ module Telnyx
|
|
|
1880
2109
|
#
|
|
1881
2110
|
# @param machine_detection [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetection] Enables Answering Machine Detection.
|
|
1882
2111
|
#
|
|
2112
|
+
# @param machine_detection_beep_max_frequency [Integer] Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
2113
|
+
#
|
|
2114
|
+
# @param machine_detection_beep_min_frequency [Integer] Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
2115
|
+
#
|
|
2116
|
+
# @param machine_detection_beep_min_tone_duration [Integer] Shortest tone, in milliseconds, that can be treated as a beep. Raising it reject
|
|
2117
|
+
#
|
|
1883
2118
|
# @param machine_detection_beep_profile [Symbol, Telnyx::Models::Texml::Accounts::CallCallsParams::Body::ApplicationDefault::MachineDetectionBeepProfile] Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
1884
2119
|
#
|
|
2120
|
+
# @param machine_detection_beep_spectral_confirmation [Boolean] When enabled, a candidate beep must pass an additional spectral check before it
|
|
2121
|
+
#
|
|
2122
|
+
# @param machine_detection_beep_spectral_min_purity [Float] Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep. Raisin
|
|
2123
|
+
#
|
|
2124
|
+
# @param machine_detection_beep_spectral_reject_fax_cng [Boolean] When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
2125
|
+
#
|
|
2126
|
+
# @param machine_detection_beep_spectral_window [Integer] Length of the spectral confirmation window, in milliseconds. Only used when Mach
|
|
2127
|
+
#
|
|
1885
2128
|
# @param machine_detection_prompt_end_timeout [Integer] Silence duration threshold after a call screening prompt before ending prompt de
|
|
1886
2129
|
#
|
|
1887
2130
|
# @param machine_detection_silence_timeout [Integer] If initial silence duration is greater than this value, consider it a machine. I
|
|
@@ -230,6 +230,36 @@ module Telnyx
|
|
|
230
230
|
},
|
|
231
231
|
api_name: :MachineDetection
|
|
232
232
|
|
|
233
|
+
# @!attribute machine_detection_beep_max_frequency
|
|
234
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
235
|
+
# Only used when MachineDetection is enabled.
|
|
236
|
+
#
|
|
237
|
+
# @return [Integer, nil]
|
|
238
|
+
optional :machine_detection_beep_max_frequency,
|
|
239
|
+
Integer,
|
|
240
|
+
api_name: :MachineDetectionBeepMaxFrequency
|
|
241
|
+
|
|
242
|
+
# @!attribute machine_detection_beep_min_frequency
|
|
243
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
244
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
245
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
246
|
+
# used when MachineDetection is enabled.
|
|
247
|
+
#
|
|
248
|
+
# @return [Integer, nil]
|
|
249
|
+
optional :machine_detection_beep_min_frequency,
|
|
250
|
+
Integer,
|
|
251
|
+
api_name: :MachineDetectionBeepMinFrequency
|
|
252
|
+
|
|
253
|
+
# @!attribute machine_detection_beep_min_tone_duration
|
|
254
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
255
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
256
|
+
# is enabled.
|
|
257
|
+
#
|
|
258
|
+
# @return [Integer, nil]
|
|
259
|
+
optional :machine_detection_beep_min_tone_duration,
|
|
260
|
+
Integer,
|
|
261
|
+
api_name: :MachineDetectionBeepMinToneDuration
|
|
262
|
+
|
|
233
263
|
# @!attribute machine_detection_beep_profile
|
|
234
264
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
235
265
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
@@ -243,6 +273,43 @@ module Telnyx
|
|
|
243
273
|
},
|
|
244
274
|
api_name: :MachineDetectionBeepProfile
|
|
245
275
|
|
|
276
|
+
# @!attribute machine_detection_beep_spectral_confirmation
|
|
277
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
278
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
279
|
+
#
|
|
280
|
+
# @return [Boolean, nil]
|
|
281
|
+
optional :machine_detection_beep_spectral_confirmation,
|
|
282
|
+
Telnyx::Internal::Type::Boolean,
|
|
283
|
+
api_name: :MachineDetectionBeepSpectralConfirmation
|
|
284
|
+
|
|
285
|
+
# @!attribute machine_detection_beep_spectral_min_purity
|
|
286
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
287
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
288
|
+
# Only used when MachineDetection is enabled.
|
|
289
|
+
#
|
|
290
|
+
# @return [Float, nil]
|
|
291
|
+
optional :machine_detection_beep_spectral_min_purity,
|
|
292
|
+
Float,
|
|
293
|
+
api_name: :MachineDetectionBeepSpectralMinPurity
|
|
294
|
+
|
|
295
|
+
# @!attribute machine_detection_beep_spectral_reject_fax_cng
|
|
296
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
297
|
+
# used when MachineDetection is enabled.
|
|
298
|
+
#
|
|
299
|
+
# @return [Boolean, nil]
|
|
300
|
+
optional :machine_detection_beep_spectral_reject_fax_cng,
|
|
301
|
+
Telnyx::Internal::Type::Boolean,
|
|
302
|
+
api_name: :MachineDetectionBeepSpectralRejectFaxCng
|
|
303
|
+
|
|
304
|
+
# @!attribute machine_detection_beep_spectral_window
|
|
305
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
306
|
+
# MachineDetection is enabled.
|
|
307
|
+
#
|
|
308
|
+
# @return [Integer, nil]
|
|
309
|
+
optional :machine_detection_beep_spectral_window,
|
|
310
|
+
Integer,
|
|
311
|
+
api_name: :MachineDetectionBeepSpectralWindow
|
|
312
|
+
|
|
246
313
|
# @!attribute machine_detection_silence_timeout
|
|
247
314
|
# If initial silence duration is greater than this value, consider it a machine.
|
|
248
315
|
# Ignored when `premium` detection is used.
|
|
@@ -423,7 +490,7 @@ module Telnyx
|
|
|
423
490
|
# @return [String, nil]
|
|
424
491
|
optional :wait_url, String, api_name: :WaitUrl
|
|
425
492
|
|
|
426
|
-
# @!method initialize(account_sid:, conference_sid:, amd_status_callback: nil, amd_status_callback_method: nil, application_sid: nil, beep: nil, caller_id: nil, call_sid_to_coach: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, coaching: nil, conference_record: nil, conference_recording_status_callback: nil, conference_recording_status_callback_event: nil, conference_recording_status_callback_method: nil, conference_recording_timeout: nil, conference_status_callback: nil, conference_status_callback_event: nil, conference_status_callback_method: nil, conference_trim: nil, custom_headers: nil, early_media: nil, end_conference_on_exit: nil, from: nil, label: nil, machine_detection: nil, machine_detection_beep_profile: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, max_participants: nil, muted: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, start_conference_on_enter: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, time_limit: nil, timeout_seconds: nil, to: nil, trim: nil, wait_url: nil, request_options: {})
|
|
493
|
+
# @!method initialize(account_sid:, conference_sid:, amd_status_callback: nil, amd_status_callback_method: nil, application_sid: nil, beep: nil, caller_id: nil, call_sid_to_coach: nil, cancel_playback_on_detect_message_end: nil, cancel_playback_on_machine_detection: nil, coaching: nil, conference_record: nil, conference_recording_status_callback: nil, conference_recording_status_callback_event: nil, conference_recording_status_callback_method: nil, conference_recording_timeout: nil, conference_status_callback: nil, conference_status_callback_event: nil, conference_status_callback_method: nil, conference_trim: nil, custom_headers: nil, early_media: nil, end_conference_on_exit: nil, from: nil, label: nil, machine_detection: nil, machine_detection_beep_max_frequency: nil, machine_detection_beep_min_frequency: nil, machine_detection_beep_min_tone_duration: nil, machine_detection_beep_profile: nil, machine_detection_beep_spectral_confirmation: nil, machine_detection_beep_spectral_min_purity: nil, machine_detection_beep_spectral_reject_fax_cng: nil, machine_detection_beep_spectral_window: nil, machine_detection_silence_timeout: nil, machine_detection_speech_end_threshold: nil, machine_detection_speech_threshold: nil, machine_detection_timeout: nil, max_participants: nil, muted: nil, preferred_codecs: nil, record: nil, recording_channels: nil, recording_status_callback: nil, recording_status_callback_event: nil, recording_status_callback_method: nil, recording_track: nil, sip_auth_password: nil, sip_auth_username: nil, start_conference_on_enter: nil, status_callback: nil, status_callback_event: nil, status_callback_method: nil, time_limit: nil, timeout_seconds: nil, to: nil, trim: nil, wait_url: nil, request_options: {})
|
|
427
494
|
# Some parameter documentations has been truncated, see
|
|
428
495
|
# {Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams}
|
|
429
496
|
# for more details.
|
|
@@ -480,8 +547,22 @@ module Telnyx
|
|
|
480
547
|
#
|
|
481
548
|
# @param machine_detection [Symbol, Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::MachineDetection] Whether to detect if a human or an answering machine picked up the call. Use `En
|
|
482
549
|
#
|
|
550
|
+
# @param machine_detection_beep_max_frequency [Integer] Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
551
|
+
#
|
|
552
|
+
# @param machine_detection_beep_min_frequency [Integer] Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
553
|
+
#
|
|
554
|
+
# @param machine_detection_beep_min_tone_duration [Integer] Shortest tone, in milliseconds, that can be treated as a beep. Raising it reject
|
|
555
|
+
#
|
|
483
556
|
# @param machine_detection_beep_profile [Symbol, Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::MachineDetectionBeepProfile] Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
484
557
|
#
|
|
558
|
+
# @param machine_detection_beep_spectral_confirmation [Boolean] When enabled, a candidate beep must pass an additional spectral check before it
|
|
559
|
+
#
|
|
560
|
+
# @param machine_detection_beep_spectral_min_purity [Float] Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep. Raisin
|
|
561
|
+
#
|
|
562
|
+
# @param machine_detection_beep_spectral_reject_fax_cng [Boolean] When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
563
|
+
#
|
|
564
|
+
# @param machine_detection_beep_spectral_window [Integer] Length of the spectral confirmation window, in milliseconds. Only used when Mach
|
|
565
|
+
#
|
|
485
566
|
# @param machine_detection_silence_timeout [Integer] If initial silence duration is greater than this value, consider it a machine. I
|
|
486
567
|
#
|
|
487
568
|
# @param machine_detection_speech_end_threshold [Integer] Silence duration threshold after a greeting message or voice for it be considere
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Texml
|
|
6
|
+
# @see Telnyx::Resources::Texml::Calls#create
|
|
7
|
+
class CallCreateParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute connection_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :connection_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute from
|
|
17
|
+
# The E.164-formatted phone number or SIP URI to present as the caller.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :from, String, api_name: :From
|
|
21
|
+
|
|
22
|
+
# @!attribute to
|
|
23
|
+
# The E.164-formatted phone number or SIP URI to call.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :to, String, api_name: :To
|
|
27
|
+
|
|
28
|
+
# @!attribute method_
|
|
29
|
+
# HTTP method used to retrieve TeXML instructions from Url.
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, Telnyx::Models::Texml::CallCreateParams::Method, nil]
|
|
32
|
+
optional :method_, enum: -> { Telnyx::Texml::CallCreateParams::Method }, api_name: :Method
|
|
33
|
+
|
|
34
|
+
# @!attribute texml
|
|
35
|
+
# Inline TeXML instructions to execute when the call is answered.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :texml, String, api_name: :Texml
|
|
39
|
+
|
|
40
|
+
# @!attribute url
|
|
41
|
+
# The URL from which to retrieve TeXML instructions. Overrides the TeXML
|
|
42
|
+
# application XML request URL.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :url, String, api_name: :Url
|
|
46
|
+
|
|
47
|
+
# @!method initialize(connection_id:, from:, to:, method_: nil, texml: nil, url: nil, request_options: {})
|
|
48
|
+
# Some parameter documentations has been truncated, see
|
|
49
|
+
# {Telnyx::Models::Texml::CallCreateParams} for more details.
|
|
50
|
+
#
|
|
51
|
+
# @param connection_id [String]
|
|
52
|
+
#
|
|
53
|
+
# @param from [String] The E.164-formatted phone number or SIP URI to present as the caller.
|
|
54
|
+
#
|
|
55
|
+
# @param to [String] The E.164-formatted phone number or SIP URI to call.
|
|
56
|
+
#
|
|
57
|
+
# @param method_ [Symbol, Telnyx::Models::Texml::CallCreateParams::Method] HTTP method used to retrieve TeXML instructions from Url.
|
|
58
|
+
#
|
|
59
|
+
# @param texml [String] Inline TeXML instructions to execute when the call is answered.
|
|
60
|
+
#
|
|
61
|
+
# @param url [String] The URL from which to retrieve TeXML instructions. Overrides the TeXML applicati
|
|
62
|
+
#
|
|
63
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
64
|
+
|
|
65
|
+
# HTTP method used to retrieve TeXML instructions from Url.
|
|
66
|
+
module Method
|
|
67
|
+
extend Telnyx::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
GET = :GET
|
|
70
|
+
POST = :POST
|
|
71
|
+
|
|
72
|
+
# @!method self.values
|
|
73
|
+
# @return [Array<Symbol>]
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Texml
|
|
6
|
+
# @see Telnyx::Resources::Texml::Calls#create
|
|
7
|
+
class CallCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute call_sid
|
|
9
|
+
# The call control ID of the created call.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :call_sid, String
|
|
13
|
+
|
|
14
|
+
# @!attribute from
|
|
15
|
+
# The caller address.
|
|
16
|
+
#
|
|
17
|
+
# @return [String]
|
|
18
|
+
required :from, String
|
|
19
|
+
|
|
20
|
+
# @!attribute status
|
|
21
|
+
# The initial status of the outbound call.
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, Telnyx::Models::Texml::CallCreateResponse::Status]
|
|
24
|
+
required :status, enum: -> { Telnyx::Models::Texml::CallCreateResponse::Status }
|
|
25
|
+
|
|
26
|
+
# @!attribute to
|
|
27
|
+
# The called address.
|
|
28
|
+
#
|
|
29
|
+
# @return [String]
|
|
30
|
+
required :to, String
|
|
31
|
+
|
|
32
|
+
# @!method initialize(call_sid:, from:, status:, to:)
|
|
33
|
+
# @param call_sid [String] The call control ID of the created call.
|
|
34
|
+
#
|
|
35
|
+
# @param from [String] The caller address.
|
|
36
|
+
#
|
|
37
|
+
# @param status [Symbol, Telnyx::Models::Texml::CallCreateResponse::Status] The initial status of the outbound call.
|
|
38
|
+
#
|
|
39
|
+
# @param to [String] The called address.
|
|
40
|
+
|
|
41
|
+
# The initial status of the outbound call.
|
|
42
|
+
#
|
|
43
|
+
# @see Telnyx::Models::Texml::CallCreateResponse#status
|
|
44
|
+
module Status
|
|
45
|
+
extend Telnyx::Internal::Type::Enum
|
|
46
|
+
|
|
47
|
+
QUEUED = :queued
|
|
48
|
+
|
|
49
|
+
# @!method self.values
|
|
50
|
+
# @return [Array<Symbol>]
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|