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,179 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BotSignupCreateParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Telnyx::BotSignupCreateParams, Telnyx::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# Answer to the issued bot challenge.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :bot_challenge_answer
|
|
17
|
+
|
|
18
|
+
# Nonce from a previously issued bot challenge.
|
|
19
|
+
sig { returns(String) }
|
|
20
|
+
attr_accessor :bot_challenge_nonce
|
|
21
|
+
|
|
22
|
+
# Must exactly match the privacy-policy URL returned by the challenge endpoint.
|
|
23
|
+
sig { returns(String) }
|
|
24
|
+
attr_accessor :privacy_policy_url
|
|
25
|
+
|
|
26
|
+
# Must exactly match the terms-and-conditions URL returned by the challenge
|
|
27
|
+
# endpoint.
|
|
28
|
+
sig { returns(String) }
|
|
29
|
+
attr_accessor :terms_and_conditions_url
|
|
30
|
+
|
|
31
|
+
# Must be true to accept the terms of service.
|
|
32
|
+
sig { returns(Telnyx::BotSignupCreateParams::TermsOfService::OrBoolean) }
|
|
33
|
+
attr_accessor :terms_of_service
|
|
34
|
+
|
|
35
|
+
# Email address for the new account. The magic link is sent here. May only be
|
|
36
|
+
# omitted when placeholder-email registration is enabled server-side.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_reader :email
|
|
39
|
+
|
|
40
|
+
sig { params(email: String).void }
|
|
41
|
+
attr_writer :email
|
|
42
|
+
|
|
43
|
+
# EU terms-and-conditions URL. Required when EU consent enforcement is enabled.
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_reader :terms_and_conditions_eu_url
|
|
46
|
+
|
|
47
|
+
sig { params(terms_and_conditions_eu_url: String).void }
|
|
48
|
+
attr_writer :terms_and_conditions_eu_url
|
|
49
|
+
|
|
50
|
+
# EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
51
|
+
sig do
|
|
52
|
+
returns(
|
|
53
|
+
T.nilable(Telnyx::BotSignupCreateParams::TermsOfServiceEu::OrBoolean)
|
|
54
|
+
)
|
|
55
|
+
end
|
|
56
|
+
attr_reader :terms_of_service_eu
|
|
57
|
+
|
|
58
|
+
sig do
|
|
59
|
+
params(
|
|
60
|
+
terms_of_service_eu:
|
|
61
|
+
Telnyx::BotSignupCreateParams::TermsOfServiceEu::OrBoolean
|
|
62
|
+
).void
|
|
63
|
+
end
|
|
64
|
+
attr_writer :terms_of_service_eu
|
|
65
|
+
|
|
66
|
+
sig do
|
|
67
|
+
params(
|
|
68
|
+
bot_challenge_answer: String,
|
|
69
|
+
bot_challenge_nonce: String,
|
|
70
|
+
privacy_policy_url: String,
|
|
71
|
+
terms_and_conditions_url: String,
|
|
72
|
+
terms_of_service:
|
|
73
|
+
Telnyx::BotSignupCreateParams::TermsOfService::OrBoolean,
|
|
74
|
+
email: String,
|
|
75
|
+
terms_and_conditions_eu_url: String,
|
|
76
|
+
terms_of_service_eu:
|
|
77
|
+
Telnyx::BotSignupCreateParams::TermsOfServiceEu::OrBoolean,
|
|
78
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
79
|
+
).returns(T.attached_class)
|
|
80
|
+
end
|
|
81
|
+
def self.new(
|
|
82
|
+
# Answer to the issued bot challenge.
|
|
83
|
+
bot_challenge_answer:,
|
|
84
|
+
# Nonce from a previously issued bot challenge.
|
|
85
|
+
bot_challenge_nonce:,
|
|
86
|
+
# Must exactly match the privacy-policy URL returned by the challenge endpoint.
|
|
87
|
+
privacy_policy_url:,
|
|
88
|
+
# Must exactly match the terms-and-conditions URL returned by the challenge
|
|
89
|
+
# endpoint.
|
|
90
|
+
terms_and_conditions_url:,
|
|
91
|
+
# Must be true to accept the terms of service.
|
|
92
|
+
terms_of_service:,
|
|
93
|
+
# Email address for the new account. The magic link is sent here. May only be
|
|
94
|
+
# omitted when placeholder-email registration is enabled server-side.
|
|
95
|
+
email: nil,
|
|
96
|
+
# EU terms-and-conditions URL. Required when EU consent enforcement is enabled.
|
|
97
|
+
terms_and_conditions_eu_url: nil,
|
|
98
|
+
# EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
99
|
+
terms_of_service_eu: nil,
|
|
100
|
+
request_options: {}
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
sig do
|
|
105
|
+
override.returns(
|
|
106
|
+
{
|
|
107
|
+
bot_challenge_answer: String,
|
|
108
|
+
bot_challenge_nonce: String,
|
|
109
|
+
privacy_policy_url: String,
|
|
110
|
+
terms_and_conditions_url: String,
|
|
111
|
+
terms_of_service:
|
|
112
|
+
Telnyx::BotSignupCreateParams::TermsOfService::OrBoolean,
|
|
113
|
+
email: String,
|
|
114
|
+
terms_and_conditions_eu_url: String,
|
|
115
|
+
terms_of_service_eu:
|
|
116
|
+
Telnyx::BotSignupCreateParams::TermsOfServiceEu::OrBoolean,
|
|
117
|
+
request_options: Telnyx::RequestOptions
|
|
118
|
+
}
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
def to_hash
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Must be true to accept the terms of service.
|
|
125
|
+
module TermsOfService
|
|
126
|
+
extend Telnyx::Internal::Type::Enum
|
|
127
|
+
|
|
128
|
+
TaggedBoolean =
|
|
129
|
+
T.type_alias do
|
|
130
|
+
T.all(T::Boolean, Telnyx::BotSignupCreateParams::TermsOfService)
|
|
131
|
+
end
|
|
132
|
+
OrBoolean = T.type_alias { T::Boolean }
|
|
133
|
+
|
|
134
|
+
TRUE =
|
|
135
|
+
T.let(
|
|
136
|
+
true,
|
|
137
|
+
Telnyx::BotSignupCreateParams::TermsOfService::TaggedBoolean
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
sig do
|
|
141
|
+
override.returns(
|
|
142
|
+
T::Array[
|
|
143
|
+
Telnyx::BotSignupCreateParams::TermsOfService::TaggedBoolean
|
|
144
|
+
]
|
|
145
|
+
)
|
|
146
|
+
end
|
|
147
|
+
def self.values
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
152
|
+
module TermsOfServiceEu
|
|
153
|
+
extend Telnyx::Internal::Type::Enum
|
|
154
|
+
|
|
155
|
+
TaggedBoolean =
|
|
156
|
+
T.type_alias do
|
|
157
|
+
T.all(T::Boolean, Telnyx::BotSignupCreateParams::TermsOfServiceEu)
|
|
158
|
+
end
|
|
159
|
+
OrBoolean = T.type_alias { T::Boolean }
|
|
160
|
+
|
|
161
|
+
TRUE =
|
|
162
|
+
T.let(
|
|
163
|
+
true,
|
|
164
|
+
Telnyx::BotSignupCreateParams::TermsOfServiceEu::TaggedBoolean
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
sig do
|
|
168
|
+
override.returns(
|
|
169
|
+
T::Array[
|
|
170
|
+
Telnyx::BotSignupCreateParams::TermsOfServiceEu::TaggedBoolean
|
|
171
|
+
]
|
|
172
|
+
)
|
|
173
|
+
end
|
|
174
|
+
def self.values
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class BotSignupResendMagicLinkParams < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Telnyx::BotSignupResendMagicLinkParams,
|
|
13
|
+
Telnyx::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Email address of the bot signup account to resend the magic link to.
|
|
18
|
+
sig { returns(String) }
|
|
19
|
+
attr_accessor :email
|
|
20
|
+
|
|
21
|
+
sig do
|
|
22
|
+
params(
|
|
23
|
+
email: String,
|
|
24
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
25
|
+
).returns(T.attached_class)
|
|
26
|
+
end
|
|
27
|
+
def self.new(
|
|
28
|
+
# Email address of the bot signup account to resend the magic link to.
|
|
29
|
+
email:,
|
|
30
|
+
request_options: {}
|
|
31
|
+
)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
sig do
|
|
35
|
+
override.returns(
|
|
36
|
+
{ email: String, request_options: Telnyx::RequestOptions }
|
|
37
|
+
)
|
|
38
|
+
end
|
|
39
|
+
def to_hash
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -202,11 +202,12 @@ module Telnyx
|
|
|
202
202
|
sig { params(dialogflow_config: Telnyx::DialogflowConfig::OrHash).void }
|
|
203
203
|
attr_writer :dialogflow_config
|
|
204
204
|
|
|
205
|
-
# The number
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
#
|
|
209
|
-
# you
|
|
205
|
+
# The `to` number of an active inbound call, in +E164 format. Telnyx checks
|
|
206
|
+
# whether there is currently an active inbound call where `to` matches this
|
|
207
|
+
# `diversion` value and `from` matches the `from` number supplied for this
|
|
208
|
+
# request. If such a call exists, the `from` number is treated as verified (since
|
|
209
|
+
# it is already on an active inbound call to you) and can be used as the caller id
|
|
210
|
+
# for this outbound call.
|
|
210
211
|
sig { returns(T.nilable(String)) }
|
|
211
212
|
attr_reader :diversion
|
|
212
213
|
|
|
@@ -869,11 +870,12 @@ module Telnyx
|
|
|
869
870
|
# webhook.
|
|
870
871
|
deepfake_detection: nil,
|
|
871
872
|
dialogflow_config: nil,
|
|
872
|
-
# The number
|
|
873
|
-
#
|
|
874
|
-
#
|
|
875
|
-
#
|
|
876
|
-
# you
|
|
873
|
+
# The `to` number of an active inbound call, in +E164 format. Telnyx checks
|
|
874
|
+
# whether there is currently an active inbound call where `to` matches this
|
|
875
|
+
# `diversion` value and `from` matches the `from` number supplied for this
|
|
876
|
+
# request. If such a call exists, the `from` number is treated as verified (since
|
|
877
|
+
# it is already on an active inbound call to you) and can be used as the caller id
|
|
878
|
+
# for this outbound call.
|
|
877
879
|
diversion: nil,
|
|
878
880
|
# Enables Dialogflow for the current call. The default value is false.
|
|
879
881
|
enable_dialogflow: nil,
|
|
@@ -1256,6 +1258,66 @@ module Telnyx
|
|
|
1256
1258
|
end
|
|
1257
1259
|
attr_writer :beep_detection_profile
|
|
1258
1260
|
|
|
1261
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
1262
|
+
# Only used when beep detection is active.
|
|
1263
|
+
sig { returns(T.nilable(Integer)) }
|
|
1264
|
+
attr_reader :beep_max_frequency_hz
|
|
1265
|
+
|
|
1266
|
+
sig { params(beep_max_frequency_hz: Integer).void }
|
|
1267
|
+
attr_writer :beep_max_frequency_hz
|
|
1268
|
+
|
|
1269
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
1270
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
1271
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
1272
|
+
# used when beep detection is active.
|
|
1273
|
+
sig { returns(T.nilable(Integer)) }
|
|
1274
|
+
attr_reader :beep_min_frequency_hz
|
|
1275
|
+
|
|
1276
|
+
sig { params(beep_min_frequency_hz: Integer).void }
|
|
1277
|
+
attr_writer :beep_min_frequency_hz
|
|
1278
|
+
|
|
1279
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
1280
|
+
# rejects brief tones such as call-progress blips. Only used when beep detection
|
|
1281
|
+
# is active.
|
|
1282
|
+
sig { returns(T.nilable(Integer)) }
|
|
1283
|
+
attr_reader :beep_min_tone_duration_millis
|
|
1284
|
+
|
|
1285
|
+
sig { params(beep_min_tone_duration_millis: Integer).void }
|
|
1286
|
+
attr_writer :beep_min_tone_duration_millis
|
|
1287
|
+
|
|
1288
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
1289
|
+
# is reported. Only used when beep detection is active.
|
|
1290
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
1291
|
+
attr_reader :beep_spectral_confirmation
|
|
1292
|
+
|
|
1293
|
+
sig { params(beep_spectral_confirmation: T::Boolean).void }
|
|
1294
|
+
attr_writer :beep_spectral_confirmation
|
|
1295
|
+
|
|
1296
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
1297
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
1298
|
+
# Only used when beep detection is active.
|
|
1299
|
+
sig { returns(T.nilable(Float)) }
|
|
1300
|
+
attr_reader :beep_spectral_min_purity
|
|
1301
|
+
|
|
1302
|
+
sig { params(beep_spectral_min_purity: Float).void }
|
|
1303
|
+
attr_writer :beep_spectral_min_purity
|
|
1304
|
+
|
|
1305
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1306
|
+
# used when beep detection is active.
|
|
1307
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
1308
|
+
attr_reader :beep_spectral_reject_fax_cng
|
|
1309
|
+
|
|
1310
|
+
sig { params(beep_spectral_reject_fax_cng: T::Boolean).void }
|
|
1311
|
+
attr_writer :beep_spectral_reject_fax_cng
|
|
1312
|
+
|
|
1313
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
1314
|
+
# detection is active.
|
|
1315
|
+
sig { returns(T.nilable(Integer)) }
|
|
1316
|
+
attr_reader :beep_spectral_window_millis
|
|
1317
|
+
|
|
1318
|
+
sig { params(beep_spectral_window_millis: Integer).void }
|
|
1319
|
+
attr_writer :beep_spectral_window_millis
|
|
1320
|
+
|
|
1259
1321
|
# Maximum threshold for silence between words.
|
|
1260
1322
|
sig { returns(T.nilable(Integer)) }
|
|
1261
1323
|
attr_reader :between_words_silence_millis
|
|
@@ -1331,6 +1393,13 @@ module Telnyx
|
|
|
1331
1393
|
after_greeting_silence_millis: Integer,
|
|
1332
1394
|
beep_detection_profile:
|
|
1333
1395
|
Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
|
|
1396
|
+
beep_max_frequency_hz: Integer,
|
|
1397
|
+
beep_min_frequency_hz: Integer,
|
|
1398
|
+
beep_min_tone_duration_millis: Integer,
|
|
1399
|
+
beep_spectral_confirmation: T::Boolean,
|
|
1400
|
+
beep_spectral_min_purity: Float,
|
|
1401
|
+
beep_spectral_reject_fax_cng: T::Boolean,
|
|
1402
|
+
beep_spectral_window_millis: Integer,
|
|
1334
1403
|
between_words_silence_millis: Integer,
|
|
1335
1404
|
greeting_duration_millis: Integer,
|
|
1336
1405
|
greeting_silence_duration_millis: Integer,
|
|
@@ -1350,6 +1419,31 @@ module Telnyx
|
|
|
1350
1419
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
1351
1420
|
# beeps whose volume is too unsteady for the default profile.
|
|
1352
1421
|
beep_detection_profile: nil,
|
|
1422
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
1423
|
+
# Only used when beep detection is active.
|
|
1424
|
+
beep_max_frequency_hz: nil,
|
|
1425
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
1426
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
1427
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
1428
|
+
# used when beep detection is active.
|
|
1429
|
+
beep_min_frequency_hz: nil,
|
|
1430
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
1431
|
+
# rejects brief tones such as call-progress blips. Only used when beep detection
|
|
1432
|
+
# is active.
|
|
1433
|
+
beep_min_tone_duration_millis: nil,
|
|
1434
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
1435
|
+
# is reported. Only used when beep detection is active.
|
|
1436
|
+
beep_spectral_confirmation: nil,
|
|
1437
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
1438
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
1439
|
+
# Only used when beep detection is active.
|
|
1440
|
+
beep_spectral_min_purity: nil,
|
|
1441
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1442
|
+
# used when beep detection is active.
|
|
1443
|
+
beep_spectral_reject_fax_cng: nil,
|
|
1444
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
1445
|
+
# detection is active.
|
|
1446
|
+
beep_spectral_window_millis: nil,
|
|
1353
1447
|
# Maximum threshold for silence between words.
|
|
1354
1448
|
between_words_silence_millis: nil,
|
|
1355
1449
|
# Maximum threshold of a human greeting. If greeting longer than this value,
|
|
@@ -1380,6 +1474,13 @@ module Telnyx
|
|
|
1380
1474
|
after_greeting_silence_millis: Integer,
|
|
1381
1475
|
beep_detection_profile:
|
|
1382
1476
|
Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
|
|
1477
|
+
beep_max_frequency_hz: Integer,
|
|
1478
|
+
beep_min_frequency_hz: Integer,
|
|
1479
|
+
beep_min_tone_duration_millis: Integer,
|
|
1480
|
+
beep_spectral_confirmation: T::Boolean,
|
|
1481
|
+
beep_spectral_min_purity: Float,
|
|
1482
|
+
beep_spectral_reject_fax_cng: T::Boolean,
|
|
1483
|
+
beep_spectral_window_millis: Integer,
|
|
1383
1484
|
between_words_silence_millis: Integer,
|
|
1384
1485
|
greeting_duration_millis: Integer,
|
|
1385
1486
|
greeting_silence_duration_millis: Integer,
|
|
@@ -109,11 +109,12 @@ module Telnyx
|
|
|
109
109
|
end
|
|
110
110
|
attr_writer :custom_headers
|
|
111
111
|
|
|
112
|
-
# The number
|
|
113
|
-
#
|
|
114
|
-
#
|
|
115
|
-
#
|
|
116
|
-
# you
|
|
112
|
+
# The `to` number of an active inbound call, in +E164 format. Telnyx checks
|
|
113
|
+
# whether there is currently an active inbound call where `to` matches this
|
|
114
|
+
# `diversion` value and `from` matches the `from` number supplied for this
|
|
115
|
+
# request. If such a call exists, the `from` number is treated as verified (since
|
|
116
|
+
# it is already on an active inbound call to you) and can be used as the caller id
|
|
117
|
+
# for this outbound call.
|
|
117
118
|
sig { returns(T.nilable(String)) }
|
|
118
119
|
attr_reader :diversion
|
|
119
120
|
|
|
@@ -646,11 +647,12 @@ module Telnyx
|
|
|
646
647
|
command_id: nil,
|
|
647
648
|
# Custom headers to be added to the SIP INVITE.
|
|
648
649
|
custom_headers: nil,
|
|
649
|
-
# The number
|
|
650
|
-
#
|
|
651
|
-
#
|
|
652
|
-
#
|
|
653
|
-
# you
|
|
650
|
+
# The `to` number of an active inbound call, in +E164 format. Telnyx checks
|
|
651
|
+
# whether there is currently an active inbound call where `to` matches this
|
|
652
|
+
# `diversion` value and `from` matches the `from` number supplied for this
|
|
653
|
+
# request. If such a call exists, the `from` number is treated as verified (since
|
|
654
|
+
# it is already on an active inbound call to you) and can be used as the caller id
|
|
655
|
+
# for this outbound call.
|
|
654
656
|
diversion: nil,
|
|
655
657
|
# If set to false, early media will not be passed to the originating leg.
|
|
656
658
|
early_media: nil,
|
|
@@ -947,6 +949,66 @@ module Telnyx
|
|
|
947
949
|
end
|
|
948
950
|
attr_writer :beep_detection_profile
|
|
949
951
|
|
|
952
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
953
|
+
# Only used when beep detection is active.
|
|
954
|
+
sig { returns(T.nilable(Integer)) }
|
|
955
|
+
attr_reader :beep_max_frequency_hz
|
|
956
|
+
|
|
957
|
+
sig { params(beep_max_frequency_hz: Integer).void }
|
|
958
|
+
attr_writer :beep_max_frequency_hz
|
|
959
|
+
|
|
960
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
961
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
962
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
963
|
+
# used when beep detection is active.
|
|
964
|
+
sig { returns(T.nilable(Integer)) }
|
|
965
|
+
attr_reader :beep_min_frequency_hz
|
|
966
|
+
|
|
967
|
+
sig { params(beep_min_frequency_hz: Integer).void }
|
|
968
|
+
attr_writer :beep_min_frequency_hz
|
|
969
|
+
|
|
970
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
971
|
+
# rejects brief tones such as call-progress blips. Only used when beep detection
|
|
972
|
+
# is active.
|
|
973
|
+
sig { returns(T.nilable(Integer)) }
|
|
974
|
+
attr_reader :beep_min_tone_duration_millis
|
|
975
|
+
|
|
976
|
+
sig { params(beep_min_tone_duration_millis: Integer).void }
|
|
977
|
+
attr_writer :beep_min_tone_duration_millis
|
|
978
|
+
|
|
979
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
980
|
+
# is reported. Only used when beep detection is active.
|
|
981
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
982
|
+
attr_reader :beep_spectral_confirmation
|
|
983
|
+
|
|
984
|
+
sig { params(beep_spectral_confirmation: T::Boolean).void }
|
|
985
|
+
attr_writer :beep_spectral_confirmation
|
|
986
|
+
|
|
987
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
988
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
989
|
+
# Only used when beep detection is active.
|
|
990
|
+
sig { returns(T.nilable(Float)) }
|
|
991
|
+
attr_reader :beep_spectral_min_purity
|
|
992
|
+
|
|
993
|
+
sig { params(beep_spectral_min_purity: Float).void }
|
|
994
|
+
attr_writer :beep_spectral_min_purity
|
|
995
|
+
|
|
996
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
997
|
+
# used when beep detection is active.
|
|
998
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
999
|
+
attr_reader :beep_spectral_reject_fax_cng
|
|
1000
|
+
|
|
1001
|
+
sig { params(beep_spectral_reject_fax_cng: T::Boolean).void }
|
|
1002
|
+
attr_writer :beep_spectral_reject_fax_cng
|
|
1003
|
+
|
|
1004
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
1005
|
+
# detection is active.
|
|
1006
|
+
sig { returns(T.nilable(Integer)) }
|
|
1007
|
+
attr_reader :beep_spectral_window_millis
|
|
1008
|
+
|
|
1009
|
+
sig { params(beep_spectral_window_millis: Integer).void }
|
|
1010
|
+
attr_writer :beep_spectral_window_millis
|
|
1011
|
+
|
|
950
1012
|
# Maximum threshold for silence between words.
|
|
951
1013
|
sig { returns(T.nilable(Integer)) }
|
|
952
1014
|
attr_reader :between_words_silence_millis
|
|
@@ -1022,6 +1084,13 @@ module Telnyx
|
|
|
1022
1084
|
after_greeting_silence_millis: Integer,
|
|
1023
1085
|
beep_detection_profile:
|
|
1024
1086
|
Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
|
|
1087
|
+
beep_max_frequency_hz: Integer,
|
|
1088
|
+
beep_min_frequency_hz: Integer,
|
|
1089
|
+
beep_min_tone_duration_millis: Integer,
|
|
1090
|
+
beep_spectral_confirmation: T::Boolean,
|
|
1091
|
+
beep_spectral_min_purity: Float,
|
|
1092
|
+
beep_spectral_reject_fax_cng: T::Boolean,
|
|
1093
|
+
beep_spectral_window_millis: Integer,
|
|
1025
1094
|
between_words_silence_millis: Integer,
|
|
1026
1095
|
greeting_duration_millis: Integer,
|
|
1027
1096
|
greeting_silence_duration_millis: Integer,
|
|
@@ -1041,6 +1110,31 @@ module Telnyx
|
|
|
1041
1110
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
1042
1111
|
# beeps whose volume is too unsteady for the default profile.
|
|
1043
1112
|
beep_detection_profile: nil,
|
|
1113
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
1114
|
+
# Only used when beep detection is active.
|
|
1115
|
+
beep_max_frequency_hz: nil,
|
|
1116
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
1117
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
1118
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
1119
|
+
# used when beep detection is active.
|
|
1120
|
+
beep_min_frequency_hz: nil,
|
|
1121
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
1122
|
+
# rejects brief tones such as call-progress blips. Only used when beep detection
|
|
1123
|
+
# is active.
|
|
1124
|
+
beep_min_tone_duration_millis: nil,
|
|
1125
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
1126
|
+
# is reported. Only used when beep detection is active.
|
|
1127
|
+
beep_spectral_confirmation: nil,
|
|
1128
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
1129
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
1130
|
+
# Only used when beep detection is active.
|
|
1131
|
+
beep_spectral_min_purity: nil,
|
|
1132
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
1133
|
+
# used when beep detection is active.
|
|
1134
|
+
beep_spectral_reject_fax_cng: nil,
|
|
1135
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
1136
|
+
# detection is active.
|
|
1137
|
+
beep_spectral_window_millis: nil,
|
|
1044
1138
|
# Maximum threshold for silence between words.
|
|
1045
1139
|
between_words_silence_millis: nil,
|
|
1046
1140
|
# Maximum threshold of a human greeting. If greeting longer than this value,
|
|
@@ -1071,6 +1165,13 @@ module Telnyx
|
|
|
1071
1165
|
after_greeting_silence_millis: Integer,
|
|
1072
1166
|
beep_detection_profile:
|
|
1073
1167
|
Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile::OrSymbol,
|
|
1168
|
+
beep_max_frequency_hz: Integer,
|
|
1169
|
+
beep_min_frequency_hz: Integer,
|
|
1170
|
+
beep_min_tone_duration_millis: Integer,
|
|
1171
|
+
beep_spectral_confirmation: T::Boolean,
|
|
1172
|
+
beep_spectral_min_purity: Float,
|
|
1173
|
+
beep_spectral_reject_fax_cng: T::Boolean,
|
|
1174
|
+
beep_spectral_window_millis: Integer,
|
|
1074
1175
|
between_words_silence_millis: Integer,
|
|
1075
1176
|
greeting_duration_millis: Integer,
|
|
1076
1177
|
greeting_silence_duration_millis: Integer,
|
|
@@ -17,7 +17,8 @@ module Telnyx
|
|
|
17
17
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
18
18
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
19
19
|
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
20
|
-
# `assemblyai/universal-
|
|
20
|
+
# `assemblyai/universal-3-5-pro` (and its legacy alias
|
|
21
|
+
# `assemblyai/universal-streaming`), `auto` (or unset) enables native multilingual
|
|
21
22
|
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
22
23
|
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
23
24
|
# that language. For `humain/realtime`, supported values are `ar`, `en`,
|
|
@@ -42,12 +43,16 @@ module Telnyx
|
|
|
42
43
|
# - `deepgram/nova-3` and `deepgram/nova-2` for live streaming transcription.
|
|
43
44
|
# - `speechmatics/standard` and `speechmatics/enhanced` for live streaming
|
|
44
45
|
# transcription.
|
|
45
|
-
# - `assemblyai/universal-
|
|
46
|
+
# - `assemblyai/universal-3-5-pro` for live streaming transcription. The legacy
|
|
47
|
+
# alias `assemblyai/universal-streaming` is still accepted and resolves to the
|
|
48
|
+
# same model.
|
|
46
49
|
# - `xai/grok-stt` for live streaming transcription.
|
|
47
50
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
48
51
|
# automatic language detection.
|
|
49
52
|
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
50
53
|
# detection.
|
|
54
|
+
# - `omi-health/omi-med-stt-v1` for English-only medical transcription
|
|
55
|
+
# (Parakeet-based).
|
|
51
56
|
# - `humain/realtime` for live streaming transcription with native Arabic and
|
|
52
57
|
# Arabic/English code-switching support.
|
|
53
58
|
# - `reson8/turns` for live streaming turn-based transcription of 10 European
|
|
@@ -93,7 +98,8 @@ module Telnyx
|
|
|
93
98
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
94
99
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
95
100
|
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
96
|
-
# `assemblyai/universal-
|
|
101
|
+
# `assemblyai/universal-3-5-pro` (and its legacy alias
|
|
102
|
+
# `assemblyai/universal-streaming`), `auto` (or unset) enables native multilingual
|
|
97
103
|
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
98
104
|
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
99
105
|
# that language. For `humain/realtime`, supported values are `ar`, `en`,
|
|
@@ -113,12 +119,16 @@ module Telnyx
|
|
|
113
119
|
# - `deepgram/nova-3` and `deepgram/nova-2` for live streaming transcription.
|
|
114
120
|
# - `speechmatics/standard` and `speechmatics/enhanced` for live streaming
|
|
115
121
|
# transcription.
|
|
116
|
-
# - `assemblyai/universal-
|
|
122
|
+
# - `assemblyai/universal-3-5-pro` for live streaming transcription. The legacy
|
|
123
|
+
# alias `assemblyai/universal-streaming` is still accepted and resolves to the
|
|
124
|
+
# same model.
|
|
117
125
|
# - `xai/grok-stt` for live streaming transcription.
|
|
118
126
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
119
127
|
# automatic language detection.
|
|
120
128
|
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
121
129
|
# detection.
|
|
130
|
+
# - `omi-health/omi-med-stt-v1` for English-only medical transcription
|
|
131
|
+
# (Parakeet-based).
|
|
122
132
|
# - `humain/realtime` for live streaming transcription with native Arabic and
|
|
123
133
|
# Arabic/English code-switching support.
|
|
124
134
|
# - `reson8/turns` for live streaming turn-based transcription of 10 European
|
|
@@ -153,12 +163,16 @@ module Telnyx
|
|
|
153
163
|
# - `deepgram/nova-3` and `deepgram/nova-2` for live streaming transcription.
|
|
154
164
|
# - `speechmatics/standard` and `speechmatics/enhanced` for live streaming
|
|
155
165
|
# transcription.
|
|
156
|
-
# - `assemblyai/universal-
|
|
166
|
+
# - `assemblyai/universal-3-5-pro` for live streaming transcription. The legacy
|
|
167
|
+
# alias `assemblyai/universal-streaming` is still accepted and resolves to the
|
|
168
|
+
# same model.
|
|
157
169
|
# - `xai/grok-stt` for live streaming transcription.
|
|
158
170
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
159
171
|
# automatic language detection.
|
|
160
172
|
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
161
173
|
# detection.
|
|
174
|
+
# - `omi-health/omi-med-stt-v1` for English-only medical transcription
|
|
175
|
+
# (Parakeet-based).
|
|
162
176
|
# - `humain/realtime` for live streaming transcription with native Arabic and
|
|
163
177
|
# Arabic/English code-switching support.
|
|
164
178
|
# - `reson8/turns` for live streaming turn-based transcription of 10 European
|
|
@@ -210,6 +224,11 @@ module Telnyx
|
|
|
210
224
|
:"speechmatics/enhanced",
|
|
211
225
|
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
212
226
|
)
|
|
227
|
+
ASSEMBLYAI_UNIVERSAL_3_5_PRO =
|
|
228
|
+
T.let(
|
|
229
|
+
:"assemblyai/universal-3-5-pro",
|
|
230
|
+
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
231
|
+
)
|
|
213
232
|
ASSEMBLYAI_UNIVERSAL_STREAMING =
|
|
214
233
|
T.let(
|
|
215
234
|
:"assemblyai/universal-streaming",
|
|
@@ -230,6 +249,11 @@ module Telnyx
|
|
|
230
249
|
:"nvidia/parakeet-v3",
|
|
231
250
|
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
232
251
|
)
|
|
252
|
+
OMI_HEALTH_OMI_MED_STT_V1 =
|
|
253
|
+
T.let(
|
|
254
|
+
:"omi-health/omi-med-stt-v1",
|
|
255
|
+
Telnyx::Calls::TranscriptionConfig::Model::TaggedSymbol
|
|
256
|
+
)
|
|
233
257
|
HUMAIN_REALTIME =
|
|
234
258
|
T.let(
|
|
235
259
|
:"humain/realtime",
|