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,53 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module X402
|
|
6
|
+
module CreditAccount
|
|
7
|
+
class PaymentRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Telnyx::Models::X402::CreditAccount::PaymentRetrieveResponse,
|
|
12
|
+
Telnyx::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# An x402 payment transaction.
|
|
17
|
+
sig do
|
|
18
|
+
returns(
|
|
19
|
+
T.nilable(Telnyx::X402::CreditAccount::X402TransactionRecord)
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
attr_reader :data
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
params(
|
|
26
|
+
data: Telnyx::X402::CreditAccount::X402TransactionRecord::OrHash
|
|
27
|
+
).void
|
|
28
|
+
end
|
|
29
|
+
attr_writer :data
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
params(
|
|
33
|
+
data: Telnyx::X402::CreditAccount::X402TransactionRecord::OrHash
|
|
34
|
+
).returns(T.attached_class)
|
|
35
|
+
end
|
|
36
|
+
def self.new(
|
|
37
|
+
# An x402 payment transaction.
|
|
38
|
+
data: nil
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
sig do
|
|
43
|
+
override.returns(
|
|
44
|
+
{ data: Telnyx::X402::CreditAccount::X402TransactionRecord }
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
def to_hash
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module X402
|
|
6
|
+
module CreditAccount
|
|
7
|
+
class X402TransactionRecord < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
OrHash =
|
|
9
|
+
T.type_alias do
|
|
10
|
+
T.any(
|
|
11
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord,
|
|
12
|
+
Telnyx::Internal::AnyHash
|
|
13
|
+
)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
# Unique transaction identifier.
|
|
17
|
+
sig { returns(T.nilable(String)) }
|
|
18
|
+
attr_reader :id
|
|
19
|
+
|
|
20
|
+
sig { params(id: String).void }
|
|
21
|
+
attr_writer :id
|
|
22
|
+
|
|
23
|
+
# The transaction amount in the specified currency.
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :amount
|
|
26
|
+
|
|
27
|
+
sig { params(amount: String).void }
|
|
28
|
+
attr_writer :amount
|
|
29
|
+
|
|
30
|
+
# ISO 8601 timestamp when the transaction was created.
|
|
31
|
+
sig { returns(T.nilable(Time)) }
|
|
32
|
+
attr_reader :created_at
|
|
33
|
+
|
|
34
|
+
sig { params(created_at: Time).void }
|
|
35
|
+
attr_writer :created_at
|
|
36
|
+
|
|
37
|
+
# The currency of the transaction amount (e.g. USD).
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_reader :currency
|
|
40
|
+
|
|
41
|
+
sig { params(currency: String).void }
|
|
42
|
+
attr_writer :currency
|
|
43
|
+
|
|
44
|
+
# The original quote ID associated with this transaction.
|
|
45
|
+
sig { returns(T.nilable(String)) }
|
|
46
|
+
attr_reader :quote_id
|
|
47
|
+
|
|
48
|
+
sig { params(quote_id: String).void }
|
|
49
|
+
attr_writer :quote_id
|
|
50
|
+
|
|
51
|
+
sig do
|
|
52
|
+
returns(
|
|
53
|
+
T.nilable(
|
|
54
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol
|
|
55
|
+
)
|
|
56
|
+
)
|
|
57
|
+
end
|
|
58
|
+
attr_reader :record_type
|
|
59
|
+
|
|
60
|
+
sig do
|
|
61
|
+
params(
|
|
62
|
+
record_type:
|
|
63
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::OrSymbol
|
|
64
|
+
).void
|
|
65
|
+
end
|
|
66
|
+
attr_writer :record_type
|
|
67
|
+
|
|
68
|
+
# The settlement status of the transaction. x402 transactions are created after
|
|
69
|
+
# successful on-chain settlement, so the status is `settled`.
|
|
70
|
+
sig do
|
|
71
|
+
returns(
|
|
72
|
+
T.nilable(
|
|
73
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol
|
|
74
|
+
)
|
|
75
|
+
)
|
|
76
|
+
end
|
|
77
|
+
attr_reader :status
|
|
78
|
+
|
|
79
|
+
sig do
|
|
80
|
+
params(
|
|
81
|
+
status:
|
|
82
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status::OrSymbol
|
|
83
|
+
).void
|
|
84
|
+
end
|
|
85
|
+
attr_writer :status
|
|
86
|
+
|
|
87
|
+
# The on-chain transaction hash, if available.
|
|
88
|
+
sig { returns(T.nilable(String)) }
|
|
89
|
+
attr_accessor :tx_hash
|
|
90
|
+
|
|
91
|
+
# ISO 8601 timestamp when the transaction was last updated.
|
|
92
|
+
sig { returns(T.nilable(Time)) }
|
|
93
|
+
attr_reader :updated_at
|
|
94
|
+
|
|
95
|
+
sig { params(updated_at: Time).void }
|
|
96
|
+
attr_writer :updated_at
|
|
97
|
+
|
|
98
|
+
# An x402 payment transaction.
|
|
99
|
+
sig do
|
|
100
|
+
params(
|
|
101
|
+
id: String,
|
|
102
|
+
amount: String,
|
|
103
|
+
created_at: Time,
|
|
104
|
+
currency: String,
|
|
105
|
+
quote_id: String,
|
|
106
|
+
record_type:
|
|
107
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::OrSymbol,
|
|
108
|
+
status:
|
|
109
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status::OrSymbol,
|
|
110
|
+
tx_hash: T.nilable(String),
|
|
111
|
+
updated_at: Time
|
|
112
|
+
).returns(T.attached_class)
|
|
113
|
+
end
|
|
114
|
+
def self.new(
|
|
115
|
+
# Unique transaction identifier.
|
|
116
|
+
id: nil,
|
|
117
|
+
# The transaction amount in the specified currency.
|
|
118
|
+
amount: nil,
|
|
119
|
+
# ISO 8601 timestamp when the transaction was created.
|
|
120
|
+
created_at: nil,
|
|
121
|
+
# The currency of the transaction amount (e.g. USD).
|
|
122
|
+
currency: nil,
|
|
123
|
+
# The original quote ID associated with this transaction.
|
|
124
|
+
quote_id: nil,
|
|
125
|
+
record_type: nil,
|
|
126
|
+
# The settlement status of the transaction. x402 transactions are created after
|
|
127
|
+
# successful on-chain settlement, so the status is `settled`.
|
|
128
|
+
status: nil,
|
|
129
|
+
# The on-chain transaction hash, if available.
|
|
130
|
+
tx_hash: nil,
|
|
131
|
+
# ISO 8601 timestamp when the transaction was last updated.
|
|
132
|
+
updated_at: nil
|
|
133
|
+
)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
sig do
|
|
137
|
+
override.returns(
|
|
138
|
+
{
|
|
139
|
+
id: String,
|
|
140
|
+
amount: String,
|
|
141
|
+
created_at: Time,
|
|
142
|
+
currency: String,
|
|
143
|
+
quote_id: String,
|
|
144
|
+
record_type:
|
|
145
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol,
|
|
146
|
+
status:
|
|
147
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol,
|
|
148
|
+
tx_hash: T.nilable(String),
|
|
149
|
+
updated_at: Time
|
|
150
|
+
}
|
|
151
|
+
)
|
|
152
|
+
end
|
|
153
|
+
def to_hash
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
module RecordType
|
|
157
|
+
extend Telnyx::Internal::Type::Enum
|
|
158
|
+
|
|
159
|
+
TaggedSymbol =
|
|
160
|
+
T.type_alias do
|
|
161
|
+
T.all(
|
|
162
|
+
Symbol,
|
|
163
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType
|
|
164
|
+
)
|
|
165
|
+
end
|
|
166
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
167
|
+
|
|
168
|
+
X402_TRANSACTION =
|
|
169
|
+
T.let(
|
|
170
|
+
:x402_transaction,
|
|
171
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
sig do
|
|
175
|
+
override.returns(
|
|
176
|
+
T::Array[
|
|
177
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::RecordType::TaggedSymbol
|
|
178
|
+
]
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
def self.values
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# The settlement status of the transaction. x402 transactions are created after
|
|
186
|
+
# successful on-chain settlement, so the status is `settled`.
|
|
187
|
+
module Status
|
|
188
|
+
extend Telnyx::Internal::Type::Enum
|
|
189
|
+
|
|
190
|
+
TaggedSymbol =
|
|
191
|
+
T.type_alias do
|
|
192
|
+
T.all(
|
|
193
|
+
Symbol,
|
|
194
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status
|
|
195
|
+
)
|
|
196
|
+
end
|
|
197
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
198
|
+
|
|
199
|
+
SETTLED =
|
|
200
|
+
T.let(
|
|
201
|
+
:settled,
|
|
202
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
sig do
|
|
206
|
+
override.returns(
|
|
207
|
+
T::Array[
|
|
208
|
+
Telnyx::X402::CreditAccount::X402TransactionRecord::Status::TaggedSymbol
|
|
209
|
+
]
|
|
210
|
+
)
|
|
211
|
+
end
|
|
212
|
+
def self.values
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
end
|
data/rbi/telnyx/models.rbi
CHANGED
|
@@ -132,6 +132,15 @@ module Telnyx
|
|
|
132
132
|
|
|
133
133
|
BookAppointmentToolParams = Telnyx::Models::BookAppointmentToolParams
|
|
134
134
|
|
|
135
|
+
BotChallengeCreateParams = Telnyx::Models::BotChallengeCreateParams
|
|
136
|
+
|
|
137
|
+
BotSessionListParams = Telnyx::Models::BotSessionListParams
|
|
138
|
+
|
|
139
|
+
BotSignupCreateParams = Telnyx::Models::BotSignupCreateParams
|
|
140
|
+
|
|
141
|
+
BotSignupResendMagicLinkParams =
|
|
142
|
+
Telnyx::Models::BotSignupResendMagicLinkParams
|
|
143
|
+
|
|
135
144
|
BrandedCallingPaginationMeta = Telnyx::Models::BrandedCallingPaginationMeta
|
|
136
145
|
|
|
137
146
|
BulkMessagingSettingsUpdatePhoneNumbers =
|
|
@@ -392,6 +401,8 @@ module Telnyx
|
|
|
392
401
|
|
|
393
402
|
CommentRetrieveParams = Telnyx::Models::CommentRetrieveParams
|
|
394
403
|
|
|
404
|
+
Compute = Telnyx::Models::Compute
|
|
405
|
+
|
|
395
406
|
Conference = Telnyx::Models::Conference
|
|
396
407
|
|
|
397
408
|
ConferenceCreated = Telnyx::Models::ConferenceCreated
|
|
@@ -498,6 +509,8 @@ module Telnyx
|
|
|
498
509
|
ConnectionNoiseSuppressionDetails =
|
|
499
510
|
Telnyx::Models::ConnectionNoiseSuppressionDetails
|
|
500
511
|
|
|
512
|
+
ConnectionRetrieveCountParams = Telnyx::Models::ConnectionRetrieveCountParams
|
|
513
|
+
|
|
501
514
|
ConnectionRetrieveParams = Telnyx::Models::ConnectionRetrieveParams
|
|
502
515
|
|
|
503
516
|
ConnectionRtcpSettings = Telnyx::Models::ConnectionRtcpSettings
|
|
@@ -1110,6 +1123,9 @@ module Telnyx
|
|
|
1110
1123
|
|
|
1111
1124
|
ListRetrieveByZoneParams = Telnyx::Models::ListRetrieveByZoneParams
|
|
1112
1125
|
|
|
1126
|
+
MachinePaymentAccountCreditParams =
|
|
1127
|
+
Telnyx::Models::MachinePaymentAccountCreditParams
|
|
1128
|
+
|
|
1113
1129
|
ManagedAccount = Telnyx::Models::ManagedAccount
|
|
1114
1130
|
|
|
1115
1131
|
ManagedAccountBalance = Telnyx::Models::ManagedAccountBalance
|
|
@@ -1251,6 +1267,8 @@ module Telnyx
|
|
|
1251
1267
|
MessagingHostedNumberUpdateParams =
|
|
1252
1268
|
Telnyx::Models::MessagingHostedNumberUpdateParams
|
|
1253
1269
|
|
|
1270
|
+
MessagingInboundMessage = Telnyx::Models::MessagingInboundMessage
|
|
1271
|
+
|
|
1254
1272
|
MessagingInboundMessagePayload =
|
|
1255
1273
|
Telnyx::Models::MessagingInboundMessagePayload
|
|
1256
1274
|
|
|
@@ -1280,6 +1298,8 @@ module Telnyx
|
|
|
1280
1298
|
|
|
1281
1299
|
MessagingProfileDeleteParams = Telnyx::Models::MessagingProfileDeleteParams
|
|
1282
1300
|
|
|
1301
|
+
MessagingProfileFeatures = Telnyx::Models::MessagingProfileFeatures
|
|
1302
|
+
|
|
1283
1303
|
MessagingProfileListAlphanumericSenderIDsParams =
|
|
1284
1304
|
Telnyx::Models::MessagingProfileListAlphanumericSenderIDsParams
|
|
1285
1305
|
|
|
@@ -1387,6 +1407,9 @@ module Telnyx
|
|
|
1387
1407
|
|
|
1388
1408
|
NetworkUpdateParams = Telnyx::Models::NetworkUpdateParams
|
|
1389
1409
|
|
|
1410
|
+
NoiseSuppressionEngineListParams =
|
|
1411
|
+
Telnyx::Models::NoiseSuppressionEngineListParams
|
|
1412
|
+
|
|
1390
1413
|
NotificationChannel = Telnyx::Models::NotificationChannel
|
|
1391
1414
|
|
|
1392
1415
|
NotificationChannelCreateParams =
|
|
@@ -2074,6 +2097,8 @@ module Telnyx
|
|
|
2074
2097
|
SubNumberOrderUpdateRequirementGroupParams =
|
|
2075
2098
|
Telnyx::Models::SubNumberOrderUpdateRequirementGroupParams
|
|
2076
2099
|
|
|
2100
|
+
SuccessResponse = Telnyx::Models::SuccessResponse
|
|
2101
|
+
|
|
2077
2102
|
SuppressedRecipient = Telnyx::Models::SuppressedRecipient
|
|
2078
2103
|
|
|
2079
2104
|
TelephonyCredential = Telnyx::Models::TelephonyCredential
|
|
@@ -2386,6 +2411,8 @@ module Telnyx
|
|
|
2386
2411
|
|
|
2387
2412
|
Whatsapp = Telnyx::Models::Whatsapp
|
|
2388
2413
|
|
|
2414
|
+
WhatsappAccountUpdate = Telnyx::Models::WhatsappAccountUpdate
|
|
2415
|
+
|
|
2389
2416
|
WhatsappContact = Telnyx::Models::WhatsappContact
|
|
2390
2417
|
|
|
2391
2418
|
WhatsappInteractive = Telnyx::Models::WhatsappInteractive
|
|
@@ -2396,6 +2423,8 @@ module Telnyx
|
|
|
2396
2423
|
|
|
2397
2424
|
WhatsappMessageContent = Telnyx::Models::WhatsappMessageContent
|
|
2398
2425
|
|
|
2426
|
+
WhatsappMessageEcho = Telnyx::Models::WhatsappMessageEcho
|
|
2427
|
+
|
|
2399
2428
|
WhatsappMessageTemplateDeleteParams =
|
|
2400
2429
|
Telnyx::Models::WhatsappMessageTemplateDeleteParams
|
|
2401
2430
|
|
|
@@ -32,6 +32,7 @@ module Telnyx
|
|
|
32
32
|
params(
|
|
33
33
|
version_id: String,
|
|
34
34
|
assistant_id: String,
|
|
35
|
+
a2a_agents: T::Array[Telnyx::AI::AssistantA2AAgent::OrHash],
|
|
35
36
|
conversation_flow: Telnyx::AI::ConversationFlowReq::OrHash,
|
|
36
37
|
description: String,
|
|
37
38
|
dynamic_variables: T::Hash[Symbol, T.anything],
|
|
@@ -61,11 +62,12 @@ module Telnyx
|
|
|
61
62
|
tools:
|
|
62
63
|
T::Array[
|
|
63
64
|
T.any(
|
|
65
|
+
Telnyx::AI::AssistantTool::Function::OrHash,
|
|
64
66
|
Telnyx::AI::InferenceEmbeddingWebhookToolParams::OrHash,
|
|
65
67
|
Telnyx::AI::AssistantTool::ClientSideTool::OrHash,
|
|
66
68
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
67
69
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
68
|
-
Telnyx::AI::
|
|
70
|
+
Telnyx::AI::AssistantTool::Hangup::OrHash,
|
|
69
71
|
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
70
72
|
Telnyx::AI::AssistantTool::Invite::OrHash,
|
|
71
73
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
@@ -88,6 +90,17 @@ module Telnyx
|
|
|
88
90
|
version_id,
|
|
89
91
|
# Path param: Unique identifier of the assistant.
|
|
90
92
|
assistant_id:,
|
|
93
|
+
# Body param: A2A agents this assistant can delegate to. Tools are not stored
|
|
94
|
+
# here: at the start of every conversation each agent's card is fetched and one
|
|
95
|
+
# tool is derived per skill the card advertises, named `a2a_<name>_<skill_id>`.
|
|
96
|
+
# The following limits are not enforced when the assistant is saved, and anything
|
|
97
|
+
# past them is dropped when the conversation starts: 64 agents per assistant, 64
|
|
98
|
+
# skills per card, 128 derived tools per assistant, and a 6 second budget for all
|
|
99
|
+
# card fetches combined. An agent whose card cannot be fetched costs the assistant
|
|
100
|
+
# that capability for the conversation; it does not fail the call. Omit this field
|
|
101
|
+
# to leave the assistant's agents unchanged; send an empty array to remove them
|
|
102
|
+
# all.
|
|
103
|
+
a2a_agents: nil,
|
|
91
104
|
# Body param: Conversation flow as supplied by API clients (create / update).
|
|
92
105
|
#
|
|
93
106
|
# A directed graph of `FlowNodeReq` connected by `FlowEdge`s. Validation enforces
|
|
@@ -167,10 +180,10 @@ module Telnyx
|
|
|
167
180
|
observability_settings: nil,
|
|
168
181
|
# Body param: Configuration for post-conversation processing. When enabled, the
|
|
169
182
|
# assistant receives one additional LLM turn after the conversation ends, allowing
|
|
170
|
-
# it to execute tool calls such as
|
|
171
|
-
#
|
|
172
|
-
#
|
|
173
|
-
#
|
|
183
|
+
# it to execute final tool calls such as sending a summary or updating a record
|
|
184
|
+
# via webhook or function tools. Integration and MCP server tools are not
|
|
185
|
+
# available post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
186
|
+
# unavailable. Beta feature.
|
|
174
187
|
post_conversation_settings: nil,
|
|
175
188
|
# Body param
|
|
176
189
|
privacy_settings: nil,
|
|
@@ -180,11 +193,22 @@ module Telnyx
|
|
|
180
193
|
# Body param
|
|
181
194
|
telephony_settings: nil,
|
|
182
195
|
# Body param: IDs of shared tools to attach to the assistant. New integrations
|
|
183
|
-
# should prefer `tool_ids` over inline `tools`.
|
|
196
|
+
# should prefer `tool_ids` over inline `tools`. On update, a sent `tool_ids` array
|
|
197
|
+
# fully replaces the assistant's attached shared tools; omit the field to leave
|
|
198
|
+
# them unchanged. Single-instance tool types are counted across inline `tools` and
|
|
199
|
+
# `tool_ids` combined, so attaching a shared tool of such a type when an instance
|
|
200
|
+
# already exists returns HTTP 400 with error code 10015.
|
|
184
201
|
tool_ids: nil,
|
|
185
202
|
# Body param: Deprecated for new integrations. Inline tool definitions available
|
|
186
203
|
# to the assistant. Prefer `tool_ids` to attach shared tools created with the AI
|
|
187
|
-
# Tools endpoints.
|
|
204
|
+
# Tools endpoints. On update, a sent `tools` array fully replaces the assistant's
|
|
205
|
+
# inline tools; omit the field to leave the inline tools unchanged. Each tool type
|
|
206
|
+
# except `function`, `webhook`, and `client_side_tool` allows at most one instance
|
|
207
|
+
# per assistant, counted across inline `tools` and shared `tool_ids` combined —
|
|
208
|
+
# sending a duplicate of such a type returns HTTP 400 with error code 10015.
|
|
209
|
+
# Responses merge shared tools into `tools` with `shared: true`; when updating,
|
|
210
|
+
# omit those tools from the `tools` array and manage them through `tool_ids`
|
|
211
|
+
# instead.
|
|
188
212
|
tools: nil,
|
|
189
213
|
# Body param
|
|
190
214
|
transcription: nil,
|
|
@@ -39,6 +39,7 @@ module Telnyx
|
|
|
39
39
|
params(
|
|
40
40
|
instructions: String,
|
|
41
41
|
name: String,
|
|
42
|
+
a2a_agents: T::Array[Telnyx::AI::AssistantA2AAgent::OrHash],
|
|
42
43
|
conversation_flow: Telnyx::AI::ConversationFlowReq::OrHash,
|
|
43
44
|
description: String,
|
|
44
45
|
dynamic_variables: T::Hash[Symbol, T.anything],
|
|
@@ -66,11 +67,12 @@ module Telnyx
|
|
|
66
67
|
tools:
|
|
67
68
|
T::Array[
|
|
68
69
|
T.any(
|
|
70
|
+
Telnyx::AI::AssistantTool::Function::OrHash,
|
|
69
71
|
Telnyx::AI::InferenceEmbeddingWebhookToolParams::OrHash,
|
|
70
72
|
Telnyx::AI::AssistantTool::ClientSideTool::OrHash,
|
|
71
73
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
72
74
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
73
|
-
Telnyx::AI::
|
|
75
|
+
Telnyx::AI::AssistantTool::Hangup::OrHash,
|
|
74
76
|
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
75
77
|
Telnyx::AI::AssistantTool::Invite::OrHash,
|
|
76
78
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
@@ -94,6 +96,15 @@ module Telnyx
|
|
|
94
96
|
instructions:,
|
|
95
97
|
# Body param
|
|
96
98
|
name:,
|
|
99
|
+
# Body param: A2A agents this assistant can delegate to. Tools are not stored
|
|
100
|
+
# here: at the start of every conversation each agent's card is fetched and one
|
|
101
|
+
# tool is derived per skill the card advertises, named `a2a_<name>_<skill_id>`.
|
|
102
|
+
# The following limits are not enforced when the assistant is saved, and anything
|
|
103
|
+
# past them is dropped when the conversation starts: 64 agents per assistant, 64
|
|
104
|
+
# skills per card, 128 derived tools per assistant, and a 6 second budget for all
|
|
105
|
+
# card fetches combined. An agent whose card cannot be fetched costs the assistant
|
|
106
|
+
# that capability for the conversation; it does not fail the call.
|
|
107
|
+
a2a_agents: nil,
|
|
97
108
|
# Body param: Conversation flow as supplied by API clients (create / update).
|
|
98
109
|
#
|
|
99
110
|
# A directed graph of `FlowNodeReq` connected by `FlowEdge`s. Validation enforces
|
|
@@ -168,10 +179,10 @@ module Telnyx
|
|
|
168
179
|
observability_settings: nil,
|
|
169
180
|
# Body param: Configuration for post-conversation processing. When enabled, the
|
|
170
181
|
# assistant receives one additional LLM turn after the conversation ends, allowing
|
|
171
|
-
# it to execute tool calls such as
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
#
|
|
182
|
+
# it to execute final tool calls such as sending a summary or updating a record
|
|
183
|
+
# via webhook or function tools. Integration and MCP server tools are not
|
|
184
|
+
# available post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
185
|
+
# unavailable. Beta feature.
|
|
175
186
|
post_conversation_settings: nil,
|
|
176
187
|
# Body param
|
|
177
188
|
privacy_settings: nil,
|
|
@@ -238,6 +249,7 @@ module Telnyx
|
|
|
238
249
|
sig do
|
|
239
250
|
params(
|
|
240
251
|
assistant_id: String,
|
|
252
|
+
a2a_agents: T::Array[Telnyx::AI::AssistantA2AAgent::OrHash],
|
|
241
253
|
conversation_flow: Telnyx::AI::ConversationFlowReq::OrHash,
|
|
242
254
|
description: String,
|
|
243
255
|
dynamic_variables: T::Hash[Symbol, T.anything],
|
|
@@ -268,11 +280,12 @@ module Telnyx
|
|
|
268
280
|
tools:
|
|
269
281
|
T::Array[
|
|
270
282
|
T.any(
|
|
283
|
+
Telnyx::AI::AssistantTool::Function::OrHash,
|
|
271
284
|
Telnyx::AI::InferenceEmbeddingWebhookToolParams::OrHash,
|
|
272
285
|
Telnyx::AI::AssistantTool::ClientSideTool::OrHash,
|
|
273
286
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
274
287
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
275
|
-
Telnyx::AI::
|
|
288
|
+
Telnyx::AI::AssistantTool::Hangup::OrHash,
|
|
276
289
|
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
277
290
|
Telnyx::AI::AssistantTool::Invite::OrHash,
|
|
278
291
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
@@ -293,6 +306,16 @@ module Telnyx
|
|
|
293
306
|
def update(
|
|
294
307
|
# Unique identifier of the assistant.
|
|
295
308
|
assistant_id,
|
|
309
|
+
# A2A agents this assistant can delegate to. Tools are not stored here: at the
|
|
310
|
+
# start of every conversation each agent's card is fetched and one tool is derived
|
|
311
|
+
# per skill the card advertises, named `a2a_<name>_<skill_id>`. The following
|
|
312
|
+
# limits are not enforced when the assistant is saved, and anything past them is
|
|
313
|
+
# dropped when the conversation starts: 64 agents per assistant, 64 skills per
|
|
314
|
+
# card, 128 derived tools per assistant, and a 6 second budget for all card
|
|
315
|
+
# fetches combined. An agent whose card cannot be fetched costs the assistant that
|
|
316
|
+
# capability for the conversation; it does not fail the call. Omit this field to
|
|
317
|
+
# leave the assistant's agents unchanged; send an empty array to remove them all.
|
|
318
|
+
a2a_agents: nil,
|
|
296
319
|
# Conversation flow as supplied by API clients (create / update).
|
|
297
320
|
#
|
|
298
321
|
# A directed graph of `FlowNodeReq` connected by `FlowEdge`s. Validation enforces
|
|
@@ -363,10 +386,10 @@ module Telnyx
|
|
|
363
386
|
observability_settings: nil,
|
|
364
387
|
# Configuration for post-conversation processing. When enabled, the assistant
|
|
365
388
|
# receives one additional LLM turn after the conversation ends, allowing it to
|
|
366
|
-
# execute tool calls such as
|
|
367
|
-
#
|
|
368
|
-
#
|
|
369
|
-
#
|
|
389
|
+
# execute final tool calls such as sending a summary or updating a record via
|
|
390
|
+
# webhook or function tools. Integration and MCP server tools are not available
|
|
391
|
+
# post-conversation; call-control tools (e.g. hangup, transfer) are also
|
|
392
|
+
# unavailable. Beta feature.
|
|
370
393
|
post_conversation_settings: nil,
|
|
371
394
|
privacy_settings: nil,
|
|
372
395
|
# Indicates whether the assistant should be promoted to the main version. Defaults
|
|
@@ -377,11 +400,22 @@ module Telnyx
|
|
|
377
400
|
tags: nil,
|
|
378
401
|
telephony_settings: nil,
|
|
379
402
|
# IDs of shared tools to attach to the assistant. New integrations should prefer
|
|
380
|
-
# `tool_ids` over inline `tools`.
|
|
403
|
+
# `tool_ids` over inline `tools`. On update, a sent `tool_ids` array fully
|
|
404
|
+
# replaces the assistant's attached shared tools; omit the field to leave them
|
|
405
|
+
# unchanged. Single-instance tool types are counted across inline `tools` and
|
|
406
|
+
# `tool_ids` combined, so attaching a shared tool of such a type when an instance
|
|
407
|
+
# already exists returns HTTP 400 with error code 10015.
|
|
381
408
|
tool_ids: nil,
|
|
382
409
|
# Deprecated for new integrations. Inline tool definitions available to the
|
|
383
410
|
# assistant. Prefer `tool_ids` to attach shared tools created with the AI Tools
|
|
384
|
-
# endpoints.
|
|
411
|
+
# endpoints. On update, a sent `tools` array fully replaces the assistant's inline
|
|
412
|
+
# tools; omit the field to leave the inline tools unchanged. Each tool type except
|
|
413
|
+
# `function`, `webhook`, and `client_side_tool` allows at most one instance per
|
|
414
|
+
# assistant, counted across inline `tools` and shared `tool_ids` combined —
|
|
415
|
+
# sending a duplicate of such a type returns HTTP 400 with error code 10015.
|
|
416
|
+
# Responses merge shared tools into `tools` with `shared: true`; when updating,
|
|
417
|
+
# omit those tools from the `tools` array and manage them through `tool_ids`
|
|
418
|
+
# instead.
|
|
385
419
|
tools: nil,
|
|
386
420
|
transcription: nil,
|
|
387
421
|
# Human-readable name for the assistant version.
|
|
@@ -24,25 +24,36 @@ module Telnyx
|
|
|
24
24
|
def transcribe(
|
|
25
25
|
# ID of the model to use. `distil-whisper/distil-large-v2` is lower latency but
|
|
26
26
|
# English-only. `openai/whisper-large-v3-turbo` is multi-lingual but slightly
|
|
27
|
-
# higher latency. `deepgram
|
|
28
|
-
#
|
|
27
|
+
# higher latency. The `deepgram/*` models only accept mp3/wav files:
|
|
28
|
+
# `deepgram/nova-3` covers ~49 languages plus `multi` and `deepgram/nova-2` covers
|
|
29
|
+
# ~33, while the `-medical` variants are tuned for clinical vocabulary and accept
|
|
30
|
+
# English only (`en` and its regional variants, e.g. `en-US`, `en-GB`).
|
|
31
|
+
# `nvidia/parakeet-v3` is multilingual with automatic language detection;
|
|
32
|
+
# `omi-health/omi-med-stt-v1` is a medical model, English only.
|
|
29
33
|
model:,
|
|
30
34
|
# The audio file object to transcribe, in one of these formats: flac, mp3, mp4,
|
|
31
35
|
# mpeg, mpga, m4a, ogg, wav, or webm. File uploads are limited to 100 MB. Cannot
|
|
32
|
-
# be used together with `file_url`. Note: `deepgram
|
|
33
|
-
# wav formats.
|
|
36
|
+
# be used together with `file_url`. Note: the `deepgram/*` models only support mp3
|
|
37
|
+
# and wav formats.
|
|
34
38
|
file: nil,
|
|
35
39
|
# Link to audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a,
|
|
36
40
|
# ogg, wav, or webm. Support for hosted files is limited to 100MB. Cannot be used
|
|
37
|
-
# together with `file`. Note: `deepgram
|
|
41
|
+
# together with `file`. Note: the `deepgram/*` models only support mp3 and wav
|
|
42
|
+
# formats.
|
|
38
43
|
file_url: nil,
|
|
39
|
-
# The language of the audio to be transcribed.
|
|
40
|
-
#
|
|
44
|
+
# The language of the audio to be transcribed. `deepgram/nova-3` supports ~49
|
|
45
|
+
# languages plus `multi`, and `deepgram/nova-2` supports ~33 plus `multi`; the
|
|
46
|
+
# `-medical` variants are English only (`en` and its regional variants, e.g.
|
|
47
|
+
# `en-US`, `en-GB`). Deepgram models validate on the base language and forward the
|
|
48
|
+
# full tag, so regional variants such as `de-CH` and `pt-BR` are accepted where
|
|
49
|
+
# the base language is supported; an unsupported language returns a 400. For
|
|
41
50
|
# `openai/whisper-large-v3-turbo`, supports multiple languages.
|
|
42
51
|
# `distil-whisper/distil-large-v2` does not support language parameter.
|
|
52
|
+
# `nvidia/parakeet-v3` detects the language automatically;
|
|
53
|
+
# `omi-health/omi-med-stt-v1` is English only.
|
|
43
54
|
language: nil,
|
|
44
|
-
# Additional model-specific configuration parameters. Only allowed with
|
|
45
|
-
# `deepgram
|
|
55
|
+
# Additional model-specific configuration parameters. Only allowed with the
|
|
56
|
+
# `deepgram/*` models. Can include Deepgram-specific options such as
|
|
46
57
|
# `smart_format`, `punctuate`, `diarize`, `utterance`, `numerals`, and `language`.
|
|
47
58
|
# If `language` is provided both as a top-level parameter and in `model_config`,
|
|
48
59
|
# the top-level parameter takes precedence.
|
|
@@ -18,9 +18,6 @@ module Telnyx
|
|
|
18
18
|
early_stopping: T::Boolean,
|
|
19
19
|
enable_thinking: T::Boolean,
|
|
20
20
|
frequency_penalty: Float,
|
|
21
|
-
guided_choice: T::Array[String],
|
|
22
|
-
guided_json: T::Hash[Symbol, T.anything],
|
|
23
|
-
guided_regex: String,
|
|
24
21
|
length_penalty: Float,
|
|
25
22
|
logprobs: T::Boolean,
|
|
26
23
|
max_tokens: Integer,
|
|
@@ -33,7 +30,11 @@ module Telnyx
|
|
|
33
30
|
Telnyx::AI::ChatCompletionRequest::ReasoningEffort::OrSymbol,
|
|
34
31
|
region: Telnyx::AI::ChatCompletionRequest::Region::OrSymbol,
|
|
35
32
|
response_format:
|
|
36
|
-
|
|
33
|
+
T.any(
|
|
34
|
+
Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatText::OrHash,
|
|
35
|
+
Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonObject::OrHash,
|
|
36
|
+
Telnyx::AI::ChatCompletionRequest::ResponseFormat::ResponseFormatJsonSchemaParam::OrHash
|
|
37
|
+
),
|
|
37
38
|
seed: Integer,
|
|
38
39
|
service_tier: String,
|
|
39
40
|
stop: Telnyx::AI::ChatCompletionRequest::Stop::Variants,
|
|
@@ -75,13 +76,6 @@ module Telnyx
|
|
|
75
76
|
enable_thinking: nil,
|
|
76
77
|
# Higher values will penalize the model from repeating the same output tokens.
|
|
77
78
|
frequency_penalty: nil,
|
|
78
|
-
# If specified, the output will be exactly one of the choices.
|
|
79
|
-
guided_choice: nil,
|
|
80
|
-
# Must be a valid JSON schema. If specified, the output will follow the JSON
|
|
81
|
-
# schema.
|
|
82
|
-
guided_json: nil,
|
|
83
|
-
# If specified, the output will follow the regex pattern.
|
|
84
|
-
guided_regex: nil,
|
|
85
79
|
# This is used with `use_beam_search` to prefer shorter or longer completions.
|
|
86
80
|
length_penalty: nil,
|
|
87
81
|
# Whether to return log probabilities of the output tokens or not. If true,
|
|
@@ -118,8 +112,10 @@ module Telnyx
|
|
|
118
112
|
# provider never passes through Telnyx model routing, so a region cannot be
|
|
119
113
|
# enforced for it. Omit for today's latency-based routing.
|
|
120
114
|
region: nil,
|
|
121
|
-
#
|
|
122
|
-
#
|
|
115
|
+
# Controls the format of the model output. `json_object` guarantees valid JSON
|
|
116
|
+
# output without defining a schema; `json_schema` constrains the output to the
|
|
117
|
+
# JSON schema you supply via the `json_schema` property and is the supported way
|
|
118
|
+
# to get guaranteed structured output on Telnyx-hosted models.
|
|
123
119
|
response_format: nil,
|
|
124
120
|
# If specified, the system will make a best effort to sample deterministically,
|
|
125
121
|
# such that repeated requests with the same `seed` and parameters should return
|