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
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Texml
|
|
6
|
+
class CallCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Telnyx::Texml::CallCreateParams, Telnyx::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :connection_id
|
|
17
|
+
|
|
18
|
+
# The E.164-formatted phone number or SIP URI to present as the caller.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :from
|
|
21
|
+
|
|
22
|
+
# The E.164-formatted phone number or SIP URI to call.
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :to
|
|
25
|
+
|
|
26
|
+
# HTTP method used to retrieve TeXML instructions from Url.
|
|
27
|
+
sig do
|
|
28
|
+
returns(T.nilable(Telnyx::Texml::CallCreateParams::Method::OrSymbol))
|
|
29
|
+
end
|
|
30
|
+
attr_reader :method_
|
|
31
|
+
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
method_: Telnyx::Texml::CallCreateParams::Method::OrSymbol
|
|
35
|
+
).void
|
|
36
|
+
end
|
|
37
|
+
attr_writer :method_
|
|
38
|
+
|
|
39
|
+
# Inline TeXML instructions to execute when the call is answered.
|
|
40
|
+
sig { returns(T.nilable(String)) }
|
|
41
|
+
attr_reader :texml
|
|
42
|
+
|
|
43
|
+
sig { params(texml: String).void }
|
|
44
|
+
attr_writer :texml
|
|
45
|
+
|
|
46
|
+
# The URL from which to retrieve TeXML instructions. Overrides the TeXML
|
|
47
|
+
# application XML request URL.
|
|
48
|
+
sig { returns(T.nilable(String)) }
|
|
49
|
+
attr_reader :url
|
|
50
|
+
|
|
51
|
+
sig { params(url: String).void }
|
|
52
|
+
attr_writer :url
|
|
53
|
+
|
|
54
|
+
sig do
|
|
55
|
+
params(
|
|
56
|
+
connection_id: String,
|
|
57
|
+
from: String,
|
|
58
|
+
to: String,
|
|
59
|
+
method_: Telnyx::Texml::CallCreateParams::Method::OrSymbol,
|
|
60
|
+
texml: String,
|
|
61
|
+
url: String,
|
|
62
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
63
|
+
).returns(T.attached_class)
|
|
64
|
+
end
|
|
65
|
+
def self.new(
|
|
66
|
+
connection_id:,
|
|
67
|
+
# The E.164-formatted phone number or SIP URI to present as the caller.
|
|
68
|
+
from:,
|
|
69
|
+
# The E.164-formatted phone number or SIP URI to call.
|
|
70
|
+
to:,
|
|
71
|
+
# HTTP method used to retrieve TeXML instructions from Url.
|
|
72
|
+
method_: nil,
|
|
73
|
+
# Inline TeXML instructions to execute when the call is answered.
|
|
74
|
+
texml: nil,
|
|
75
|
+
# The URL from which to retrieve TeXML instructions. Overrides the TeXML
|
|
76
|
+
# application XML request URL.
|
|
77
|
+
url: nil,
|
|
78
|
+
request_options: {}
|
|
79
|
+
)
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
sig do
|
|
83
|
+
override.returns(
|
|
84
|
+
{
|
|
85
|
+
connection_id: String,
|
|
86
|
+
from: String,
|
|
87
|
+
to: String,
|
|
88
|
+
method_: Telnyx::Texml::CallCreateParams::Method::OrSymbol,
|
|
89
|
+
texml: String,
|
|
90
|
+
url: String,
|
|
91
|
+
request_options: Telnyx::RequestOptions
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
def to_hash
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# HTTP method used to retrieve TeXML instructions from Url.
|
|
99
|
+
module Method
|
|
100
|
+
extend Telnyx::Internal::Type::Enum
|
|
101
|
+
|
|
102
|
+
TaggedSymbol =
|
|
103
|
+
T.type_alias do
|
|
104
|
+
T.all(Symbol, Telnyx::Texml::CallCreateParams::Method)
|
|
105
|
+
end
|
|
106
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
107
|
+
|
|
108
|
+
GET =
|
|
109
|
+
T.let(:GET, Telnyx::Texml::CallCreateParams::Method::TaggedSymbol)
|
|
110
|
+
POST =
|
|
111
|
+
T.let(:POST, Telnyx::Texml::CallCreateParams::Method::TaggedSymbol)
|
|
112
|
+
|
|
113
|
+
sig do
|
|
114
|
+
override.returns(
|
|
115
|
+
T::Array[Telnyx::Texml::CallCreateParams::Method::TaggedSymbol]
|
|
116
|
+
)
|
|
117
|
+
end
|
|
118
|
+
def self.values
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Texml
|
|
6
|
+
class CallCreateResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Telnyx::Models::Texml::CallCreateResponse,
|
|
11
|
+
Telnyx::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# The call control ID of the created call.
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :call_sid
|
|
18
|
+
|
|
19
|
+
# The caller address.
|
|
20
|
+
sig { returns(String) }
|
|
21
|
+
attr_accessor :from
|
|
22
|
+
|
|
23
|
+
# The initial status of the outbound call.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Telnyx::Models::Texml::CallCreateResponse::Status::TaggedSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :status
|
|
30
|
+
|
|
31
|
+
# The called address.
|
|
32
|
+
sig { returns(String) }
|
|
33
|
+
attr_accessor :to
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(
|
|
37
|
+
call_sid: String,
|
|
38
|
+
from: String,
|
|
39
|
+
status: Telnyx::Models::Texml::CallCreateResponse::Status::OrSymbol,
|
|
40
|
+
to: String
|
|
41
|
+
).returns(T.attached_class)
|
|
42
|
+
end
|
|
43
|
+
def self.new(
|
|
44
|
+
# The call control ID of the created call.
|
|
45
|
+
call_sid:,
|
|
46
|
+
# The caller address.
|
|
47
|
+
from:,
|
|
48
|
+
# The initial status of the outbound call.
|
|
49
|
+
status:,
|
|
50
|
+
# The called address.
|
|
51
|
+
to:
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
sig do
|
|
56
|
+
override.returns(
|
|
57
|
+
{
|
|
58
|
+
call_sid: String,
|
|
59
|
+
from: String,
|
|
60
|
+
status:
|
|
61
|
+
Telnyx::Models::Texml::CallCreateResponse::Status::TaggedSymbol,
|
|
62
|
+
to: String
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
end
|
|
66
|
+
def to_hash
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# The initial status of the outbound call.
|
|
70
|
+
module Status
|
|
71
|
+
extend Telnyx::Internal::Type::Enum
|
|
72
|
+
|
|
73
|
+
TaggedSymbol =
|
|
74
|
+
T.type_alias do
|
|
75
|
+
T.all(Symbol, Telnyx::Models::Texml::CallCreateResponse::Status)
|
|
76
|
+
end
|
|
77
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
78
|
+
|
|
79
|
+
QUEUED =
|
|
80
|
+
T.let(
|
|
81
|
+
:queued,
|
|
82
|
+
Telnyx::Models::Texml::CallCreateResponse::Status::TaggedSymbol
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
sig do
|
|
86
|
+
override.returns(
|
|
87
|
+
T::Array[
|
|
88
|
+
Telnyx::Models::Texml::CallCreateResponse::Status::TaggedSymbol
|
|
89
|
+
]
|
|
90
|
+
)
|
|
91
|
+
end
|
|
92
|
+
def self.values
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
@@ -174,6 +174,33 @@ module Telnyx
|
|
|
174
174
|
end
|
|
175
175
|
attr_writer :machine_detection
|
|
176
176
|
|
|
177
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
178
|
+
# Only used when MachineDetection is enabled.
|
|
179
|
+
sig { returns(T.nilable(Integer)) }
|
|
180
|
+
attr_reader :machine_detection_beep_max_frequency
|
|
181
|
+
|
|
182
|
+
sig { params(machine_detection_beep_max_frequency: Integer).void }
|
|
183
|
+
attr_writer :machine_detection_beep_max_frequency
|
|
184
|
+
|
|
185
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
186
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
187
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
188
|
+
# used when MachineDetection is enabled.
|
|
189
|
+
sig { returns(T.nilable(Integer)) }
|
|
190
|
+
attr_reader :machine_detection_beep_min_frequency
|
|
191
|
+
|
|
192
|
+
sig { params(machine_detection_beep_min_frequency: Integer).void }
|
|
193
|
+
attr_writer :machine_detection_beep_min_frequency
|
|
194
|
+
|
|
195
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
196
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
197
|
+
# is enabled.
|
|
198
|
+
sig { returns(T.nilable(Integer)) }
|
|
199
|
+
attr_reader :machine_detection_beep_min_tone_duration
|
|
200
|
+
|
|
201
|
+
sig { params(machine_detection_beep_min_tone_duration: Integer).void }
|
|
202
|
+
attr_writer :machine_detection_beep_min_tone_duration
|
|
203
|
+
|
|
177
204
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
178
205
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
179
206
|
# beeps whose volume is too unsteady for the default profile. Only used when
|
|
@@ -195,6 +222,43 @@ module Telnyx
|
|
|
195
222
|
end
|
|
196
223
|
attr_writer :machine_detection_beep_profile
|
|
197
224
|
|
|
225
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
226
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
227
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
228
|
+
attr_reader :machine_detection_beep_spectral_confirmation
|
|
229
|
+
|
|
230
|
+
sig do
|
|
231
|
+
params(machine_detection_beep_spectral_confirmation: T::Boolean).void
|
|
232
|
+
end
|
|
233
|
+
attr_writer :machine_detection_beep_spectral_confirmation
|
|
234
|
+
|
|
235
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
236
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
237
|
+
# Only used when MachineDetection is enabled.
|
|
238
|
+
sig { returns(T.nilable(Float)) }
|
|
239
|
+
attr_reader :machine_detection_beep_spectral_min_purity
|
|
240
|
+
|
|
241
|
+
sig { params(machine_detection_beep_spectral_min_purity: Float).void }
|
|
242
|
+
attr_writer :machine_detection_beep_spectral_min_purity
|
|
243
|
+
|
|
244
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
245
|
+
# used when MachineDetection is enabled.
|
|
246
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
247
|
+
attr_reader :machine_detection_beep_spectral_reject_fax_cng
|
|
248
|
+
|
|
249
|
+
sig do
|
|
250
|
+
params(machine_detection_beep_spectral_reject_fax_cng: T::Boolean).void
|
|
251
|
+
end
|
|
252
|
+
attr_writer :machine_detection_beep_spectral_reject_fax_cng
|
|
253
|
+
|
|
254
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
255
|
+
# MachineDetection is enabled.
|
|
256
|
+
sig { returns(T.nilable(Integer)) }
|
|
257
|
+
attr_reader :machine_detection_beep_spectral_window
|
|
258
|
+
|
|
259
|
+
sig { params(machine_detection_beep_spectral_window: Integer).void }
|
|
260
|
+
attr_writer :machine_detection_beep_spectral_window
|
|
261
|
+
|
|
198
262
|
# Silence duration threshold after a call screening prompt before ending prompt
|
|
199
263
|
# detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
200
264
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -469,8 +533,15 @@ module Telnyx
|
|
|
469
533
|
Telnyx::TexmlInitiateAICallParams::DetectionMode::OrSymbol,
|
|
470
534
|
machine_detection:
|
|
471
535
|
Telnyx::TexmlInitiateAICallParams::MachineDetection::OrSymbol,
|
|
536
|
+
machine_detection_beep_max_frequency: Integer,
|
|
537
|
+
machine_detection_beep_min_frequency: Integer,
|
|
538
|
+
machine_detection_beep_min_tone_duration: Integer,
|
|
472
539
|
machine_detection_beep_profile:
|
|
473
540
|
Telnyx::TexmlInitiateAICallParams::MachineDetectionBeepProfile::OrSymbol,
|
|
541
|
+
machine_detection_beep_spectral_confirmation: T::Boolean,
|
|
542
|
+
machine_detection_beep_spectral_min_purity: Float,
|
|
543
|
+
machine_detection_beep_spectral_reject_fax_cng: T::Boolean,
|
|
544
|
+
machine_detection_beep_spectral_window: Integer,
|
|
474
545
|
machine_detection_prompt_end_timeout: Integer,
|
|
475
546
|
machine_detection_silence_timeout: Integer,
|
|
476
547
|
machine_detection_speech_end_threshold: Integer,
|
|
@@ -546,11 +617,36 @@ module Telnyx
|
|
|
546
617
|
detection_mode: nil,
|
|
547
618
|
# Enables Answering Machine Detection.
|
|
548
619
|
machine_detection: nil,
|
|
620
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
621
|
+
# Only used when MachineDetection is enabled.
|
|
622
|
+
machine_detection_beep_max_frequency: nil,
|
|
623
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
624
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
625
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
626
|
+
# used when MachineDetection is enabled.
|
|
627
|
+
machine_detection_beep_min_frequency: nil,
|
|
628
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
629
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
630
|
+
# is enabled.
|
|
631
|
+
machine_detection_beep_min_tone_duration: nil,
|
|
549
632
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
550
633
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
551
634
|
# beeps whose volume is too unsteady for the default profile. Only used when
|
|
552
635
|
# MachineDetection is enabled.
|
|
553
636
|
machine_detection_beep_profile: nil,
|
|
637
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
638
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
639
|
+
machine_detection_beep_spectral_confirmation: nil,
|
|
640
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
641
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
642
|
+
# Only used when MachineDetection is enabled.
|
|
643
|
+
machine_detection_beep_spectral_min_purity: nil,
|
|
644
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
645
|
+
# used when MachineDetection is enabled.
|
|
646
|
+
machine_detection_beep_spectral_reject_fax_cng: nil,
|
|
647
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
648
|
+
# MachineDetection is enabled.
|
|
649
|
+
machine_detection_beep_spectral_window: nil,
|
|
554
650
|
# Silence duration threshold after a call screening prompt before ending prompt
|
|
555
651
|
# detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
556
652
|
machine_detection_prompt_end_timeout: nil,
|
|
@@ -651,8 +747,15 @@ module Telnyx
|
|
|
651
747
|
Telnyx::TexmlInitiateAICallParams::DetectionMode::OrSymbol,
|
|
652
748
|
machine_detection:
|
|
653
749
|
Telnyx::TexmlInitiateAICallParams::MachineDetection::OrSymbol,
|
|
750
|
+
machine_detection_beep_max_frequency: Integer,
|
|
751
|
+
machine_detection_beep_min_frequency: Integer,
|
|
752
|
+
machine_detection_beep_min_tone_duration: Integer,
|
|
654
753
|
machine_detection_beep_profile:
|
|
655
754
|
Telnyx::TexmlInitiateAICallParams::MachineDetectionBeepProfile::OrSymbol,
|
|
755
|
+
machine_detection_beep_spectral_confirmation: T::Boolean,
|
|
756
|
+
machine_detection_beep_spectral_min_purity: Float,
|
|
757
|
+
machine_detection_beep_spectral_reject_fax_cng: T::Boolean,
|
|
758
|
+
machine_detection_beep_spectral_window: Integer,
|
|
656
759
|
machine_detection_prompt_end_timeout: Integer,
|
|
657
760
|
machine_detection_silence_timeout: Integer,
|
|
658
761
|
machine_detection_speech_end_threshold: Integer,
|
|
@@ -217,7 +217,10 @@ module Telnyx
|
|
|
217
217
|
attr_writer :outbound
|
|
218
218
|
|
|
219
219
|
# The password to be used as part of the credentials. Must be 8 to 128 characters
|
|
220
|
-
# long.
|
|
220
|
+
# long. For primary accounts created on or after September 8, 2026, this password
|
|
221
|
+
# is returned as `********`. The password is returned in full on create, and on
|
|
222
|
+
# update only when that update changed the password. Accounts created before
|
|
223
|
+
# September 8, 2026 are unaffected.
|
|
221
224
|
sig { returns(T.nilable(String)) }
|
|
222
225
|
attr_reader :password
|
|
223
226
|
|
|
@@ -440,7 +443,10 @@ module Telnyx
|
|
|
440
443
|
onnet_t38_passthrough_enabled: nil,
|
|
441
444
|
outbound: nil,
|
|
442
445
|
# The password to be used as part of the credentials. Must be 8 to 128 characters
|
|
443
|
-
# long.
|
|
446
|
+
# long. For primary accounts created on or after September 8, 2026, this password
|
|
447
|
+
# is returned as `********`. The password is returned in full on create, and on
|
|
448
|
+
# update only when that update changed the password. Accounts created before
|
|
449
|
+
# September 8, 2026 are unaffected.
|
|
444
450
|
password: nil,
|
|
445
451
|
# Identifies the type of the resource.
|
|
446
452
|
record_type: nil,
|
|
@@ -28,7 +28,11 @@ module Telnyx
|
|
|
28
28
|
sig { returns(T.nilable(String)) }
|
|
29
29
|
attr_accessor :outbound_proxy
|
|
30
30
|
|
|
31
|
-
# The SIP password used for digest authentication with the external SIP peer.
|
|
31
|
+
# The SIP password used for digest authentication with the external SIP peer. For
|
|
32
|
+
# primary accounts created on or after September 8, 2026, this password is
|
|
33
|
+
# returned as `********`. The password is returned in full on create, and on
|
|
34
|
+
# update only when that update changed the password. Accounts created before
|
|
35
|
+
# September 8, 2026 are unaffected.
|
|
32
36
|
sig { returns(T.nilable(String)) }
|
|
33
37
|
attr_reader :password
|
|
34
38
|
|
|
@@ -93,7 +97,11 @@ module Telnyx
|
|
|
93
97
|
# An optional SIP proxy used to route outbound requests before reaching the
|
|
94
98
|
# external SIP peer.
|
|
95
99
|
outbound_proxy: nil,
|
|
96
|
-
# The SIP password used for digest authentication with the external SIP peer.
|
|
100
|
+
# The SIP password used for digest authentication with the external SIP peer. For
|
|
101
|
+
# primary accounts created on or after September 8, 2026, this password is
|
|
102
|
+
# returned as `********`. The password is returned in full on create, and on
|
|
103
|
+
# update only when that update changed the password. Accounts created before
|
|
104
|
+
# September 8, 2026 are unaffected.
|
|
97
105
|
password: nil,
|
|
98
106
|
# The SIP proxy address of the external SIP peer used for registrations and
|
|
99
107
|
# outbound call routing.
|
|
@@ -80,7 +80,9 @@ module Telnyx
|
|
|
80
80
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
81
81
|
Telnyx::SessionStatusChangedWebhookEvent,
|
|
82
82
|
Telnyx::TranscriptCompletedWebhookEvent,
|
|
83
|
-
Telnyx::TranscriptionWebhookEvent
|
|
83
|
+
Telnyx::TranscriptionWebhookEvent,
|
|
84
|
+
Telnyx::WhatsappAccountUpdate,
|
|
85
|
+
Telnyx::WhatsappMessageEcho
|
|
84
86
|
)
|
|
85
87
|
end
|
|
86
88
|
|
|
@@ -80,7 +80,9 @@ module Telnyx
|
|
|
80
80
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
81
81
|
Telnyx::SessionStatusChangedWebhookEvent,
|
|
82
82
|
Telnyx::TranscriptCompletedWebhookEvent,
|
|
83
|
-
Telnyx::TranscriptionWebhookEvent
|
|
83
|
+
Telnyx::TranscriptionWebhookEvent,
|
|
84
|
+
Telnyx::WhatsappAccountUpdate,
|
|
85
|
+
Telnyx::WhatsappMessageEcho
|
|
84
86
|
)
|
|
85
87
|
end
|
|
86
88
|
|
|
@@ -317,8 +317,8 @@ module Telnyx
|
|
|
317
317
|
end
|
|
318
318
|
|
|
319
319
|
# Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
320
|
-
# For best quality, provide
|
|
321
|
-
# size: 5MB.
|
|
320
|
+
# For best quality, provide up to 60 seconds of clear, uninterrupted speech.
|
|
321
|
+
# Maximum size: 5MB.
|
|
322
322
|
sig { returns(Telnyx::Internal::FileInput) }
|
|
323
323
|
attr_accessor :audio_file
|
|
324
324
|
|
|
@@ -386,8 +386,8 @@ module Telnyx
|
|
|
386
386
|
end
|
|
387
387
|
def self.new(
|
|
388
388
|
# Audio file to clone the voice from. Supported formats: WAV, MP3, FLAC, OGG, M4A.
|
|
389
|
-
# For best quality, provide
|
|
390
|
-
# size: 5MB.
|
|
389
|
+
# For best quality, provide up to 60 seconds of clear, uninterrupted speech.
|
|
390
|
+
# Maximum size: 5MB.
|
|
391
391
|
audio_file:,
|
|
392
392
|
# Gender of the voice clone.
|
|
393
393
|
gender:,
|