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
|
@@ -12,11 +12,12 @@ module Telnyx
|
|
|
12
12
|
Variants =
|
|
13
13
|
T.type_alias do
|
|
14
14
|
T.any(
|
|
15
|
+
Telnyx::AI::AssistantTool::Function,
|
|
15
16
|
Telnyx::AI::InferenceEmbeddingWebhookToolParams,
|
|
16
17
|
Telnyx::AI::AssistantTool::ClientSideTool,
|
|
17
18
|
Telnyx::AI::RetrievalTool,
|
|
18
19
|
Telnyx::AI::AssistantTool::Handoff,
|
|
19
|
-
Telnyx::AI::
|
|
20
|
+
Telnyx::AI::AssistantTool::Hangup,
|
|
20
21
|
Telnyx::AI::AssistantTool::Transfer,
|
|
21
22
|
Telnyx::AI::AssistantTool::Invite,
|
|
22
23
|
Telnyx::AI::AssistantTool::Refer,
|
|
@@ -28,6 +29,75 @@ module Telnyx
|
|
|
28
29
|
)
|
|
29
30
|
end
|
|
30
31
|
|
|
32
|
+
class Function < Telnyx::Internal::Type::BaseModel
|
|
33
|
+
OrHash =
|
|
34
|
+
T.type_alias do
|
|
35
|
+
T.any(
|
|
36
|
+
Telnyx::AI::AssistantTool::Function,
|
|
37
|
+
Telnyx::Internal::AnyHash
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
sig { returns(Telnyx::AI::OpenAI::FunctionDefinition) }
|
|
42
|
+
attr_reader :function
|
|
43
|
+
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
function: Telnyx::AI::OpenAI::FunctionDefinition::OrHash
|
|
47
|
+
).void
|
|
48
|
+
end
|
|
49
|
+
attr_writer :function
|
|
50
|
+
|
|
51
|
+
sig { returns(Symbol) }
|
|
52
|
+
attr_accessor :type
|
|
53
|
+
|
|
54
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
55
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
56
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
57
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
58
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
59
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
60
|
+
# per assistant).
|
|
61
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
62
|
+
attr_reader :shared
|
|
63
|
+
|
|
64
|
+
sig { params(shared: T::Boolean).void }
|
|
65
|
+
attr_writer :shared
|
|
66
|
+
|
|
67
|
+
sig do
|
|
68
|
+
params(
|
|
69
|
+
function: Telnyx::AI::OpenAI::FunctionDefinition::OrHash,
|
|
70
|
+
shared: T::Boolean,
|
|
71
|
+
type: Symbol
|
|
72
|
+
).returns(T.attached_class)
|
|
73
|
+
end
|
|
74
|
+
def self.new(
|
|
75
|
+
function:,
|
|
76
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
77
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
78
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
79
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
80
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
81
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
82
|
+
# per assistant).
|
|
83
|
+
shared: nil,
|
|
84
|
+
type: :function
|
|
85
|
+
)
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
sig do
|
|
89
|
+
override.returns(
|
|
90
|
+
{
|
|
91
|
+
function: Telnyx::AI::OpenAI::FunctionDefinition,
|
|
92
|
+
type: Symbol,
|
|
93
|
+
shared: T::Boolean
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
def to_hash
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
31
101
|
class ClientSideTool < Telnyx::Internal::Type::BaseModel
|
|
32
102
|
OrHash =
|
|
33
103
|
T.type_alias do
|
|
@@ -53,14 +123,39 @@ module Telnyx
|
|
|
53
123
|
sig { returns(Symbol) }
|
|
54
124
|
attr_accessor :type
|
|
55
125
|
|
|
126
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
127
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
128
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
129
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
130
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
131
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
132
|
+
# per assistant).
|
|
133
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
134
|
+
attr_reader :shared
|
|
135
|
+
|
|
136
|
+
sig { params(shared: T::Boolean).void }
|
|
137
|
+
attr_writer :shared
|
|
138
|
+
|
|
56
139
|
sig do
|
|
57
140
|
params(
|
|
58
141
|
client_side_tool:
|
|
59
142
|
Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool::OrHash,
|
|
143
|
+
shared: T::Boolean,
|
|
60
144
|
type: Symbol
|
|
61
145
|
).returns(T.attached_class)
|
|
62
146
|
end
|
|
63
|
-
def self.new(
|
|
147
|
+
def self.new(
|
|
148
|
+
client_side_tool:,
|
|
149
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
150
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
151
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
152
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
153
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
154
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
155
|
+
# per assistant).
|
|
156
|
+
shared: nil,
|
|
157
|
+
type: :client_side_tool
|
|
158
|
+
)
|
|
64
159
|
end
|
|
65
160
|
|
|
66
161
|
sig do
|
|
@@ -68,7 +163,8 @@ module Telnyx
|
|
|
68
163
|
{
|
|
69
164
|
client_side_tool:
|
|
70
165
|
Telnyx::AI::AssistantTool::ClientSideTool::ClientSideTool,
|
|
71
|
-
type: Symbol
|
|
166
|
+
type: Symbol,
|
|
167
|
+
shared: T::Boolean
|
|
72
168
|
}
|
|
73
169
|
)
|
|
74
170
|
end
|
|
@@ -270,23 +366,49 @@ module Telnyx
|
|
|
270
366
|
sig { returns(Symbol) }
|
|
271
367
|
attr_accessor :type
|
|
272
368
|
|
|
369
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
370
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
371
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
372
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
373
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
374
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
375
|
+
# per assistant).
|
|
376
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
377
|
+
attr_reader :shared
|
|
378
|
+
|
|
379
|
+
sig { params(shared: T::Boolean).void }
|
|
380
|
+
attr_writer :shared
|
|
381
|
+
|
|
273
382
|
# The handoff tool allows the assistant to hand off control of the conversation to
|
|
274
383
|
# another AI assistant. By default, this will happen transparently to the end
|
|
275
384
|
# user.
|
|
276
385
|
sig do
|
|
277
386
|
params(
|
|
278
387
|
handoff: Telnyx::AI::AssistantTool::Handoff::Handoff::OrHash,
|
|
388
|
+
shared: T::Boolean,
|
|
279
389
|
type: Symbol
|
|
280
390
|
).returns(T.attached_class)
|
|
281
391
|
end
|
|
282
|
-
def self.new(
|
|
392
|
+
def self.new(
|
|
393
|
+
handoff:,
|
|
394
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
395
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
396
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
397
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
398
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
399
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
400
|
+
# per assistant).
|
|
401
|
+
shared: nil,
|
|
402
|
+
type: :handoff
|
|
403
|
+
)
|
|
283
404
|
end
|
|
284
405
|
|
|
285
406
|
sig do
|
|
286
407
|
override.returns(
|
|
287
408
|
{
|
|
288
409
|
handoff: Telnyx::AI::AssistantTool::Handoff::Handoff,
|
|
289
|
-
type: Symbol
|
|
410
|
+
type: Symbol,
|
|
411
|
+
shared: T::Boolean
|
|
290
412
|
}
|
|
291
413
|
)
|
|
292
414
|
end
|
|
@@ -440,6 +562,71 @@ module Telnyx
|
|
|
440
562
|
end
|
|
441
563
|
end
|
|
442
564
|
|
|
565
|
+
class Hangup < Telnyx::Internal::Type::BaseModel
|
|
566
|
+
OrHash =
|
|
567
|
+
T.type_alias do
|
|
568
|
+
T.any(
|
|
569
|
+
Telnyx::AI::AssistantTool::Hangup,
|
|
570
|
+
Telnyx::Internal::AnyHash
|
|
571
|
+
)
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
sig { returns(Telnyx::AI::HangupToolParams) }
|
|
575
|
+
attr_reader :hangup
|
|
576
|
+
|
|
577
|
+
sig { params(hangup: Telnyx::AI::HangupToolParams::OrHash).void }
|
|
578
|
+
attr_writer :hangup
|
|
579
|
+
|
|
580
|
+
sig { returns(Symbol) }
|
|
581
|
+
attr_accessor :type
|
|
582
|
+
|
|
583
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
584
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
585
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
586
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
587
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
588
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
589
|
+
# per assistant).
|
|
590
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
591
|
+
attr_reader :shared
|
|
592
|
+
|
|
593
|
+
sig { params(shared: T::Boolean).void }
|
|
594
|
+
attr_writer :shared
|
|
595
|
+
|
|
596
|
+
sig do
|
|
597
|
+
params(
|
|
598
|
+
hangup: Telnyx::AI::HangupToolParams::OrHash,
|
|
599
|
+
shared: T::Boolean,
|
|
600
|
+
type: Symbol
|
|
601
|
+
).returns(T.attached_class)
|
|
602
|
+
end
|
|
603
|
+
def self.new(
|
|
604
|
+
hangup:,
|
|
605
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
606
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
607
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
608
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
609
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
610
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
611
|
+
# per assistant).
|
|
612
|
+
shared: nil,
|
|
613
|
+
type: :hangup
|
|
614
|
+
)
|
|
615
|
+
end
|
|
616
|
+
|
|
617
|
+
sig do
|
|
618
|
+
override.returns(
|
|
619
|
+
{
|
|
620
|
+
hangup: Telnyx::AI::HangupToolParams,
|
|
621
|
+
type: Symbol,
|
|
622
|
+
shared: T::Boolean
|
|
623
|
+
}
|
|
624
|
+
)
|
|
625
|
+
end
|
|
626
|
+
def to_hash
|
|
627
|
+
end
|
|
628
|
+
end
|
|
629
|
+
|
|
443
630
|
class Transfer < Telnyx::Internal::Type::BaseModel
|
|
444
631
|
OrHash =
|
|
445
632
|
T.type_alias do
|
|
@@ -462,20 +649,46 @@ module Telnyx
|
|
|
462
649
|
sig { returns(Symbol) }
|
|
463
650
|
attr_accessor :type
|
|
464
651
|
|
|
652
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
653
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
654
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
655
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
656
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
657
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
658
|
+
# per assistant).
|
|
659
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
660
|
+
attr_reader :shared
|
|
661
|
+
|
|
662
|
+
sig { params(shared: T::Boolean).void }
|
|
663
|
+
attr_writer :shared
|
|
664
|
+
|
|
465
665
|
sig do
|
|
466
666
|
params(
|
|
467
667
|
transfer: Telnyx::AI::AssistantTool::Transfer::Transfer::OrHash,
|
|
668
|
+
shared: T::Boolean,
|
|
468
669
|
type: Symbol
|
|
469
670
|
).returns(T.attached_class)
|
|
470
671
|
end
|
|
471
|
-
def self.new(
|
|
672
|
+
def self.new(
|
|
673
|
+
transfer:,
|
|
674
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
675
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
676
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
677
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
678
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
679
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
680
|
+
# per assistant).
|
|
681
|
+
shared: nil,
|
|
682
|
+
type: :transfer
|
|
683
|
+
)
|
|
472
684
|
end
|
|
473
685
|
|
|
474
686
|
sig do
|
|
475
687
|
override.returns(
|
|
476
688
|
{
|
|
477
689
|
transfer: Telnyx::AI::AssistantTool::Transfer::Transfer,
|
|
478
|
-
type: Symbol
|
|
690
|
+
type: Symbol,
|
|
691
|
+
shared: T::Boolean
|
|
479
692
|
}
|
|
480
693
|
)
|
|
481
694
|
end
|
|
@@ -1501,20 +1714,46 @@ module Telnyx
|
|
|
1501
1714
|
sig { returns(Symbol) }
|
|
1502
1715
|
attr_accessor :type
|
|
1503
1716
|
|
|
1717
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1718
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1719
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
1720
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1721
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1722
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1723
|
+
# per assistant).
|
|
1724
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
1725
|
+
attr_reader :shared
|
|
1726
|
+
|
|
1727
|
+
sig { params(shared: T::Boolean).void }
|
|
1728
|
+
attr_writer :shared
|
|
1729
|
+
|
|
1504
1730
|
sig do
|
|
1505
1731
|
params(
|
|
1506
1732
|
invite: Telnyx::AI::AssistantTool::Invite::Invite::OrHash,
|
|
1733
|
+
shared: T::Boolean,
|
|
1507
1734
|
type: Symbol
|
|
1508
1735
|
).returns(T.attached_class)
|
|
1509
1736
|
end
|
|
1510
|
-
def self.new(
|
|
1737
|
+
def self.new(
|
|
1738
|
+
invite:,
|
|
1739
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1740
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1741
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
1742
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1743
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1744
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1745
|
+
# per assistant).
|
|
1746
|
+
shared: nil,
|
|
1747
|
+
type: :invite
|
|
1748
|
+
)
|
|
1511
1749
|
end
|
|
1512
1750
|
|
|
1513
1751
|
sig do
|
|
1514
1752
|
override.returns(
|
|
1515
1753
|
{
|
|
1516
1754
|
invite: Telnyx::AI::AssistantTool::Invite::Invite,
|
|
1517
|
-
type: Symbol
|
|
1755
|
+
type: Symbol,
|
|
1756
|
+
shared: T::Boolean
|
|
1518
1757
|
}
|
|
1519
1758
|
)
|
|
1520
1759
|
end
|
|
@@ -1976,18 +2215,47 @@ module Telnyx
|
|
|
1976
2215
|
sig { returns(Symbol) }
|
|
1977
2216
|
attr_accessor :type
|
|
1978
2217
|
|
|
2218
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2219
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2220
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2221
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2222
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2223
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2224
|
+
# per assistant).
|
|
2225
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2226
|
+
attr_reader :shared
|
|
2227
|
+
|
|
2228
|
+
sig { params(shared: T::Boolean).void }
|
|
2229
|
+
attr_writer :shared
|
|
2230
|
+
|
|
1979
2231
|
sig do
|
|
1980
2232
|
params(
|
|
1981
2233
|
refer: Telnyx::AI::AssistantTool::Refer::Refer::OrHash,
|
|
2234
|
+
shared: T::Boolean,
|
|
1982
2235
|
type: Symbol
|
|
1983
2236
|
).returns(T.attached_class)
|
|
1984
2237
|
end
|
|
1985
|
-
def self.new(
|
|
2238
|
+
def self.new(
|
|
2239
|
+
refer:,
|
|
2240
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2241
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2242
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2243
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2244
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2245
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2246
|
+
# per assistant).
|
|
2247
|
+
shared: nil,
|
|
2248
|
+
type: :refer
|
|
2249
|
+
)
|
|
1986
2250
|
end
|
|
1987
2251
|
|
|
1988
2252
|
sig do
|
|
1989
2253
|
override.returns(
|
|
1990
|
-
{
|
|
2254
|
+
{
|
|
2255
|
+
refer: Telnyx::AI::AssistantTool::Refer::Refer,
|
|
2256
|
+
type: Symbol,
|
|
2257
|
+
shared: T::Boolean
|
|
2258
|
+
}
|
|
1991
2259
|
)
|
|
1992
2260
|
end
|
|
1993
2261
|
def to_hash
|
|
@@ -2322,18 +2590,47 @@ module Telnyx
|
|
|
2322
2590
|
sig { returns(Symbol) }
|
|
2323
2591
|
attr_accessor :type
|
|
2324
2592
|
|
|
2593
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2594
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2595
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2596
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2597
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2598
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2599
|
+
# per assistant).
|
|
2600
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2601
|
+
attr_reader :shared
|
|
2602
|
+
|
|
2603
|
+
sig { params(shared: T::Boolean).void }
|
|
2604
|
+
attr_writer :shared
|
|
2605
|
+
|
|
2325
2606
|
sig do
|
|
2326
2607
|
params(
|
|
2327
2608
|
send_dtmf: T::Hash[Symbol, T.anything],
|
|
2609
|
+
shared: T::Boolean,
|
|
2328
2610
|
type: Symbol
|
|
2329
2611
|
).returns(T.attached_class)
|
|
2330
2612
|
end
|
|
2331
|
-
def self.new(
|
|
2613
|
+
def self.new(
|
|
2614
|
+
send_dtmf:,
|
|
2615
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2616
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2617
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2618
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2619
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2620
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2621
|
+
# per assistant).
|
|
2622
|
+
shared: nil,
|
|
2623
|
+
type: :send_dtmf
|
|
2624
|
+
)
|
|
2332
2625
|
end
|
|
2333
2626
|
|
|
2334
2627
|
sig do
|
|
2335
2628
|
override.returns(
|
|
2336
|
-
{
|
|
2629
|
+
{
|
|
2630
|
+
send_dtmf: T::Hash[Symbol, T.anything],
|
|
2631
|
+
type: Symbol,
|
|
2632
|
+
shared: T::Boolean
|
|
2633
|
+
}
|
|
2337
2634
|
)
|
|
2338
2635
|
end
|
|
2339
2636
|
def to_hash
|
|
@@ -2363,6 +2660,19 @@ module Telnyx
|
|
|
2363
2660
|
sig { returns(Symbol) }
|
|
2364
2661
|
attr_accessor :type
|
|
2365
2662
|
|
|
2663
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2664
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2665
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2666
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2667
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2668
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2669
|
+
# per assistant).
|
|
2670
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2671
|
+
attr_reader :shared
|
|
2672
|
+
|
|
2673
|
+
sig { params(shared: T::Boolean).void }
|
|
2674
|
+
attr_writer :shared
|
|
2675
|
+
|
|
2366
2676
|
# The send_message tool allows the assistant to send SMS or MMS messages to the
|
|
2367
2677
|
# end user. The 'to' and 'from' addresses are automatically determined from the
|
|
2368
2678
|
# conversation context, and the message text is generated by the assistant unless
|
|
@@ -2371,10 +2681,22 @@ module Telnyx
|
|
|
2371
2681
|
params(
|
|
2372
2682
|
send_message:
|
|
2373
2683
|
Telnyx::AI::AssistantTool::SendMessage::SendMessage::OrHash,
|
|
2684
|
+
shared: T::Boolean,
|
|
2374
2685
|
type: Symbol
|
|
2375
2686
|
).returns(T.attached_class)
|
|
2376
2687
|
end
|
|
2377
|
-
def self.new(
|
|
2688
|
+
def self.new(
|
|
2689
|
+
send_message:,
|
|
2690
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2691
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2692
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2693
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2694
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2695
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2696
|
+
# per assistant).
|
|
2697
|
+
shared: nil,
|
|
2698
|
+
type: :send_message
|
|
2699
|
+
)
|
|
2378
2700
|
end
|
|
2379
2701
|
|
|
2380
2702
|
sig do
|
|
@@ -2382,7 +2704,8 @@ module Telnyx
|
|
|
2382
2704
|
{
|
|
2383
2705
|
send_message:
|
|
2384
2706
|
Telnyx::AI::AssistantTool::SendMessage::SendMessage,
|
|
2385
|
-
type: Symbol
|
|
2707
|
+
type: Symbol,
|
|
2708
|
+
shared: T::Boolean
|
|
2386
2709
|
}
|
|
2387
2710
|
)
|
|
2388
2711
|
end
|
|
@@ -2449,20 +2772,46 @@ module Telnyx
|
|
|
2449
2772
|
sig { returns(Symbol) }
|
|
2450
2773
|
attr_accessor :type
|
|
2451
2774
|
|
|
2775
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2776
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2777
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2778
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2779
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2780
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2781
|
+
# per assistant).
|
|
2782
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2783
|
+
attr_reader :shared
|
|
2784
|
+
|
|
2785
|
+
sig { params(shared: T::Boolean).void }
|
|
2786
|
+
attr_writer :shared
|
|
2787
|
+
|
|
2452
2788
|
sig do
|
|
2453
2789
|
params(
|
|
2454
2790
|
skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn::OrHash,
|
|
2791
|
+
shared: T::Boolean,
|
|
2455
2792
|
type: Symbol
|
|
2456
2793
|
).returns(T.attached_class)
|
|
2457
2794
|
end
|
|
2458
|
-
def self.new(
|
|
2795
|
+
def self.new(
|
|
2796
|
+
skip_turn:,
|
|
2797
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2798
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2799
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2800
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2801
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2802
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2803
|
+
# per assistant).
|
|
2804
|
+
shared: nil,
|
|
2805
|
+
type: :skip_turn
|
|
2806
|
+
)
|
|
2459
2807
|
end
|
|
2460
2808
|
|
|
2461
2809
|
sig do
|
|
2462
2810
|
override.returns(
|
|
2463
2811
|
{
|
|
2464
2812
|
skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn,
|
|
2465
|
-
type: Symbol
|
|
2813
|
+
type: Symbol,
|
|
2814
|
+
shared: T::Boolean
|
|
2466
2815
|
}
|
|
2467
2816
|
)
|
|
2468
2817
|
end
|
|
@@ -2513,6 +2862,19 @@ module Telnyx
|
|
|
2513
2862
|
sig { returns(Symbol) }
|
|
2514
2863
|
attr_accessor :type
|
|
2515
2864
|
|
|
2865
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2866
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2867
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2868
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2869
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2870
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2871
|
+
# per assistant).
|
|
2872
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2873
|
+
attr_reader :shared
|
|
2874
|
+
|
|
2875
|
+
sig { params(shared: T::Boolean).void }
|
|
2876
|
+
attr_writer :shared
|
|
2877
|
+
|
|
2516
2878
|
# (BETA) The pay tool allows the assistant to collect card payments from the
|
|
2517
2879
|
# caller via DTMF during the conversation. Recording is automatically paused while
|
|
2518
2880
|
# the pay tool is active and resumes when the payment flow completes. The
|
|
@@ -2520,14 +2882,32 @@ module Telnyx
|
|
|
2520
2882
|
sig do
|
|
2521
2883
|
params(
|
|
2522
2884
|
pay: Telnyx::AI::PayToolParams::OrHash,
|
|
2885
|
+
shared: T::Boolean,
|
|
2523
2886
|
type: Symbol
|
|
2524
2887
|
).returns(T.attached_class)
|
|
2525
2888
|
end
|
|
2526
|
-
def self.new(
|
|
2889
|
+
def self.new(
|
|
2890
|
+
pay:,
|
|
2891
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2892
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2893
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2894
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2895
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2896
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2897
|
+
# per assistant).
|
|
2898
|
+
shared: nil,
|
|
2899
|
+
type: :pay
|
|
2900
|
+
)
|
|
2527
2901
|
end
|
|
2528
2902
|
|
|
2529
2903
|
sig do
|
|
2530
|
-
override.returns(
|
|
2904
|
+
override.returns(
|
|
2905
|
+
{
|
|
2906
|
+
pay: Telnyx::AI::PayToolParams,
|
|
2907
|
+
type: Symbol,
|
|
2908
|
+
shared: T::Boolean
|
|
2909
|
+
}
|
|
2910
|
+
)
|
|
2531
2911
|
end
|
|
2532
2912
|
def to_hash
|
|
2533
2913
|
end
|
|
@@ -2557,6 +2937,19 @@ module Telnyx
|
|
|
2557
2937
|
end
|
|
2558
2938
|
attr_writer :update_dynamic_variables
|
|
2559
2939
|
|
|
2940
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2941
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2942
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2943
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2944
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2945
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2946
|
+
# per assistant).
|
|
2947
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2948
|
+
attr_reader :shared
|
|
2949
|
+
|
|
2950
|
+
sig { params(shared: T::Boolean).void }
|
|
2951
|
+
attr_writer :shared
|
|
2952
|
+
|
|
2560
2953
|
# The update_dynamic_variables tool lets the assistant write values into the
|
|
2561
2954
|
# conversation's dynamic-variables context during the call. Updated variables are
|
|
2562
2955
|
# available to later `{{variable}}` interpolation (prompts, speak nodes, message
|
|
@@ -2566,12 +2959,21 @@ module Telnyx
|
|
|
2566
2959
|
params(
|
|
2567
2960
|
update_dynamic_variables:
|
|
2568
2961
|
Telnyx::AI::UpdateDynamicVariablesToolParams::OrHash,
|
|
2962
|
+
shared: T::Boolean,
|
|
2569
2963
|
type: Symbol
|
|
2570
2964
|
).returns(T.attached_class)
|
|
2571
2965
|
end
|
|
2572
2966
|
def self.new(
|
|
2573
2967
|
# Configuration for an update_dynamic_variables tool.
|
|
2574
2968
|
update_dynamic_variables:,
|
|
2969
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2970
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2971
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2972
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2973
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2974
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2975
|
+
# per assistant).
|
|
2976
|
+
shared: nil,
|
|
2575
2977
|
type: :update_dynamic_variables
|
|
2576
2978
|
)
|
|
2577
2979
|
end
|
|
@@ -2581,7 +2983,8 @@ module Telnyx
|
|
|
2581
2983
|
{
|
|
2582
2984
|
type: Symbol,
|
|
2583
2985
|
update_dynamic_variables:
|
|
2584
|
-
Telnyx::AI::UpdateDynamicVariablesToolParams
|
|
2986
|
+
Telnyx::AI::UpdateDynamicVariablesToolParams,
|
|
2987
|
+
shared: T::Boolean
|
|
2585
2988
|
}
|
|
2586
2989
|
)
|
|
2587
2990
|
end
|