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,97 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
# Agentic (bot) signup for Telnyx accounts. An AI agent solves a reverse-CAPTCHA
|
|
6
|
+
# challenge designed to be easy for LLMs and hard for humans, registers an
|
|
7
|
+
# account, and signs in by consuming a magic link emailed to the account owner.
|
|
8
|
+
# All endpoints are public and unauthenticated; signup endpoints are additionally
|
|
9
|
+
# gated by the freemium feature flags and per-country availability.
|
|
10
|
+
class BotSignup
|
|
11
|
+
# Some parameter documentations has been truncated, see
|
|
12
|
+
# {Telnyx::Models::BotSignupCreateParams} for more details.
|
|
13
|
+
#
|
|
14
|
+
# Creates a freemium Telnyx account through the agentic signup flow. The request
|
|
15
|
+
# must carry a valid answer to a previously issued bot challenge
|
|
16
|
+
# (`bot_challenge_nonce` and `bot_challenge_answer`), accept the terms of service,
|
|
17
|
+
# and echo the exact terms-and-conditions and privacy-policy URLs returned by the
|
|
18
|
+
# challenge endpoint. When EU consent enforcement is enabled,
|
|
19
|
+
# `terms_of_service_eu` and `terms_and_conditions_eu_url` are also required. On
|
|
20
|
+
# success a one-time sign-in (magic) link is emailed to the address provided; if
|
|
21
|
+
# the email address belongs to an existing account, a sign-in link is sent instead
|
|
22
|
+
# of creating a duplicate account. `email` may only be omitted when
|
|
23
|
+
# placeholder-email registration is enabled server-side. This endpoint is public
|
|
24
|
+
# and unauthenticated, gated by the freemium feature flags and per-country
|
|
25
|
+
# availability, and subject to per-IP and per-domain registration limits.
|
|
26
|
+
#
|
|
27
|
+
# @overload create(bot_challenge_answer:, bot_challenge_nonce:, privacy_policy_url:, terms_and_conditions_url:, terms_of_service:, email: nil, terms_and_conditions_eu_url: nil, terms_of_service_eu: nil, request_options: {})
|
|
28
|
+
#
|
|
29
|
+
# @param bot_challenge_answer [String] Answer to the issued bot challenge.
|
|
30
|
+
#
|
|
31
|
+
# @param bot_challenge_nonce [String] Nonce from a previously issued bot challenge.
|
|
32
|
+
#
|
|
33
|
+
# @param privacy_policy_url [String] Must exactly match the privacy-policy URL returned by the challenge endpoint.
|
|
34
|
+
#
|
|
35
|
+
# @param terms_and_conditions_url [String] Must exactly match the terms-and-conditions URL returned by the challenge endpoi
|
|
36
|
+
#
|
|
37
|
+
# @param terms_of_service [Boolean, Telnyx::Models::BotSignupCreateParams::TermsOfService] Must be true to accept the terms of service.
|
|
38
|
+
#
|
|
39
|
+
# @param email [String] Email address for the new account. The magic link is sent here. May only be omit
|
|
40
|
+
#
|
|
41
|
+
# @param terms_and_conditions_eu_url [String] EU terms-and-conditions URL. Required when EU consent enforcement is enabled.
|
|
42
|
+
#
|
|
43
|
+
# @param terms_of_service_eu [Boolean, Telnyx::Models::BotSignupCreateParams::TermsOfServiceEu] EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
44
|
+
#
|
|
45
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
46
|
+
#
|
|
47
|
+
# @return [Telnyx::Models::SuccessResponse]
|
|
48
|
+
#
|
|
49
|
+
# @see Telnyx::Models::BotSignupCreateParams
|
|
50
|
+
def create(params)
|
|
51
|
+
parsed, options = Telnyx::BotSignupCreateParams.dump_request(params)
|
|
52
|
+
@client.request(
|
|
53
|
+
method: :post,
|
|
54
|
+
path: "v2/bot_signup",
|
|
55
|
+
body: parsed,
|
|
56
|
+
model: Telnyx::SuccessResponse,
|
|
57
|
+
options: options
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Resends the one-time sign-in (magic) link for an eligible bot signup account.
|
|
62
|
+
# Eligibility (account exists, was registered through bot signup, is active, and
|
|
63
|
+
# has not exceeded the resend limit or rate window) is evaluated server-side; the
|
|
64
|
+
# response is intentionally uniform and does not reveal whether the account exists
|
|
65
|
+
# or whether a link was actually sent. This endpoint is public and
|
|
66
|
+
# unauthenticated, gated by the freemium feature flags and per-country
|
|
67
|
+
# availability.
|
|
68
|
+
#
|
|
69
|
+
# @overload resend_magic_link(email:, request_options: {})
|
|
70
|
+
#
|
|
71
|
+
# @param email [String] Email address of the bot signup account to resend the magic link to.
|
|
72
|
+
#
|
|
73
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
74
|
+
#
|
|
75
|
+
# @return [Telnyx::Models::SuccessResponse]
|
|
76
|
+
#
|
|
77
|
+
# @see Telnyx::Models::BotSignupResendMagicLinkParams
|
|
78
|
+
def resend_magic_link(params)
|
|
79
|
+
parsed, options = Telnyx::BotSignupResendMagicLinkParams.dump_request(params)
|
|
80
|
+
@client.request(
|
|
81
|
+
method: :post,
|
|
82
|
+
path: "v2/bot_signup/resend_magic_link",
|
|
83
|
+
body: parsed,
|
|
84
|
+
model: Telnyx::SuccessResponse,
|
|
85
|
+
options: options
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# @api private
|
|
90
|
+
#
|
|
91
|
+
# @param client [Telnyx::Client]
|
|
92
|
+
def initialize(client:)
|
|
93
|
+
@client = client
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
@@ -1836,7 +1836,7 @@ module Telnyx
|
|
|
1836
1836
|
#
|
|
1837
1837
|
# @param custom_headers [Array<Telnyx::Models::CustomSipHeader>] Custom headers to be added to the SIP INVITE.
|
|
1838
1838
|
#
|
|
1839
|
-
# @param diversion [String] The number
|
|
1839
|
+
# @param diversion [String] The `to` number of an active inbound call, in +E164 format. Telnyx checks whethe
|
|
1840
1840
|
#
|
|
1841
1841
|
# @param early_media [Boolean] If set to false, early media will not be passed to the originating leg.
|
|
1842
1842
|
#
|
|
@@ -71,7 +71,7 @@ module Telnyx
|
|
|
71
71
|
#
|
|
72
72
|
# @param dialogflow_config [Telnyx::Models::DialogflowConfig]
|
|
73
73
|
#
|
|
74
|
-
# @param diversion [String] The number
|
|
74
|
+
# @param diversion [String] The `to` number of an active inbound call, in +E164 format. Telnyx checks whethe
|
|
75
75
|
#
|
|
76
76
|
# @param enable_dialogflow [Boolean] Enables Dialogflow for the current call. The default value is false.
|
|
77
77
|
#
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Compute
|
|
6
|
+
class Funcs
|
|
7
|
+
class Export
|
|
8
|
+
# Some parameter documentations has been truncated, see
|
|
9
|
+
# {Telnyx::Models::Compute::Funcs::ExportCreateParams} for more details.
|
|
10
|
+
#
|
|
11
|
+
# Configures the external OTLP endpoint a function's runtime and/or invocation
|
|
12
|
+
# logs are pushed to as they happen. This operation is a **full replace, not a
|
|
13
|
+
# patch**: `endpoint`, `headers`, `runtime_export_enabled`, and
|
|
14
|
+
# `invocation_export_enabled` are all required on every call — omitting any of
|
|
15
|
+
# them is a 422, not "keep the current value". Headers are encrypted at rest and
|
|
16
|
+
# never returned in any response.
|
|
17
|
+
#
|
|
18
|
+
# The endpoint must be an HTTPS URL. When export is configured, new log records
|
|
19
|
+
# are converted to OTLP log records and delivered continuously; export never
|
|
20
|
+
# bypasses platform log storage, and delivery retries with a bounded policy while
|
|
21
|
+
# the destination is unreachable. Only logs generated after configuration are
|
|
22
|
+
# exported — there is no historical replay.
|
|
23
|
+
#
|
|
24
|
+
# @overload create(id, endpoint:, headers:, invocation_export_enabled:, runtime_export_enabled:, request_options: {})
|
|
25
|
+
#
|
|
26
|
+
# @param id [String] Function ID
|
|
27
|
+
#
|
|
28
|
+
# @param endpoint [String] HTTPS URL to push logs to
|
|
29
|
+
#
|
|
30
|
+
# @param headers [Hash{Symbol=>String}] Headers attached to every export push, as key-value pairs (e.g. an auth token th
|
|
31
|
+
#
|
|
32
|
+
# @param invocation_export_enabled [Boolean] Export invocation records (one per HTTP request) to this destination
|
|
33
|
+
#
|
|
34
|
+
# @param runtime_export_enabled [Boolean] Export runtime logs (function stdout/stderr) to this destination
|
|
35
|
+
#
|
|
36
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
37
|
+
#
|
|
38
|
+
# @return [Telnyx::Models::Compute::Funcs::FuncLogExportConfigResponse]
|
|
39
|
+
#
|
|
40
|
+
# @see Telnyx::Models::Compute::Funcs::ExportCreateParams
|
|
41
|
+
def create(id, params)
|
|
42
|
+
parsed, options = Telnyx::Compute::Funcs::ExportCreateParams.dump_request(params)
|
|
43
|
+
@client.request(
|
|
44
|
+
method: :put,
|
|
45
|
+
path: ["compute/funcs/%1$s/logs/export", id],
|
|
46
|
+
body: parsed,
|
|
47
|
+
model: Telnyx::Compute::Funcs::FuncLogExportConfigResponse,
|
|
48
|
+
options: options
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Returns the function's configured log export destination and which log types are
|
|
53
|
+
# exported. Headers are never returned. Returns 404 (error code 10005) when no
|
|
54
|
+
# destination is configured for the function.
|
|
55
|
+
#
|
|
56
|
+
# @overload list(id, request_options: {})
|
|
57
|
+
#
|
|
58
|
+
# @param id [String] Function ID
|
|
59
|
+
#
|
|
60
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
61
|
+
#
|
|
62
|
+
# @return [Telnyx::Models::Compute::Funcs::FuncLogExportConfigResponse]
|
|
63
|
+
#
|
|
64
|
+
# @see Telnyx::Models::Compute::Funcs::ExportListParams
|
|
65
|
+
def list(id, params = {})
|
|
66
|
+
@client.request(
|
|
67
|
+
method: :get,
|
|
68
|
+
path: ["compute/funcs/%1$s/logs/export", id],
|
|
69
|
+
model: Telnyx::Compute::Funcs::FuncLogExportConfigResponse,
|
|
70
|
+
options: params[:request_options]
|
|
71
|
+
)
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Stops exporting a function's logs and removes its destination configuration.
|
|
75
|
+
# Idempotent: deleting when nothing is configured succeeds.
|
|
76
|
+
#
|
|
77
|
+
# @overload delete_all(id, request_options: {})
|
|
78
|
+
#
|
|
79
|
+
# @param id [String] Function ID
|
|
80
|
+
#
|
|
81
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
82
|
+
#
|
|
83
|
+
# @return [nil]
|
|
84
|
+
#
|
|
85
|
+
# @see Telnyx::Models::Compute::Funcs::ExportDeleteAllParams
|
|
86
|
+
def delete_all(id, params = {})
|
|
87
|
+
@client.request(
|
|
88
|
+
method: :delete,
|
|
89
|
+
path: ["compute/funcs/%1$s/logs/export", id],
|
|
90
|
+
model: NilClass,
|
|
91
|
+
options: params[:request_options]
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# @api private
|
|
96
|
+
#
|
|
97
|
+
# @param client [Telnyx::Client]
|
|
98
|
+
def initialize(client:)
|
|
99
|
+
@client = client
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Compute
|
|
6
|
+
class Funcs
|
|
7
|
+
# @return [Telnyx::Resources::Compute::Funcs::Export]
|
|
8
|
+
attr_reader :export
|
|
9
|
+
|
|
10
|
+
# Returns logs oldest first. `type=runtime` (default) returns function
|
|
11
|
+
# stdout/stderr. `type=invocations` returns one platform-generated record per HTTP
|
|
12
|
+
# request served.
|
|
13
|
+
#
|
|
14
|
+
# @overload retrieve_logs(id, end_time: nil, limit: nil, start_time: nil, type: nil, request_options: {})
|
|
15
|
+
#
|
|
16
|
+
# @param id [String] Function ID
|
|
17
|
+
#
|
|
18
|
+
# @param end_time [Time] Return records at or before this RFC 3339 timestamp.
|
|
19
|
+
#
|
|
20
|
+
# @param limit [Integer] Maximum records to return.
|
|
21
|
+
#
|
|
22
|
+
# @param start_time [Time] Return records at or after this RFC 3339 timestamp.
|
|
23
|
+
#
|
|
24
|
+
# @param type [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsParams::Type] Log stream to return.
|
|
25
|
+
#
|
|
26
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
27
|
+
#
|
|
28
|
+
# @return [Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncRuntimeLogsResponse, Telnyx::Models::Compute::FuncRetrieveLogsResponse::FuncInvocationLogsResponse]
|
|
29
|
+
#
|
|
30
|
+
# @see Telnyx::Models::Compute::FuncRetrieveLogsParams
|
|
31
|
+
def retrieve_logs(id, params = {})
|
|
32
|
+
parsed, options = Telnyx::Compute::FuncRetrieveLogsParams.dump_request(params)
|
|
33
|
+
query = Telnyx::Internal::Util.encode_query_params(parsed)
|
|
34
|
+
@client.request(
|
|
35
|
+
method: :get,
|
|
36
|
+
path: ["compute/funcs/%1$s/logs", id],
|
|
37
|
+
query: query,
|
|
38
|
+
model: Telnyx::Models::Compute::FuncRetrieveLogsResponse,
|
|
39
|
+
options: options
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Returns aggregate request, latency, CPU, memory, and resource-limit metrics for
|
|
44
|
+
# a function over the requested window.
|
|
45
|
+
#
|
|
46
|
+
# @overload retrieve_metric_aggregates(id, end_time:, start_time:, filter_edge_site: nil, filter_namespace: nil, page_number: nil, page_size: nil, request_options: {})
|
|
47
|
+
#
|
|
48
|
+
# @param id [String] Function ID
|
|
49
|
+
#
|
|
50
|
+
# @param end_time [Time] Exclusive window end, UTC ISO 8601 with milliseconds
|
|
51
|
+
#
|
|
52
|
+
# @param start_time [Time] Inclusive window start, UTC ISO 8601 with milliseconds
|
|
53
|
+
#
|
|
54
|
+
# @param filter_edge_site [String] Edge site filter
|
|
55
|
+
#
|
|
56
|
+
# @param filter_namespace [String] Kubernetes namespace filter
|
|
57
|
+
#
|
|
58
|
+
# @param page_number [Integer]
|
|
59
|
+
#
|
|
60
|
+
# @param page_size [Integer]
|
|
61
|
+
#
|
|
62
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
63
|
+
#
|
|
64
|
+
# @return [Telnyx::Models::Compute::FuncRetrieveMetricAggregatesResponse]
|
|
65
|
+
#
|
|
66
|
+
# @see Telnyx::Models::Compute::FuncRetrieveMetricAggregatesParams
|
|
67
|
+
def retrieve_metric_aggregates(id, params)
|
|
68
|
+
parsed, options = Telnyx::Compute::FuncRetrieveMetricAggregatesParams.dump_request(params)
|
|
69
|
+
query = Telnyx::Internal::Util.encode_query_params(parsed)
|
|
70
|
+
@client.request(
|
|
71
|
+
method: :get,
|
|
72
|
+
path: ["compute/funcs/%1$s/metric_aggregates", id],
|
|
73
|
+
query: query.transform_keys(
|
|
74
|
+
filter_edge_site: "filter[edge_site]",
|
|
75
|
+
filter_namespace: "filter[namespace]",
|
|
76
|
+
page_number: "page[number]",
|
|
77
|
+
page_size: "page[size]"
|
|
78
|
+
),
|
|
79
|
+
model: Telnyx::Models::Compute::FuncRetrieveMetricAggregatesResponse,
|
|
80
|
+
options: options
|
|
81
|
+
)
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Lists a function's ship history newest first, including per-ship failure stage
|
|
85
|
+
# and reason when recorded.
|
|
86
|
+
#
|
|
87
|
+
# @overload retrieve_revisions(id, page_number: nil, page_size: nil, request_options: {})
|
|
88
|
+
#
|
|
89
|
+
# @param id [String] Function ID
|
|
90
|
+
#
|
|
91
|
+
# @param page_number [Integer]
|
|
92
|
+
#
|
|
93
|
+
# @param page_size [Integer]
|
|
94
|
+
#
|
|
95
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
96
|
+
#
|
|
97
|
+
# @return [Telnyx::Models::Compute::FuncRetrieveRevisionsResponse]
|
|
98
|
+
#
|
|
99
|
+
# @see Telnyx::Models::Compute::FuncRetrieveRevisionsParams
|
|
100
|
+
def retrieve_revisions(id, params = {})
|
|
101
|
+
parsed, options = Telnyx::Compute::FuncRetrieveRevisionsParams.dump_request(params)
|
|
102
|
+
query = Telnyx::Internal::Util.encode_query_params(parsed)
|
|
103
|
+
@client.request(
|
|
104
|
+
method: :get,
|
|
105
|
+
path: ["compute/funcs/%1$s/revisions", id],
|
|
106
|
+
query: query.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
107
|
+
model: Telnyx::Models::Compute::FuncRetrieveRevisionsResponse,
|
|
108
|
+
options: options
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Returns the latest ship outcome. The stage is `none` on success, `pending` while
|
|
113
|
+
# building, or a failure stage such as `build`, `platform`, `pre_build`, `deploy`,
|
|
114
|
+
# or `security_review`. This stage-neutral customer-facing path is an alias over
|
|
115
|
+
# the same inspection resource as `build_log_inspection`.
|
|
116
|
+
#
|
|
117
|
+
# @overload retrieve_ship_inspection(id, request_options: {})
|
|
118
|
+
#
|
|
119
|
+
# @param id [String] Function ID
|
|
120
|
+
#
|
|
121
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
122
|
+
#
|
|
123
|
+
# @return [Telnyx::Models::Compute::FuncRetrieveShipInspectionResponse]
|
|
124
|
+
#
|
|
125
|
+
# @see Telnyx::Models::Compute::FuncRetrieveShipInspectionParams
|
|
126
|
+
def retrieve_ship_inspection(id, params = {})
|
|
127
|
+
@client.request(
|
|
128
|
+
method: :get,
|
|
129
|
+
path: ["compute/funcs/%1$s/ship_inspection", id],
|
|
130
|
+
model: Telnyx::Models::Compute::FuncRetrieveShipInspectionResponse,
|
|
131
|
+
options: params[:request_options]
|
|
132
|
+
)
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# @api private
|
|
136
|
+
#
|
|
137
|
+
# @param client [Telnyx::Client]
|
|
138
|
+
def initialize(client:)
|
|
139
|
+
@client = client
|
|
140
|
+
@export = Telnyx::Resources::Compute::Funcs::Export.new(client: client)
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Compute
|
|
6
|
+
# @return [Telnyx::Resources::Compute::Funcs]
|
|
7
|
+
attr_reader :funcs
|
|
8
|
+
|
|
9
|
+
# @api private
|
|
10
|
+
#
|
|
11
|
+
# @param client [Telnyx::Client]
|
|
12
|
+
def initialize(client:)
|
|
13
|
+
@client = client
|
|
14
|
+
@funcs = Telnyx::Resources::Compute::Funcs.new(client: client)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -88,6 +88,26 @@ module Telnyx
|
|
|
88
88
|
)
|
|
89
89
|
end
|
|
90
90
|
|
|
91
|
+
# Returns the number of connections associated with the authenticated user,
|
|
92
|
+
# grouped by connection type, together with the connection limits that apply to
|
|
93
|
+
# the user. Forward-only connections are excluded from the counts.
|
|
94
|
+
#
|
|
95
|
+
# @overload retrieve_count(request_options: {})
|
|
96
|
+
#
|
|
97
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
98
|
+
#
|
|
99
|
+
# @return [Telnyx::Models::ConnectionRetrieveCountResponse]
|
|
100
|
+
#
|
|
101
|
+
# @see Telnyx::Models::ConnectionRetrieveCountParams
|
|
102
|
+
def retrieve_count(params = {})
|
|
103
|
+
@client.request(
|
|
104
|
+
method: :get,
|
|
105
|
+
path: "connections/count",
|
|
106
|
+
model: Telnyx::Models::ConnectionRetrieveCountResponse,
|
|
107
|
+
options: params[:request_options]
|
|
108
|
+
)
|
|
109
|
+
end
|
|
110
|
+
|
|
91
111
|
# @api private
|
|
92
112
|
#
|
|
93
113
|
# @param client [Telnyx::Client]
|
|
@@ -17,7 +17,7 @@ module Telnyx
|
|
|
17
17
|
#
|
|
18
18
|
# @param page_size [Integer]
|
|
19
19
|
#
|
|
20
|
-
# @param sort [Array<String>] Specifies the sort order for results. <br/>Example: sort=-created_at
|
|
20
|
+
# @param sort [Array<String>] Specifies the sort order for results. <br/>Example: sort=-created_at <br/>The va
|
|
21
21
|
#
|
|
22
22
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
23
|
#
|
|
@@ -172,11 +172,15 @@ module Telnyx
|
|
|
172
172
|
# Some parameter documentations has been truncated, see
|
|
173
173
|
# {Telnyx::Models::EmailMessageBatchParams} for more details.
|
|
174
174
|
#
|
|
175
|
-
# Creates up to
|
|
175
|
+
# Creates up to 1,000 email messages in a single request. Request-wide admission
|
|
176
|
+
# checks run first and can reject the whole batch before message creation. After
|
|
177
|
+
# those checks pass, each message is validated and sent independently; item-level
|
|
178
|
+
# failures do not affect other messages, and the processed batch returns 207
|
|
179
|
+
# Multi-Status.
|
|
176
180
|
#
|
|
177
181
|
# @overload batch(messages:, sandbox_mode: nil, idempotency_key: nil, request_options: {})
|
|
178
182
|
#
|
|
179
|
-
# @param messages [Array<Telnyx::Models::EmailMessageBatchParams::Message>] Body param
|
|
183
|
+
# @param messages [Array<Telnyx::Models::EmailMessageBatchParams::Message>] Body param: Array of email messages to send. Up to 1,000 messages per batch requ
|
|
180
184
|
#
|
|
181
185
|
# @param sandbox_mode [Boolean] Body param: Applies sandbox mode to all messages in the batch. Overrides any per
|
|
182
186
|
#
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
# Machine payment (MPP) account-credit operations. Fund your Telnyx account
|
|
6
|
+
# programmatically from a machine or agent using the Machine Payment Protocol, an
|
|
7
|
+
# HTTP-402 flow settled via Stripe or Tempo.
|
|
8
|
+
class MachinePayments
|
|
9
|
+
# Some parameter documentations has been truncated, see
|
|
10
|
+
# {Telnyx::Models::MachinePaymentAccountCreditParams} for more details.
|
|
11
|
+
#
|
|
12
|
+
# Creates an account credit using the Machine Payment Protocol (MPP), an HTTP-402
|
|
13
|
+
# payment flow for machines and agents.
|
|
14
|
+
#
|
|
15
|
+
# The flow has two steps. First, send an authenticated request with the
|
|
16
|
+
# `amount_usd` to credit; the response is `402 Payment Required` with one or more
|
|
17
|
+
# payment challenges (for example separate Tempo and Stripe challenges) in the
|
|
18
|
+
# `WWW-Authenticate` header. Second, retry the request with an
|
|
19
|
+
# `Authorization: Payment ...` credential constructed from the challenge; on
|
|
20
|
+
# success the response includes the credited transaction and a `Payment-Receipt`
|
|
21
|
+
# header.
|
|
22
|
+
#
|
|
23
|
+
# The credited account is never chosen by the request body: the initial request
|
|
24
|
+
# credits the account of the authenticated user, and a paid retry credits the
|
|
25
|
+
# account bound to the verified payment credential. The amount must be within the
|
|
26
|
+
# configured bounds (by default between 5.00 and 500.00 USD).
|
|
27
|
+
#
|
|
28
|
+
# Successful paid retries are idempotent — when Rails reaches its
|
|
29
|
+
# duplicate-transaction lookup for an already-recorded payment, it returns the
|
|
30
|
+
# existing transaction with `created: false` instead of crediting the account
|
|
31
|
+
# again. This deduplication applies to successful fulfillment: re-sending the same
|
|
32
|
+
# Stripe credential may instead be rejected by the upstream provider as an
|
|
33
|
+
# idempotent replay and return `402 Payment Required` rather than the existing
|
|
34
|
+
# transaction.
|
|
35
|
+
#
|
|
36
|
+
# > **Warning: the payment credential is bound to a specific Telnyx account ID.**
|
|
37
|
+
# > A payment is captured before the bound account is validated. If the credential
|
|
38
|
+
# > names an account that is missing, suspended, blocked, cancelled, dormant, or
|
|
39
|
+
# > ineligible for the tier, the payment is captured but **no account is
|
|
40
|
+
# > credited**. If the credential names a different but eligible account, that
|
|
41
|
+
# > account is credited — the service does not compare it against the payer's
|
|
42
|
+
# > account. There is **no automatic refund**: if the captured payment does not
|
|
43
|
+
# > credit the intended account, contact Telnyx support for remediation.
|
|
44
|
+
#
|
|
45
|
+
# @overload account_credit(amount_usd:, request_options: {})
|
|
46
|
+
#
|
|
47
|
+
# @param amount_usd [String] Amount to credit in USD, as a decimal string with up to two fractional digits (b
|
|
48
|
+
#
|
|
49
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
50
|
+
#
|
|
51
|
+
# @return [Telnyx::Models::MachinePaymentAccountCreditResponse]
|
|
52
|
+
#
|
|
53
|
+
# @see Telnyx::Models::MachinePaymentAccountCreditParams
|
|
54
|
+
def account_credit(params)
|
|
55
|
+
parsed, options = Telnyx::MachinePaymentAccountCreditParams.dump_request(params)
|
|
56
|
+
@client.request(
|
|
57
|
+
method: :post,
|
|
58
|
+
path: "machine-payments/account-credit",
|
|
59
|
+
body: parsed,
|
|
60
|
+
model: Telnyx::Models::MachinePaymentAccountCreditResponse,
|
|
61
|
+
options: options
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# @api private
|
|
66
|
+
#
|
|
67
|
+
# @param client [Telnyx::Client]
|
|
68
|
+
def initialize(client:)
|
|
69
|
+
@client = client
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -16,7 +16,7 @@ module Telnyx
|
|
|
16
16
|
# Creates a messaging profile that controls outbound sender selection, webhook
|
|
17
17
|
# delivery, and inbound message handling for associated numbers and short codes.
|
|
18
18
|
#
|
|
19
|
-
# @overload create(name:, whitelisted_destinations:, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, health_webhook_url: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, resource_group_id: nil, smart_encoding: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
|
|
19
|
+
# @overload create(name:, whitelisted_destinations:, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, features: nil, health_webhook_url: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, resource_group_id: nil, smart_encoding: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
|
|
20
20
|
#
|
|
21
21
|
# @param name [String] A user friendly name for the messaging profile.
|
|
22
22
|
#
|
|
@@ -32,6 +32,8 @@ module Telnyx
|
|
|
32
32
|
#
|
|
33
33
|
# @param enabled [Boolean] Specifies whether the messaging profile is enabled or not.
|
|
34
34
|
#
|
|
35
|
+
# @param features [Telnyx::Models::MessagingProfileFeatures, nil] Telnyx product features the messaging customer can enable on the messaging profi
|
|
36
|
+
#
|
|
35
37
|
# @param health_webhook_url [String, nil] A URL to receive health check webhooks for numbers in this profile.
|
|
36
38
|
#
|
|
37
39
|
# @param mms_fall_back_to_sms [Boolean] enables SMS fallback for MMS messages.
|
|
@@ -97,7 +99,7 @@ module Telnyx
|
|
|
97
99
|
# Updates the supplied settings on the specified messaging profile. Settings
|
|
98
100
|
# omitted from the request remain unchanged.
|
|
99
101
|
#
|
|
100
|
-
# @overload update(messaging_profile_id, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, redaction_enabled: nil, redaction_level: nil, smart_encoding: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
|
|
102
|
+
# @overload update(messaging_profile_id, ai_assistant_id: nil, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, features: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, redaction_enabled: nil, redaction_level: nil, smart_encoding: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
|
|
101
103
|
#
|
|
102
104
|
# @param messaging_profile_id [String] The id of the messaging profile to retrieve
|
|
103
105
|
#
|
|
@@ -111,6 +113,8 @@ module Telnyx
|
|
|
111
113
|
#
|
|
112
114
|
# @param enabled [Boolean] Specifies whether the messaging profile is enabled or not.
|
|
113
115
|
#
|
|
116
|
+
# @param features [Telnyx::Models::MessagingProfileFeatures, nil] Telnyx product features the messaging customer can enable on the messaging profi
|
|
117
|
+
#
|
|
114
118
|
# @param mms_fall_back_to_sms [Boolean] enables SMS fallback for MMS messages.
|
|
115
119
|
#
|
|
116
120
|
# @param mms_transcoding [Boolean] enables automated resizing of MMS media.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
# Noise suppression engines that can be selected when configuring noise
|
|
6
|
+
# suppression on voice connections.
|
|
7
|
+
class NoiseSuppressionEngines
|
|
8
|
+
# Returns all noise suppression engines available to the authenticated user.
|
|
9
|
+
# Engines gated behind a feature flag are included only when the flag is enabled
|
|
10
|
+
# for the user's account. Results are not paginated; the number of engines is
|
|
11
|
+
# expected to remain small.
|
|
12
|
+
#
|
|
13
|
+
# @overload list(request_options: {})
|
|
14
|
+
#
|
|
15
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
16
|
+
#
|
|
17
|
+
# @return [Telnyx::Models::NoiseSuppressionEngineListResponse]
|
|
18
|
+
#
|
|
19
|
+
# @see Telnyx::Models::NoiseSuppressionEngineListParams
|
|
20
|
+
def list(params = {})
|
|
21
|
+
@client.request(
|
|
22
|
+
method: :get,
|
|
23
|
+
path: "noise_suppression_engines",
|
|
24
|
+
model: Telnyx::Models::NoiseSuppressionEngineListResponse,
|
|
25
|
+
options: params[:request_options]
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @api private
|
|
30
|
+
#
|
|
31
|
+
# @param client [Telnyx::Client]
|
|
32
|
+
def initialize(client:)
|
|
33
|
+
@client = client
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -159,7 +159,7 @@ module Telnyx
|
|
|
159
159
|
# Dials a new participant into the specified conference and returns the created
|
|
160
160
|
# participant resource.
|
|
161
161
|
#
|
|
162
|
-
# @overload participants(conference_sid, account_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: {})
|
|
162
|
+
# @overload participants(conference_sid, account_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: {})
|
|
163
163
|
#
|
|
164
164
|
# @param conference_sid [String] Path param: The ConferenceSid that uniquely identifies a conference.
|
|
165
165
|
#
|
|
@@ -213,8 +213,22 @@ module Telnyx
|
|
|
213
213
|
#
|
|
214
214
|
# @param machine_detection [Symbol, Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::MachineDetection] Body param: Whether to detect if a human or an answering machine picked up the c
|
|
215
215
|
#
|
|
216
|
+
# @param machine_detection_beep_max_frequency [Integer] Body param: Highest frequency, in Hz, that a tone can reach and still be treated
|
|
217
|
+
#
|
|
218
|
+
# @param machine_detection_beep_min_frequency [Integer] Body param: Lowest frequency, in Hz, that a tone must reach to be treated as a b
|
|
219
|
+
#
|
|
220
|
+
# @param machine_detection_beep_min_tone_duration [Integer] Body param: Shortest tone, in milliseconds, that can be treated as a beep. Raisi
|
|
221
|
+
#
|
|
216
222
|
# @param machine_detection_beep_profile [Symbol, Telnyx::Models::Texml::Accounts::Conferences::ParticipantParticipantsParams::MachineDetectionBeepProfile] Body param: Selects which detectors must validate a beep. `both` requires the am
|
|
217
223
|
#
|
|
224
|
+
# @param machine_detection_beep_spectral_confirmation [Boolean] Body param: When enabled, a candidate beep must pass an additional spectral chec
|
|
225
|
+
#
|
|
226
|
+
# @param machine_detection_beep_spectral_min_purity [Float] Body param: Minimum spectral purity, from 0 to 1, for a tone to be treated as a
|
|
227
|
+
#
|
|
228
|
+
# @param machine_detection_beep_spectral_reject_fax_cng [Boolean] Body param: When enabled, the fax CNG tone is rejected rather than reported as a
|
|
229
|
+
#
|
|
230
|
+
# @param machine_detection_beep_spectral_window [Integer] Body param: Length of the spectral confirmation window, in milliseconds. Only us
|
|
231
|
+
#
|
|
218
232
|
# @param machine_detection_silence_timeout [Integer] Body param: If initial silence duration is greater than this value, consider it
|
|
219
233
|
#
|
|
220
234
|
# @param machine_detection_speech_end_threshold [Integer] Body param: Silence duration threshold after a greeting message or voice for it
|