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
|
@@ -21,6 +21,7 @@ module Telnyx
|
|
|
21
21
|
daily_spend_limit: String,
|
|
22
22
|
daily_spend_limit_enabled: T::Boolean,
|
|
23
23
|
enabled: T::Boolean,
|
|
24
|
+
features: T.nilable(Telnyx::MessagingProfileFeatures::OrHash),
|
|
24
25
|
health_webhook_url: T.nilable(String),
|
|
25
26
|
mms_fall_back_to_sms: T::Boolean,
|
|
26
27
|
mms_transcoding: T::Boolean,
|
|
@@ -56,6 +57,10 @@ module Telnyx
|
|
|
56
57
|
daily_spend_limit_enabled: nil,
|
|
57
58
|
# Specifies whether the messaging profile is enabled or not.
|
|
58
59
|
enabled: nil,
|
|
60
|
+
# Telnyx product features the messaging customer can enable on the messaging
|
|
61
|
+
# profile. Keys map to individual feature flags; unknown keys are accepted and
|
|
62
|
+
# preserved for forward compatibility with rolling deployments.
|
|
63
|
+
features: nil,
|
|
59
64
|
# A URL to receive health check webhooks for numbers in this profile.
|
|
60
65
|
health_webhook_url: nil,
|
|
61
66
|
# enables SMS fallback for MMS messages.
|
|
@@ -121,6 +126,7 @@ module Telnyx
|
|
|
121
126
|
daily_spend_limit: String,
|
|
122
127
|
daily_spend_limit_enabled: T::Boolean,
|
|
123
128
|
enabled: T::Boolean,
|
|
129
|
+
features: T.nilable(Telnyx::MessagingProfileFeatures::OrHash),
|
|
124
130
|
mms_fall_back_to_sms: T::Boolean,
|
|
125
131
|
mms_transcoding: T::Boolean,
|
|
126
132
|
mobile_only: T::Boolean,
|
|
@@ -155,6 +161,10 @@ module Telnyx
|
|
|
155
161
|
daily_spend_limit_enabled: nil,
|
|
156
162
|
# Specifies whether the messaging profile is enabled or not.
|
|
157
163
|
enabled: nil,
|
|
164
|
+
# Telnyx product features the messaging customer can enable on the messaging
|
|
165
|
+
# profile. Keys map to individual feature flags; unknown keys are accepted and
|
|
166
|
+
# preserved for forward compatibility with rolling deployments.
|
|
167
|
+
features: nil,
|
|
158
168
|
# enables SMS fallback for MMS messages.
|
|
159
169
|
mms_fall_back_to_sms: nil,
|
|
160
170
|
# enables automated resizing of MMS media.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
# Noise suppression engines that can be selected when configuring noise
|
|
6
|
+
# suppression on voice connections.
|
|
7
|
+
class NoiseSuppressionEngines
|
|
8
|
+
# Returns all noise suppression engines available to the authenticated user.
|
|
9
|
+
# Engines gated behind a feature flag are included only when the flag is enabled
|
|
10
|
+
# for the user's account. Results are not paginated; the number of engines is
|
|
11
|
+
# expected to remain small.
|
|
12
|
+
sig do
|
|
13
|
+
params(request_options: Telnyx::RequestOptions::OrHash).returns(
|
|
14
|
+
Telnyx::Models::NoiseSuppressionEngineListResponse
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
def list(request_options: {})
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# @api private
|
|
21
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
22
|
+
def self.new(client:)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -159,8 +159,15 @@ module Telnyx
|
|
|
159
159
|
label: String,
|
|
160
160
|
machine_detection:
|
|
161
161
|
Telnyx::Texml::Accounts::Conferences::ParticipantParticipantsParams::MachineDetection::OrSymbol,
|
|
162
|
+
machine_detection_beep_max_frequency: Integer,
|
|
163
|
+
machine_detection_beep_min_frequency: Integer,
|
|
164
|
+
machine_detection_beep_min_tone_duration: Integer,
|
|
162
165
|
machine_detection_beep_profile:
|
|
163
166
|
Telnyx::Texml::Accounts::Conferences::ParticipantParticipantsParams::MachineDetectionBeepProfile::OrSymbol,
|
|
167
|
+
machine_detection_beep_spectral_confirmation: T::Boolean,
|
|
168
|
+
machine_detection_beep_spectral_min_purity: Float,
|
|
169
|
+
machine_detection_beep_spectral_reject_fax_cng: T::Boolean,
|
|
170
|
+
machine_detection_beep_spectral_window: Integer,
|
|
164
171
|
machine_detection_silence_timeout: Integer,
|
|
165
172
|
machine_detection_speech_end_threshold: Integer,
|
|
166
173
|
machine_detection_speech_threshold: Integer,
|
|
@@ -283,11 +290,36 @@ module Telnyx
|
|
|
283
290
|
# is identified. Use `DetectMessageEnd`, if you would like to leave a message on
|
|
284
291
|
# an answering machine.
|
|
285
292
|
machine_detection: nil,
|
|
293
|
+
# Body param: Highest frequency, in Hz, that a tone can reach and still be treated
|
|
294
|
+
# as a beep. Only used when MachineDetection is enabled.
|
|
295
|
+
machine_detection_beep_max_frequency: nil,
|
|
296
|
+
# Body param: Lowest frequency, in Hz, that a tone must reach to be treated as a
|
|
297
|
+
# beep. Raising it above 480 excludes North American ringback (440 + 480 Hz),
|
|
298
|
+
# which can otherwise be reported as a beep when the `freq_only` profile is in
|
|
299
|
+
# use. Only used when MachineDetection is enabled.
|
|
300
|
+
machine_detection_beep_min_frequency: nil,
|
|
301
|
+
# Body param: Shortest tone, in milliseconds, that can be treated as a beep.
|
|
302
|
+
# Raising it rejects brief tones such as call-progress blips. Only used when
|
|
303
|
+
# MachineDetection is enabled.
|
|
304
|
+
machine_detection_beep_min_tone_duration: nil,
|
|
286
305
|
# Body param: Selects which detectors must validate a beep. `both` requires the
|
|
287
306
|
# amplitude and frequency detectors to agree. `freq_only` uses the frequency
|
|
288
307
|
# detector alone, for beeps whose volume is too unsteady for the default profile.
|
|
289
308
|
# Only used when MachineDetection is enabled.
|
|
290
309
|
machine_detection_beep_profile: nil,
|
|
310
|
+
# Body param: When enabled, a candidate beep must pass an additional spectral
|
|
311
|
+
# check before it is reported. Only used when MachineDetection is enabled.
|
|
312
|
+
machine_detection_beep_spectral_confirmation: nil,
|
|
313
|
+
# Body param: Minimum spectral purity, from 0 to 1, for a tone to be treated as a
|
|
314
|
+
# beep. Raising it rejects mixed tones such as ringback, which combines two
|
|
315
|
+
# frequencies. Only used when MachineDetection is enabled.
|
|
316
|
+
machine_detection_beep_spectral_min_purity: nil,
|
|
317
|
+
# Body param: When enabled, the fax CNG tone is rejected rather than reported as a
|
|
318
|
+
# beep. Only used when MachineDetection is enabled.
|
|
319
|
+
machine_detection_beep_spectral_reject_fax_cng: nil,
|
|
320
|
+
# Body param: Length of the spectral confirmation window, in milliseconds. Only
|
|
321
|
+
# used when MachineDetection is enabled.
|
|
322
|
+
machine_detection_beep_spectral_window: nil,
|
|
291
323
|
# Body param: If initial silence duration is greater than this value, consider it
|
|
292
324
|
# a machine. Ignored when `premium` detection is used.
|
|
293
325
|
machine_detection_silence_timeout: nil,
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Texml
|
|
6
|
+
# TeXML REST Commands
|
|
7
|
+
class Calls
|
|
8
|
+
# Initiate an outbound TeXML call using a TeXML application connection ID, not an
|
|
9
|
+
# account SID. Request parameter names are case-sensitive. From and To are
|
|
10
|
+
# required; Texml supplies inline instructions and Url overrides the application
|
|
11
|
+
# XML request URL. When neither is supplied, the application configuration
|
|
12
|
+
# supplies the instructions. The response is a flat call object without a data
|
|
13
|
+
# wrapper.
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
connection_id: String,
|
|
17
|
+
from: String,
|
|
18
|
+
to: String,
|
|
19
|
+
method_: Telnyx::Texml::CallCreateParams::Method::OrSymbol,
|
|
20
|
+
texml: String,
|
|
21
|
+
url: String,
|
|
22
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
23
|
+
).returns(Telnyx::Models::Texml::CallCreateResponse)
|
|
24
|
+
end
|
|
25
|
+
def create(
|
|
26
|
+
# The ID of the connection holding the TeXML application to call from.
|
|
27
|
+
connection_id,
|
|
28
|
+
# The E.164-formatted phone number or SIP URI to present as the caller.
|
|
29
|
+
from:,
|
|
30
|
+
# The E.164-formatted phone number or SIP URI to call.
|
|
31
|
+
to:,
|
|
32
|
+
# HTTP method used to retrieve TeXML instructions from Url.
|
|
33
|
+
method_: nil,
|
|
34
|
+
# Inline TeXML instructions to execute when the call is answered.
|
|
35
|
+
texml: nil,
|
|
36
|
+
# The URL from which to retrieve TeXML instructions. Overrides the TeXML
|
|
37
|
+
# application XML request URL.
|
|
38
|
+
url: nil,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# @api private
|
|
44
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
45
|
+
def self.new(client:)
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -4,6 +4,10 @@ module Telnyx
|
|
|
4
4
|
module Resources
|
|
5
5
|
# TeXML REST Commands
|
|
6
6
|
class Texml
|
|
7
|
+
# TeXML REST Commands
|
|
8
|
+
sig { returns(Telnyx::Resources::Texml::Calls) }
|
|
9
|
+
attr_reader :calls
|
|
10
|
+
|
|
7
11
|
# TeXML REST Commands
|
|
8
12
|
sig { returns(Telnyx::Resources::Texml::Accounts) }
|
|
9
13
|
attr_reader :accounts
|
|
@@ -46,8 +50,15 @@ module Telnyx
|
|
|
46
50
|
Telnyx::TexmlInitiateAICallParams::DetectionMode::OrSymbol,
|
|
47
51
|
machine_detection:
|
|
48
52
|
Telnyx::TexmlInitiateAICallParams::MachineDetection::OrSymbol,
|
|
53
|
+
machine_detection_beep_max_frequency: Integer,
|
|
54
|
+
machine_detection_beep_min_frequency: Integer,
|
|
55
|
+
machine_detection_beep_min_tone_duration: Integer,
|
|
49
56
|
machine_detection_beep_profile:
|
|
50
57
|
Telnyx::TexmlInitiateAICallParams::MachineDetectionBeepProfile::OrSymbol,
|
|
58
|
+
machine_detection_beep_spectral_confirmation: T::Boolean,
|
|
59
|
+
machine_detection_beep_spectral_min_purity: Float,
|
|
60
|
+
machine_detection_beep_spectral_reject_fax_cng: T::Boolean,
|
|
61
|
+
machine_detection_beep_spectral_window: Integer,
|
|
51
62
|
machine_detection_prompt_end_timeout: Integer,
|
|
52
63
|
machine_detection_silence_timeout: Integer,
|
|
53
64
|
machine_detection_speech_end_threshold: Integer,
|
|
@@ -124,11 +135,36 @@ module Telnyx
|
|
|
124
135
|
detection_mode: nil,
|
|
125
136
|
# Enables Answering Machine Detection.
|
|
126
137
|
machine_detection: nil,
|
|
138
|
+
# Highest frequency, in Hz, that a tone can reach and still be treated as a beep.
|
|
139
|
+
# Only used when MachineDetection is enabled.
|
|
140
|
+
machine_detection_beep_max_frequency: nil,
|
|
141
|
+
# Lowest frequency, in Hz, that a tone must reach to be treated as a beep. Raising
|
|
142
|
+
# it above 480 excludes North American ringback (440 + 480 Hz), which can
|
|
143
|
+
# otherwise be reported as a beep when the `freq_only` profile is in use. Only
|
|
144
|
+
# used when MachineDetection is enabled.
|
|
145
|
+
machine_detection_beep_min_frequency: nil,
|
|
146
|
+
# Shortest tone, in milliseconds, that can be treated as a beep. Raising it
|
|
147
|
+
# rejects brief tones such as call-progress blips. Only used when MachineDetection
|
|
148
|
+
# is enabled.
|
|
149
|
+
machine_detection_beep_min_tone_duration: nil,
|
|
127
150
|
# Selects which detectors must validate a beep. `both` requires the amplitude and
|
|
128
151
|
# frequency detectors to agree. `freq_only` uses the frequency detector alone, for
|
|
129
152
|
# beeps whose volume is too unsteady for the default profile. Only used when
|
|
130
153
|
# MachineDetection is enabled.
|
|
131
154
|
machine_detection_beep_profile: nil,
|
|
155
|
+
# When enabled, a candidate beep must pass an additional spectral check before it
|
|
156
|
+
# is reported. Only used when MachineDetection is enabled.
|
|
157
|
+
machine_detection_beep_spectral_confirmation: nil,
|
|
158
|
+
# Minimum spectral purity, from 0 to 1, for a tone to be treated as a beep.
|
|
159
|
+
# Raising it rejects mixed tones such as ringback, which combines two frequencies.
|
|
160
|
+
# Only used when MachineDetection is enabled.
|
|
161
|
+
machine_detection_beep_spectral_min_purity: nil,
|
|
162
|
+
# When enabled, the fax CNG tone is rejected rather than reported as a beep. Only
|
|
163
|
+
# used when MachineDetection is enabled.
|
|
164
|
+
machine_detection_beep_spectral_reject_fax_cng: nil,
|
|
165
|
+
# Length of the spectral confirmation window, in milliseconds. Only used when
|
|
166
|
+
# MachineDetection is enabled.
|
|
167
|
+
machine_detection_beep_spectral_window: nil,
|
|
132
168
|
# Silence duration threshold after a call screening prompt before ending prompt
|
|
133
169
|
# detection, in milliseconds. Used when `DetectionMode` is `PremiumCallScreening`.
|
|
134
170
|
machine_detection_prompt_end_timeout: nil,
|
|
@@ -88,8 +88,10 @@ module Telnyx
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
# Creates a new voice clone by uploading an audio file directly. Supported
|
|
91
|
-
# formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–
|
|
92
|
-
# clear speech
|
|
91
|
+
# formats: WAV, MP3, FLAC, OGG, M4A. For best results, provide 5–60 seconds of
|
|
92
|
+
# clear speech (Ultra accepts up to 60 seconds; Qwen3TTS auto-trims to 10 seconds;
|
|
93
|
+
# Minimax accepts up to 5 minutes). Maximum file size: 5MB for Telnyx, 20MB for
|
|
94
|
+
# Minimax.
|
|
93
95
|
sig do
|
|
94
96
|
params(
|
|
95
97
|
voice_clone_upload_request:
|
|
@@ -78,7 +78,9 @@ module Telnyx
|
|
|
78
78
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
79
79
|
Telnyx::SessionStatusChangedWebhookEvent,
|
|
80
80
|
Telnyx::TranscriptCompletedWebhookEvent,
|
|
81
|
-
Telnyx::TranscriptionWebhookEvent
|
|
81
|
+
Telnyx::TranscriptionWebhookEvent,
|
|
82
|
+
Telnyx::WhatsappAccountUpdate,
|
|
83
|
+
Telnyx::WhatsappMessageEcho
|
|
82
84
|
)
|
|
83
85
|
)
|
|
84
86
|
end
|
|
@@ -167,7 +169,9 @@ module Telnyx
|
|
|
167
169
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
168
170
|
Telnyx::SessionStatusChangedWebhookEvent,
|
|
169
171
|
Telnyx::TranscriptCompletedWebhookEvent,
|
|
170
|
-
Telnyx::TranscriptionWebhookEvent
|
|
172
|
+
Telnyx::TranscriptionWebhookEvent,
|
|
173
|
+
Telnyx::WhatsappAccountUpdate,
|
|
174
|
+
Telnyx::WhatsappMessageEcho
|
|
171
175
|
)
|
|
172
176
|
)
|
|
173
177
|
end
|
|
@@ -101,6 +101,24 @@ module Telnyx
|
|
|
101
101
|
)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
|
+
# Returns one WhatsApp phone number linked to the authenticated Telnyx account.
|
|
105
|
+
# For a coexistence number in the `syncing` state, the response includes
|
|
106
|
+
# `sync_progress`.
|
|
107
|
+
sig do
|
|
108
|
+
params(
|
|
109
|
+
phone_number: String,
|
|
110
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
111
|
+
).returns(
|
|
112
|
+
Telnyx::Models::Whatsapp::PhoneNumberRetrievePhoneNumberResponse
|
|
113
|
+
)
|
|
114
|
+
end
|
|
115
|
+
def retrieve_phone_number(
|
|
116
|
+
# Phone number (E.164 format)
|
|
117
|
+
phone_number,
|
|
118
|
+
request_options: {}
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
104
122
|
# Submits the verification code received for the specified WhatsApp phone number.
|
|
105
123
|
sig do
|
|
106
124
|
params(
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class X402
|
|
6
|
+
class CreditAccount
|
|
7
|
+
# Operations for x402 cryptocurrency payment transactions. Fund your Telnyx
|
|
8
|
+
# account using USDC stablecoin payments via the x402 protocol.
|
|
9
|
+
class Payments
|
|
10
|
+
# Returns a single x402 payment transaction by ID. The transaction must belong to
|
|
11
|
+
# the authenticated user; organization sub-users must have read permission on
|
|
12
|
+
# transactions. Returns 404 if the transaction does not exist or belongs to
|
|
13
|
+
# another user.
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
id: String,
|
|
17
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
18
|
+
).returns(
|
|
19
|
+
Telnyx::Models::X402::CreditAccount::PaymentRetrieveResponse
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def retrieve(
|
|
23
|
+
# The x402 payment transaction ID.
|
|
24
|
+
id,
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns a paginated list of the authenticated user's x402 payment transactions,
|
|
30
|
+
# newest first. Organization sub-users must have read permission on transactions;
|
|
31
|
+
# without it the list is empty.
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
page_number: Integer,
|
|
35
|
+
page_size: Integer,
|
|
36
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
37
|
+
).returns(
|
|
38
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
39
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord
|
|
40
|
+
]
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
def list(
|
|
44
|
+
# The page number to load.
|
|
45
|
+
page_number: nil,
|
|
46
|
+
# The size of the page.
|
|
47
|
+
page_size: nil,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# @api private
|
|
53
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
54
|
+
def self.new(client:)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -6,6 +6,11 @@ module Telnyx
|
|
|
6
6
|
# Operations for x402 cryptocurrency payment transactions. Fund your Telnyx
|
|
7
7
|
# account using USDC stablecoin payments via the x402 protocol.
|
|
8
8
|
class CreditAccount
|
|
9
|
+
# Operations for x402 cryptocurrency payment transactions. Fund your Telnyx
|
|
10
|
+
# account using USDC stablecoin payments via the x402 protocol.
|
|
11
|
+
sig { returns(Telnyx::Resources::X402::CreditAccount::Payments) }
|
|
12
|
+
attr_reader :payments
|
|
13
|
+
|
|
9
14
|
# Creates a payment quote for the specified USD amount. Returns payment details
|
|
10
15
|
# including the x402 payment requirements, network, and expiration time. The quote
|
|
11
16
|
# must be settled before it expires.
|
data/sig/telnyx/client.rbs
CHANGED
|
@@ -380,6 +380,18 @@ module Telnyx
|
|
|
380
380
|
|
|
381
381
|
attr_reader external_requirements: Telnyx::Resources::ExternalRequirements
|
|
382
382
|
|
|
383
|
+
attr_reader compute: Telnyx::Resources::Compute
|
|
384
|
+
|
|
385
|
+
attr_reader noise_suppression_engines: Telnyx::Resources::NoiseSuppressionEngines
|
|
386
|
+
|
|
387
|
+
attr_reader bot_challenge: Telnyx::Resources::BotChallenge
|
|
388
|
+
|
|
389
|
+
attr_reader bot_sessions: Telnyx::Resources::BotSessions
|
|
390
|
+
|
|
391
|
+
attr_reader bot_signup: Telnyx::Resources::BotSignup
|
|
392
|
+
|
|
393
|
+
attr_reader machine_payments: Telnyx::Resources::MachinePayments
|
|
394
|
+
|
|
383
395
|
private def auth_headers: -> ::Hash[String, String]
|
|
384
396
|
|
|
385
397
|
private def bearer_auth: -> ::Hash[String, String]
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module AI
|
|
4
|
+
type assistant_a2_a_agent =
|
|
5
|
+
{
|
|
6
|
+
name: String,
|
|
7
|
+
url: String,
|
|
8
|
+
async: bool,
|
|
9
|
+
headers: ::Array[Telnyx::AI::AssistantA2AAgent::Header],
|
|
10
|
+
messages: ::Array[Telnyx::Models::AI::AssistantA2AAgent::message],
|
|
11
|
+
poll_interval_ms: Integer,
|
|
12
|
+
timeout_ms: Integer
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class AssistantA2AAgent < Telnyx::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor name: String
|
|
17
|
+
|
|
18
|
+
attr_accessor url: String
|
|
19
|
+
|
|
20
|
+
attr_reader async: bool?
|
|
21
|
+
|
|
22
|
+
def async=: (bool) -> bool
|
|
23
|
+
|
|
24
|
+
attr_reader headers: ::Array[Telnyx::AI::AssistantA2AAgent::Header]?
|
|
25
|
+
|
|
26
|
+
def headers=: (
|
|
27
|
+
::Array[Telnyx::AI::AssistantA2AAgent::Header]
|
|
28
|
+
) -> ::Array[Telnyx::AI::AssistantA2AAgent::Header]
|
|
29
|
+
|
|
30
|
+
attr_reader messages: ::Array[Telnyx::Models::AI::AssistantA2AAgent::message]?
|
|
31
|
+
|
|
32
|
+
def messages=: (
|
|
33
|
+
::Array[Telnyx::Models::AI::AssistantA2AAgent::message]
|
|
34
|
+
) -> ::Array[Telnyx::Models::AI::AssistantA2AAgent::message]
|
|
35
|
+
|
|
36
|
+
attr_reader poll_interval_ms: Integer?
|
|
37
|
+
|
|
38
|
+
def poll_interval_ms=: (Integer) -> Integer
|
|
39
|
+
|
|
40
|
+
attr_reader timeout_ms: Integer?
|
|
41
|
+
|
|
42
|
+
def timeout_ms=: (Integer) -> Integer
|
|
43
|
+
|
|
44
|
+
def initialize: (
|
|
45
|
+
name: String,
|
|
46
|
+
url: String,
|
|
47
|
+
?async: bool,
|
|
48
|
+
?headers: ::Array[Telnyx::AI::AssistantA2AAgent::Header],
|
|
49
|
+
?messages: ::Array[Telnyx::Models::AI::AssistantA2AAgent::message],
|
|
50
|
+
?poll_interval_ms: Integer,
|
|
51
|
+
?timeout_ms: Integer
|
|
52
|
+
) -> void
|
|
53
|
+
|
|
54
|
+
def to_hash: -> {
|
|
55
|
+
name: String,
|
|
56
|
+
url: String,
|
|
57
|
+
async: bool,
|
|
58
|
+
headers: ::Array[Telnyx::AI::AssistantA2AAgent::Header],
|
|
59
|
+
messages: ::Array[Telnyx::Models::AI::AssistantA2AAgent::message],
|
|
60
|
+
poll_interval_ms: Integer,
|
|
61
|
+
timeout_ms: Integer
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type header = { name: String, value: String }
|
|
65
|
+
|
|
66
|
+
class Header < Telnyx::Internal::Type::BaseModel
|
|
67
|
+
attr_accessor name: String
|
|
68
|
+
|
|
69
|
+
attr_accessor value: String
|
|
70
|
+
|
|
71
|
+
def initialize: (name: String, value: String) -> void
|
|
72
|
+
|
|
73
|
+
def to_hash: -> { name: String, value: String }
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
type message =
|
|
77
|
+
Telnyx::AI::AssistantA2AAgent::Message::A2AAgentRequestStartMessage
|
|
78
|
+
| Telnyx::AI::AssistantA2AAgent::Message::A2AAgentRequestResponseDelayedMessage
|
|
79
|
+
|
|
80
|
+
module Message
|
|
81
|
+
extend Telnyx::Internal::Type::Union
|
|
82
|
+
|
|
83
|
+
type a2_a_agent_request_start_message =
|
|
84
|
+
{ content: String, type: :request_start, timing_ms: Integer }
|
|
85
|
+
|
|
86
|
+
class A2AAgentRequestStartMessage < Telnyx::Internal::Type::BaseModel
|
|
87
|
+
attr_accessor content: String
|
|
88
|
+
|
|
89
|
+
attr_accessor type: :request_start
|
|
90
|
+
|
|
91
|
+
attr_reader timing_ms: Integer?
|
|
92
|
+
|
|
93
|
+
def timing_ms=: (Integer) -> Integer
|
|
94
|
+
|
|
95
|
+
def initialize: (
|
|
96
|
+
content: String,
|
|
97
|
+
?timing_ms: Integer,
|
|
98
|
+
?type: :request_start
|
|
99
|
+
) -> void
|
|
100
|
+
|
|
101
|
+
def to_hash: -> {
|
|
102
|
+
content: String,
|
|
103
|
+
type: :request_start,
|
|
104
|
+
timing_ms: Integer
|
|
105
|
+
}
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
type a2_a_agent_request_response_delayed_message =
|
|
109
|
+
{
|
|
110
|
+
content: String,
|
|
111
|
+
timing_ms: Integer,
|
|
112
|
+
type: :request_response_delayed
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
class A2AAgentRequestResponseDelayedMessage < Telnyx::Internal::Type::BaseModel
|
|
116
|
+
attr_accessor content: String
|
|
117
|
+
|
|
118
|
+
attr_accessor timing_ms: Integer
|
|
119
|
+
|
|
120
|
+
attr_accessor type: :request_response_delayed
|
|
121
|
+
|
|
122
|
+
def initialize: (
|
|
123
|
+
content: String,
|
|
124
|
+
timing_ms: Integer,
|
|
125
|
+
?type: :request_response_delayed
|
|
126
|
+
) -> void
|
|
127
|
+
|
|
128
|
+
def to_hash: -> {
|
|
129
|
+
content: String,
|
|
130
|
+
timing_ms: Integer,
|
|
131
|
+
type: :request_response_delayed
|
|
132
|
+
}
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
def self?.variants: -> ::Array[Telnyx::Models::AI::AssistantA2AAgent::message]
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
end
|
|
140
|
+
end
|
|
@@ -5,6 +5,7 @@ module Telnyx
|
|
|
5
5
|
{
|
|
6
6
|
instructions: String,
|
|
7
7
|
name: String,
|
|
8
|
+
:a2a_agents => ::Array[Telnyx::AI::AssistantA2AAgent],
|
|
8
9
|
conversation_flow: Telnyx::AI::ConversationFlowReq,
|
|
9
10
|
description: String,
|
|
10
11
|
dynamic_variables: ::Hash[Symbol, top],
|
|
@@ -43,6 +44,12 @@ module Telnyx
|
|
|
43
44
|
|
|
44
45
|
attr_accessor name: String
|
|
45
46
|
|
|
47
|
+
attr_reader a2a_agents: ::Array[Telnyx::AI::AssistantA2AAgent]?
|
|
48
|
+
|
|
49
|
+
def a2a_agents=: (
|
|
50
|
+
::Array[Telnyx::AI::AssistantA2AAgent]
|
|
51
|
+
) -> ::Array[Telnyx::AI::AssistantA2AAgent]
|
|
52
|
+
|
|
46
53
|
attr_reader conversation_flow: Telnyx::AI::ConversationFlowReq?
|
|
47
54
|
|
|
48
55
|
def conversation_flow=: (
|
|
@@ -188,6 +195,7 @@ module Telnyx
|
|
|
188
195
|
def initialize: (
|
|
189
196
|
instructions: String,
|
|
190
197
|
name: String,
|
|
198
|
+
?a2a_agents: ::Array[Telnyx::AI::AssistantA2AAgent],
|
|
191
199
|
?conversation_flow: Telnyx::AI::ConversationFlowReq,
|
|
192
200
|
?description: String,
|
|
193
201
|
?dynamic_variables: ::Hash[Symbol, top],
|
|
@@ -221,6 +229,7 @@ module Telnyx
|
|
|
221
229
|
def to_hash: -> {
|
|
222
230
|
instructions: String,
|
|
223
231
|
name: String,
|
|
232
|
+
:a2a_agents => ::Array[Telnyx::AI::AssistantA2AAgent],
|
|
224
233
|
conversation_flow: Telnyx::AI::ConversationFlowReq,
|
|
225
234
|
description: String,
|
|
226
235
|
dynamic_variables: ::Hash[Symbol, top],
|