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,103 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::BotSignup#create
|
|
6
|
+
class BotSignupCreateParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute bot_challenge_answer
|
|
11
|
+
# Answer to the issued bot challenge.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :bot_challenge_answer, String
|
|
15
|
+
|
|
16
|
+
# @!attribute bot_challenge_nonce
|
|
17
|
+
# Nonce from a previously issued bot challenge.
|
|
18
|
+
#
|
|
19
|
+
# @return [String]
|
|
20
|
+
required :bot_challenge_nonce, String
|
|
21
|
+
|
|
22
|
+
# @!attribute privacy_policy_url
|
|
23
|
+
# Must exactly match the privacy-policy URL returned by the challenge endpoint.
|
|
24
|
+
#
|
|
25
|
+
# @return [String]
|
|
26
|
+
required :privacy_policy_url, String
|
|
27
|
+
|
|
28
|
+
# @!attribute terms_and_conditions_url
|
|
29
|
+
# Must exactly match the terms-and-conditions URL returned by the challenge
|
|
30
|
+
# endpoint.
|
|
31
|
+
#
|
|
32
|
+
# @return [String]
|
|
33
|
+
required :terms_and_conditions_url, String
|
|
34
|
+
|
|
35
|
+
# @!attribute terms_of_service
|
|
36
|
+
# Must be true to accept the terms of service.
|
|
37
|
+
#
|
|
38
|
+
# @return [Boolean, Telnyx::Models::BotSignupCreateParams::TermsOfService]
|
|
39
|
+
required :terms_of_service, enum: -> { Telnyx::BotSignupCreateParams::TermsOfService }
|
|
40
|
+
|
|
41
|
+
# @!attribute email
|
|
42
|
+
# Email address for the new account. The magic link is sent here. May only be
|
|
43
|
+
# omitted when placeholder-email registration is enabled server-side.
|
|
44
|
+
#
|
|
45
|
+
# @return [String, nil]
|
|
46
|
+
optional :email, String
|
|
47
|
+
|
|
48
|
+
# @!attribute terms_and_conditions_eu_url
|
|
49
|
+
# EU terms-and-conditions URL. Required when EU consent enforcement is enabled.
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
optional :terms_and_conditions_eu_url, String
|
|
53
|
+
|
|
54
|
+
# @!attribute terms_of_service_eu
|
|
55
|
+
# EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
56
|
+
#
|
|
57
|
+
# @return [Boolean, Telnyx::Models::BotSignupCreateParams::TermsOfServiceEu, nil]
|
|
58
|
+
optional :terms_of_service_eu, enum: -> { Telnyx::BotSignupCreateParams::TermsOfServiceEu }
|
|
59
|
+
|
|
60
|
+
# @!method initialize(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: {})
|
|
61
|
+
# Some parameter documentations has been truncated, see
|
|
62
|
+
# {Telnyx::Models::BotSignupCreateParams} for more details.
|
|
63
|
+
#
|
|
64
|
+
# @param bot_challenge_answer [String] Answer to the issued bot challenge.
|
|
65
|
+
#
|
|
66
|
+
# @param bot_challenge_nonce [String] Nonce from a previously issued bot challenge.
|
|
67
|
+
#
|
|
68
|
+
# @param privacy_policy_url [String] Must exactly match the privacy-policy URL returned by the challenge endpoint.
|
|
69
|
+
#
|
|
70
|
+
# @param terms_and_conditions_url [String] Must exactly match the terms-and-conditions URL returned by the challenge endpoi
|
|
71
|
+
#
|
|
72
|
+
# @param terms_of_service [Boolean, Telnyx::Models::BotSignupCreateParams::TermsOfService] Must be true to accept the terms of service.
|
|
73
|
+
#
|
|
74
|
+
# @param email [String] Email address for the new account. The magic link is sent here. May only be omit
|
|
75
|
+
#
|
|
76
|
+
# @param terms_and_conditions_eu_url [String] EU terms-and-conditions URL. Required when EU consent enforcement is enabled.
|
|
77
|
+
#
|
|
78
|
+
# @param terms_of_service_eu [Boolean, Telnyx::Models::BotSignupCreateParams::TermsOfServiceEu] EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
79
|
+
#
|
|
80
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
81
|
+
|
|
82
|
+
# Must be true to accept the terms of service.
|
|
83
|
+
module TermsOfService
|
|
84
|
+
extend Telnyx::Internal::Type::Enum
|
|
85
|
+
|
|
86
|
+
TRUE = true
|
|
87
|
+
|
|
88
|
+
# @!method self.values
|
|
89
|
+
# @return [Array<Boolean>]
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# EU terms-of-service acceptance. Required when EU consent enforcement is enabled.
|
|
93
|
+
module TermsOfServiceEu
|
|
94
|
+
extend Telnyx::Internal::Type::Enum
|
|
95
|
+
|
|
96
|
+
TRUE = true
|
|
97
|
+
|
|
98
|
+
# @!method self.values
|
|
99
|
+
# @return [Array<Boolean>]
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::BotSignup#resend_magic_link
|
|
6
|
+
class BotSignupResendMagicLinkParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute email
|
|
11
|
+
# Email address of the bot signup account to resend the magic link to.
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :email, String
|
|
15
|
+
|
|
16
|
+
# @!method initialize(email:, request_options: {})
|
|
17
|
+
# @param email [String] Email address of the bot signup account to resend the magic link to.
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -159,11 +159,12 @@ module Telnyx
|
|
|
159
159
|
optional :dialogflow_config, -> { Telnyx::DialogflowConfig }
|
|
160
160
|
|
|
161
161
|
# @!attribute diversion
|
|
162
|
-
# The number
|
|
163
|
-
#
|
|
164
|
-
#
|
|
165
|
-
#
|
|
166
|
-
# you
|
|
162
|
+
# The `to` number of an active inbound call, in +E164 format. Telnyx checks
|
|
163
|
+
# whether there is currently an active inbound call where `to` matches this
|
|
164
|
+
# `diversion` value and `from` matches the `from` number supplied for this
|
|
165
|
+
# request. If such a call exists, the `from` number is treated as verified (since
|
|
166
|
+
# it is already on an active inbound call to you) and can be used as the caller id
|
|
167
|
+
# for this outbound call.
|
|
167
168
|
#
|
|
168
169
|
# @return [String, nil]
|
|
169
170
|
optional :diversion, String
|
|
@@ -555,7 +556,7 @@ module Telnyx
|
|
|
555
556
|
#
|
|
556
557
|
# @param dialogflow_config [Telnyx::Models::DialogflowConfig]
|
|
557
558
|
#
|
|
558
|
-
# @param diversion [String] The number
|
|
559
|
+
# @param diversion [String] The `to` number of an active inbound call, in +E164 format. Telnyx checks whethe
|
|
559
560
|
#
|
|
560
561
|
# @param enable_dialogflow [Boolean] Enables Dialogflow for the current call. The default value is false.
|
|
561
562
|
#
|
|
@@ -727,6 +728,59 @@ module Telnyx
|
|
|
727
728
|
optional :beep_detection_profile,
|
|
728
729
|
enum: -> { Telnyx::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile }
|
|
729
730
|
|
|
731
|
+
# @!attribute beep_max_frequency_hz
|
|
732
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
733
|
+
# Only used when beep detection is active.
|
|
734
|
+
#
|
|
735
|
+
# @return [Integer, nil]
|
|
736
|
+
optional :beep_max_frequency_hz, Integer
|
|
737
|
+
|
|
738
|
+
# @!attribute beep_min_frequency_hz
|
|
739
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
740
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
741
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
742
|
+
# used when beep detection is active.
|
|
743
|
+
#
|
|
744
|
+
# @return [Integer, nil]
|
|
745
|
+
optional :beep_min_frequency_hz, Integer
|
|
746
|
+
|
|
747
|
+
# @!attribute beep_min_tone_duration_millis
|
|
748
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
749
|
+
# rejects brief tones such as call-progress blips. Only used when beep detection
|
|
750
|
+
# is active.
|
|
751
|
+
#
|
|
752
|
+
# @return [Integer, nil]
|
|
753
|
+
optional :beep_min_tone_duration_millis, Integer
|
|
754
|
+
|
|
755
|
+
# @!attribute beep_spectral_confirmation
|
|
756
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
757
|
+
# is reported. Only used when beep detection is active.
|
|
758
|
+
#
|
|
759
|
+
# @return [Boolean, nil]
|
|
760
|
+
optional :beep_spectral_confirmation, Telnyx::Internal::Type::Boolean
|
|
761
|
+
|
|
762
|
+
# @!attribute beep_spectral_min_purity
|
|
763
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
764
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
765
|
+
# Only used when beep detection is active.
|
|
766
|
+
#
|
|
767
|
+
# @return [Float, nil]
|
|
768
|
+
optional :beep_spectral_min_purity, Float
|
|
769
|
+
|
|
770
|
+
# @!attribute beep_spectral_reject_fax_cng
|
|
771
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
772
|
+
# used when beep detection is active.
|
|
773
|
+
#
|
|
774
|
+
# @return [Boolean, nil]
|
|
775
|
+
optional :beep_spectral_reject_fax_cng, Telnyx::Internal::Type::Boolean
|
|
776
|
+
|
|
777
|
+
# @!attribute beep_spectral_window_millis
|
|
778
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
779
|
+
# detection is active.
|
|
780
|
+
#
|
|
781
|
+
# @return [Integer, nil]
|
|
782
|
+
optional :beep_spectral_window_millis, Integer
|
|
783
|
+
|
|
730
784
|
# @!attribute between_words_silence_millis
|
|
731
785
|
# Maximum threshold for silence between words.
|
|
732
786
|
#
|
|
@@ -784,7 +838,7 @@ module Telnyx
|
|
|
784
838
|
# @return [Integer, nil]
|
|
785
839
|
optional :total_analysis_time_millis, Integer
|
|
786
840
|
|
|
787
|
-
# @!method initialize(after_greeting_silence_millis: nil, beep_detection_profile: nil, between_words_silence_millis: nil, greeting_duration_millis: nil, greeting_silence_duration_millis: nil, greeting_total_analysis_time_millis: nil, initial_silence_millis: nil, maximum_number_of_words: nil, maximum_word_length_millis: nil, silence_threshold: nil, total_analysis_time_millis: nil)
|
|
841
|
+
# @!method initialize(after_greeting_silence_millis: nil, beep_detection_profile: nil, beep_max_frequency_hz: nil, beep_min_frequency_hz: nil, beep_min_tone_duration_millis: nil, beep_spectral_confirmation: nil, beep_spectral_min_purity: nil, beep_spectral_reject_fax_cng: nil, beep_spectral_window_millis: nil, between_words_silence_millis: nil, greeting_duration_millis: nil, greeting_silence_duration_millis: nil, greeting_total_analysis_time_millis: nil, initial_silence_millis: nil, maximum_number_of_words: nil, maximum_word_length_millis: nil, silence_threshold: nil, total_analysis_time_millis: nil)
|
|
788
842
|
# Some parameter documentations has been truncated, see
|
|
789
843
|
# {Telnyx::Models::CallDialParams::AnsweringMachineDetectionConfig} for more
|
|
790
844
|
# details.
|
|
@@ -798,6 +852,20 @@ module Telnyx
|
|
|
798
852
|
#
|
|
799
853
|
# @param beep_detection_profile [Symbol, Telnyx::Models::CallDialParams::AnsweringMachineDetectionConfig::BeepDetectionProfile] Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
800
854
|
#
|
|
855
|
+
# @param beep_max_frequency_hz [Integer] Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
856
|
+
#
|
|
857
|
+
# @param beep_min_frequency_hz [Integer] Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
858
|
+
#
|
|
859
|
+
# @param beep_min_tone_duration_millis [Integer] Shortest tone, in milliseconds, that can be treated as a beep. Raising it reject
|
|
860
|
+
#
|
|
861
|
+
# @param beep_spectral_confirmation [Boolean] When enabled, a candidate beep must pass an additional spectral check before it
|
|
862
|
+
#
|
|
863
|
+
# @param beep_spectral_min_purity [Float] Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep. Raisin
|
|
864
|
+
#
|
|
865
|
+
# @param beep_spectral_reject_fax_cng [Boolean] When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
866
|
+
#
|
|
867
|
+
# @param beep_spectral_window_millis [Integer] Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
868
|
+
#
|
|
801
869
|
# @param between_words_silence_millis [Integer] Maximum threshold for silence between words.
|
|
802
870
|
#
|
|
803
871
|
# @param greeting_duration_millis [Integer] Maximum threshold of a human greeting. If greeting longer than this value, consi
|
|
@@ -79,11 +79,12 @@ module Telnyx
|
|
|
79
79
|
optional :custom_headers, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::CustomSipHeader] }
|
|
80
80
|
|
|
81
81
|
# @!attribute diversion
|
|
82
|
-
# The number
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
# you
|
|
82
|
+
# The `to` number of an active inbound call, in +E164 format. Telnyx checks
|
|
83
|
+
# whether there is currently an active inbound call where `to` matches this
|
|
84
|
+
# `diversion` value and `from` matches the `from` number supplied for this
|
|
85
|
+
# request. If such a call exists, the `from` number is treated as verified (since
|
|
86
|
+
# it is already on an active inbound call to you) and can be used as the caller id
|
|
87
|
+
# for this outbound call.
|
|
87
88
|
#
|
|
88
89
|
# @return [String, nil]
|
|
89
90
|
optional :diversion, String
|
|
@@ -366,7 +367,7 @@ module Telnyx
|
|
|
366
367
|
#
|
|
367
368
|
# @param custom_headers [Array<Telnyx::Models::CustomSipHeader>] Custom headers to be added to the SIP INVITE.
|
|
368
369
|
#
|
|
369
|
-
# @param diversion [String] The number
|
|
370
|
+
# @param diversion [String] The `to` number of an active inbound call, in +E164 format. Telnyx checks whethe
|
|
370
371
|
#
|
|
371
372
|
# @param early_media [Boolean] If set to false, early media will not be passed to the originating leg.
|
|
372
373
|
#
|
|
@@ -474,6 +475,59 @@ module Telnyx
|
|
|
474
475
|
optional :beep_detection_profile,
|
|
475
476
|
enum: -> { Telnyx::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile }
|
|
476
477
|
|
|
478
|
+
# @!attribute beep_max_frequency_hz
|
|
479
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
480
|
+
# Only used when beep detection is active.
|
|
481
|
+
#
|
|
482
|
+
# @return [Integer, nil]
|
|
483
|
+
optional :beep_max_frequency_hz, Integer
|
|
484
|
+
|
|
485
|
+
# @!attribute beep_min_frequency_hz
|
|
486
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
487
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
488
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
489
|
+
# used when beep detection is active.
|
|
490
|
+
#
|
|
491
|
+
# @return [Integer, nil]
|
|
492
|
+
optional :beep_min_frequency_hz, Integer
|
|
493
|
+
|
|
494
|
+
# @!attribute beep_min_tone_duration_millis
|
|
495
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
496
|
+
# rejects brief tones such as call-progress blips. Only used when beep detection
|
|
497
|
+
# is active.
|
|
498
|
+
#
|
|
499
|
+
# @return [Integer, nil]
|
|
500
|
+
optional :beep_min_tone_duration_millis, Integer
|
|
501
|
+
|
|
502
|
+
# @!attribute beep_spectral_confirmation
|
|
503
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
504
|
+
# is reported. Only used when beep detection is active.
|
|
505
|
+
#
|
|
506
|
+
# @return [Boolean, nil]
|
|
507
|
+
optional :beep_spectral_confirmation, Telnyx::Internal::Type::Boolean
|
|
508
|
+
|
|
509
|
+
# @!attribute beep_spectral_min_purity
|
|
510
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
511
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
512
|
+
# Only used when beep detection is active.
|
|
513
|
+
#
|
|
514
|
+
# @return [Float, nil]
|
|
515
|
+
optional :beep_spectral_min_purity, Float
|
|
516
|
+
|
|
517
|
+
# @!attribute beep_spectral_reject_fax_cng
|
|
518
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
519
|
+
# used when beep detection is active.
|
|
520
|
+
#
|
|
521
|
+
# @return [Boolean, nil]
|
|
522
|
+
optional :beep_spectral_reject_fax_cng, Telnyx::Internal::Type::Boolean
|
|
523
|
+
|
|
524
|
+
# @!attribute beep_spectral_window_millis
|
|
525
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
526
|
+
# detection is active.
|
|
527
|
+
#
|
|
528
|
+
# @return [Integer, nil]
|
|
529
|
+
optional :beep_spectral_window_millis, Integer
|
|
530
|
+
|
|
477
531
|
# @!attribute between_words_silence_millis
|
|
478
532
|
# Maximum threshold for silence between words.
|
|
479
533
|
#
|
|
@@ -531,7 +585,7 @@ module Telnyx
|
|
|
531
585
|
# @return [Integer, nil]
|
|
532
586
|
optional :total_analysis_time_millis, Integer
|
|
533
587
|
|
|
534
|
-
# @!method initialize(after_greeting_silence_millis: nil, beep_detection_profile: nil, between_words_silence_millis: nil, greeting_duration_millis: nil, greeting_silence_duration_millis: nil, greeting_total_analysis_time_millis: nil, initial_silence_millis: nil, maximum_number_of_words: nil, maximum_word_length_millis: nil, silence_threshold: nil, total_analysis_time_millis: nil)
|
|
588
|
+
# @!method initialize(after_greeting_silence_millis: nil, beep_detection_profile: nil, beep_max_frequency_hz: nil, beep_min_frequency_hz: nil, beep_min_tone_duration_millis: nil, beep_spectral_confirmation: nil, beep_spectral_min_purity: nil, beep_spectral_reject_fax_cng: nil, beep_spectral_window_millis: nil, between_words_silence_millis: nil, greeting_duration_millis: nil, greeting_silence_duration_millis: nil, greeting_total_analysis_time_millis: nil, initial_silence_millis: nil, maximum_number_of_words: nil, maximum_word_length_millis: nil, silence_threshold: nil, total_analysis_time_millis: nil)
|
|
535
589
|
# Some parameter documentations has been truncated, see
|
|
536
590
|
# {Telnyx::Models::Calls::ActionTransferParams::AnsweringMachineDetectionConfig}
|
|
537
591
|
# for more details.
|
|
@@ -545,6 +599,20 @@ module Telnyx
|
|
|
545
599
|
#
|
|
546
600
|
# @param beep_detection_profile [Symbol, Telnyx::Models::Calls::ActionTransferParams::AnsweringMachineDetectionConfig::BeepDetectionProfile] Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
547
601
|
#
|
|
602
|
+
# @param beep_max_frequency_hz [Integer] Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
603
|
+
#
|
|
604
|
+
# @param beep_min_frequency_hz [Integer] Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
605
|
+
#
|
|
606
|
+
# @param beep_min_tone_duration_millis [Integer] Shortest tone, in milliseconds, that can be treated as a beep. Raising it reject
|
|
607
|
+
#
|
|
608
|
+
# @param beep_spectral_confirmation [Boolean] When enabled, a candidate beep must pass an additional spectral check before it
|
|
609
|
+
#
|
|
610
|
+
# @param beep_spectral_min_purity [Float] Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep. Raisin
|
|
611
|
+
#
|
|
612
|
+
# @param beep_spectral_reject_fax_cng [Boolean] When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
613
|
+
#
|
|
614
|
+
# @param beep_spectral_window_millis [Integer] Length of the spectral confirmation window, in milliseconds. Only used when beep
|
|
615
|
+
#
|
|
548
616
|
# @param between_words_silence_millis [Integer] Maximum threshold for silence between words.
|
|
549
617
|
#
|
|
550
618
|
# @param greeting_duration_millis [Integer] Maximum threshold of a human greeting. If greeting longer than this value, consi
|
|
@@ -13,7 +13,8 @@ module Telnyx
|
|
|
13
13
|
# hints `en`, `es`, `fr`, `de`, `hi`, `ru`, `pt`, `ja`, `it`, and `nl`. For
|
|
14
14
|
# `soniox/stt-rt-v4`, `auto` omits the language hint and lets Soniox auto-detect;
|
|
15
15
|
# ISO 639-1 codes (e.g. `en`, `es`) bias detection toward that language. For
|
|
16
|
-
# `assemblyai/universal-
|
|
16
|
+
# `assemblyai/universal-3-5-pro` (and its legacy alias
|
|
17
|
+
# `assemblyai/universal-streaming`), `auto` (or unset) enables native multilingual
|
|
17
18
|
# code-switching; ISO 639-1 codes (`en`, `es`, `de`, `fr`, `pt`, `it`, `tr`, `nl`,
|
|
18
19
|
# `sv`, `no`, `da`, `fi`, `hi`, `vi`, `ar`, `he`, `ja`, `zh`) bias the session to
|
|
19
20
|
# that language. For `humain/realtime`, supported values are `ar`, `en`,
|
|
@@ -37,12 +38,16 @@ module Telnyx
|
|
|
37
38
|
# - `deepgram/nova-3` and `deepgram/nova-2` for live streaming transcription.
|
|
38
39
|
# - `speechmatics/standard` and `speechmatics/enhanced` for live streaming
|
|
39
40
|
# transcription.
|
|
40
|
-
# - `assemblyai/universal-
|
|
41
|
+
# - `assemblyai/universal-3-5-pro` for live streaming transcription. The legacy
|
|
42
|
+
# alias `assemblyai/universal-streaming` is still accepted and resolves to the
|
|
43
|
+
# same model.
|
|
41
44
|
# - `xai/grok-stt` for live streaming transcription.
|
|
42
45
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
43
46
|
# automatic language detection.
|
|
44
47
|
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
45
48
|
# detection.
|
|
49
|
+
# - `omi-health/omi-med-stt-v1` for English-only medical transcription
|
|
50
|
+
# (Parakeet-based).
|
|
46
51
|
# - `humain/realtime` for live streaming transcription with native Arabic and
|
|
47
52
|
# Arabic/English code-switching support.
|
|
48
53
|
# - `reson8/turns` for live streaming turn-based transcription of 10 European
|
|
@@ -79,12 +84,16 @@ module Telnyx
|
|
|
79
84
|
# - `deepgram/nova-3` and `deepgram/nova-2` for live streaming transcription.
|
|
80
85
|
# - `speechmatics/standard` and `speechmatics/enhanced` for live streaming
|
|
81
86
|
# transcription.
|
|
82
|
-
# - `assemblyai/universal-
|
|
87
|
+
# - `assemblyai/universal-3-5-pro` for live streaming transcription. The legacy
|
|
88
|
+
# alias `assemblyai/universal-streaming` is still accepted and resolves to the
|
|
89
|
+
# same model.
|
|
83
90
|
# - `xai/grok-stt` for live streaming transcription.
|
|
84
91
|
# - `soniox/stt-rt-v4` for live streaming multilingual transcription with
|
|
85
92
|
# automatic language detection.
|
|
86
93
|
# - `nvidia/parakeet-v3` for multilingual transcription with automatic language
|
|
87
94
|
# detection.
|
|
95
|
+
# - `omi-health/omi-med-stt-v1` for English-only medical transcription
|
|
96
|
+
# (Parakeet-based).
|
|
88
97
|
# - `humain/realtime` for live streaming transcription with native Arabic and
|
|
89
98
|
# Arabic/English code-switching support.
|
|
90
99
|
# - `reson8/turns` for live streaming turn-based transcription of 10 European
|
|
@@ -108,10 +117,12 @@ module Telnyx
|
|
|
108
117
|
DEEPGRAM_NOVA_2 = :"deepgram/nova-2"
|
|
109
118
|
SPEECHMATICS_STANDARD = :"speechmatics/standard"
|
|
110
119
|
SPEECHMATICS_ENHANCED = :"speechmatics/enhanced"
|
|
120
|
+
ASSEMBLYAI_UNIVERSAL_3_5_PRO = :"assemblyai/universal-3-5-pro"
|
|
111
121
|
ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
|
|
112
122
|
XAI_GROK_STT = :"xai/grok-stt"
|
|
113
123
|
SONIOX_STT_RT_V4 = :"soniox/stt-rt-v4"
|
|
114
124
|
NVIDIA_PARAKEET_V3 = :"nvidia/parakeet-v3"
|
|
125
|
+
OMI_HEALTH_OMI_MED_STT_V1 = :"omi-health/omi-med-stt-v1"
|
|
115
126
|
HUMAIN_REALTIME = :"humain/realtime"
|
|
116
127
|
RESON8_TURNS = :"reson8/turns"
|
|
117
128
|
COHERE_AR_STT = :"cohere/ar-stt"
|
|
@@ -19,7 +19,8 @@ module Telnyx
|
|
|
19
19
|
enum: -> { Telnyx::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine }
|
|
20
20
|
|
|
21
21
|
# @!attribute transcription_model
|
|
22
|
-
# The model to use for transcription.
|
|
22
|
+
# The model to use for transcription. `assemblyai/universal-streaming` is a legacy
|
|
23
|
+
# alias of `assemblyai/universal-3-5-pro` and resolves to the same model.
|
|
23
24
|
#
|
|
24
25
|
# @return [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel, nil]
|
|
25
26
|
optional :transcription_model,
|
|
@@ -33,7 +34,7 @@ module Telnyx
|
|
|
33
34
|
#
|
|
34
35
|
# @param transcription_engine [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionEngine] Engine identifier for AssemblyAI transcription service
|
|
35
36
|
#
|
|
36
|
-
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel] The model to use for transcription.
|
|
37
|
+
# @param transcription_model [Symbol, Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig::TranscriptionModel] The model to use for transcription. `assemblyai/universal-streaming` is a legacy
|
|
37
38
|
|
|
38
39
|
# Engine identifier for AssemblyAI transcription service
|
|
39
40
|
#
|
|
@@ -47,12 +48,14 @@ module Telnyx
|
|
|
47
48
|
# @return [Array<Symbol>]
|
|
48
49
|
end
|
|
49
50
|
|
|
50
|
-
# The model to use for transcription.
|
|
51
|
+
# The model to use for transcription. `assemblyai/universal-streaming` is a legacy
|
|
52
|
+
# alias of `assemblyai/universal-3-5-pro` and resolves to the same model.
|
|
51
53
|
#
|
|
52
54
|
# @see Telnyx::Models::Calls::TranscriptionEngineAssemblyaiConfig#transcription_model
|
|
53
55
|
module TranscriptionModel
|
|
54
56
|
extend Telnyx::Internal::Type::Enum
|
|
55
57
|
|
|
58
|
+
ASSEMBLYAI_UNIVERSAL_3_5_PRO = :"assemblyai/universal-3-5-pro"
|
|
56
59
|
ASSEMBLYAI_UNIVERSAL_STREAMING = :"assemblyai/universal-streaming"
|
|
57
60
|
|
|
58
61
|
# @!method self.values
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Compute
|
|
6
|
+
# @see Telnyx::Resources::Compute::Funcs#retrieve_logs
|
|
7
|
+
class FuncRetrieveLogsParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute end_time
|
|
17
|
+
# Return records at or before this RFC 3339 timestamp.
|
|
18
|
+
#
|
|
19
|
+
# @return [Time, nil]
|
|
20
|
+
optional :end_time, Time
|
|
21
|
+
|
|
22
|
+
# @!attribute limit
|
|
23
|
+
# Maximum records to return.
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :limit, Integer
|
|
27
|
+
|
|
28
|
+
# @!attribute start_time
|
|
29
|
+
# Return records at or after this RFC 3339 timestamp.
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :start_time, Time
|
|
33
|
+
|
|
34
|
+
# @!attribute type
|
|
35
|
+
# Log stream to return.
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsParams::Type, nil]
|
|
38
|
+
optional :type, enum: -> { Telnyx::Compute::FuncRetrieveLogsParams::Type }
|
|
39
|
+
|
|
40
|
+
# @!method initialize(id:, end_time: nil, limit: nil, start_time: nil, type: nil, request_options: {})
|
|
41
|
+
# @param id [String]
|
|
42
|
+
#
|
|
43
|
+
# @param end_time [Time] Return records at or before this RFC 3339 timestamp.
|
|
44
|
+
#
|
|
45
|
+
# @param limit [Integer] Maximum records to return.
|
|
46
|
+
#
|
|
47
|
+
# @param start_time [Time] Return records at or after this RFC 3339 timestamp.
|
|
48
|
+
#
|
|
49
|
+
# @param type [Symbol, Telnyx::Models::Compute::FuncRetrieveLogsParams::Type] Log stream to return.
|
|
50
|
+
#
|
|
51
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
52
|
+
|
|
53
|
+
# Log stream to return.
|
|
54
|
+
module Type
|
|
55
|
+
extend Telnyx::Internal::Type::Enum
|
|
56
|
+
|
|
57
|
+
RUNTIME = :runtime
|
|
58
|
+
INVOCATIONS = :invocations
|
|
59
|
+
|
|
60
|
+
# @!method self.values
|
|
61
|
+
# @return [Array<Symbol>]
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|