telnyx 5.168.0 → 5.170.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 +40 -0
- data/lib/telnyx/internal/email_cursor_pagination.rb +2 -2
- data/lib/telnyx/internal/type/union.rb +6 -6
- data/lib/telnyx/models/ai/assistant_create_params.rb +9 -9
- data/lib/telnyx/models/ai/assistant_tool.rb +316 -13
- data/lib/telnyx/models/ai/assistant_update_params.rb +23 -12
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +23 -12
- 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 +3 -26
- data/lib/telnyx/models/ai/collection.rb +3 -3
- data/lib/telnyx/models/ai/collections/collections_source.rb +64 -0
- data/lib/telnyx/models/ai/collections/source.rb +25 -29
- data/lib/telnyx/models/ai/collections/source_create_response.rb +3 -3
- data/lib/telnyx/models/ai/collections/source_list_response.rb +3 -3
- data/lib/telnyx/models/ai/collections/source_replace_response.rb +3 -3
- data/lib/telnyx/models/ai/flow_node.rb +5 -5
- data/lib/telnyx/models/ai/flow_node_req.rb +3 -3
- data/lib/telnyx/models/ai/inference_embedding.rb +16 -13
- data/lib/telnyx/models/ai/inference_embedding_interruption_settings.rb +10 -1
- data/lib/telnyx/models/ai/inference_embedding_voice_settings.rb +334 -0
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +33 -11
- data/lib/telnyx/models/ai/memory/namespace_retrieve_params.rb +30 -0
- data/lib/telnyx/models/ai/memory/namespace_retrieve_response.rb +76 -0
- data/lib/telnyx/models/ai/memory/namespaces/namespace_settings_response.rb +63 -0
- data/lib/telnyx/models/ai/memory/namespaces/page_meta.rb +58 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_delete_params.rb +35 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_delete_response.rb +47 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_params.rb +94 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_ingest_response.rb +61 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_list_params.rb +48 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_list_response.rb +34 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_recall_params.rb +44 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_recall_response.rb +60 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_remember_params.rb +38 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_remember_response.rb +54 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_retrieve_summary_params.rb +35 -0
- data/lib/telnyx/models/ai/memory/namespaces/profile_retrieve_summary_response.rb +64 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/memory_list_params.rb +76 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/memory_list_response.rb +53 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/memory_retrieve_params.rb +50 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/memory_retrieve_response.rb +74 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_delete_params.rb +52 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_delete_response.rb +60 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_list_params.rb +67 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_params.rb +52 -0
- data/lib/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rb +123 -0
- data/lib/telnyx/models/ai/memory/namespaces/setting_list_params.rb +28 -0
- data/lib/telnyx/models/ai/memory/namespaces/setting_patch_all_params.rb +69 -0
- 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 +86 -16
- 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 +296 -0
- data/lib/telnyx/models/ai/typesafe/v1_systemone_response.rb +235 -0
- data/lib/telnyx/models/ai/webhook_tool.rb +16 -1
- data/lib/telnyx/models/artifact_completed_webhook_event.rb +17 -1
- data/lib/telnyx/models/artifact_failed_webhook_event.rb +4 -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_gather_using_ai_params.rb +11 -3
- data/lib/telnyx/models/calls/action_gather_using_speak_params.rb +11 -3
- data/lib/telnyx/models/calls/action_speak_params.rb +11 -3
- data/lib/telnyx/models/calls/action_start_conversation_relay_params.rb +11 -3
- data/lib/telnyx/models/calls/action_transfer_params.rb +75 -7
- data/lib/telnyx/models/calls/soniox_voice_settings.rb +46 -0
- 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/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/conferences/action_speak_params.rb +11 -3
- 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/conversation_relay_embedded_config.rb +11 -3
- data/lib/telnyx/models/conversation_relay_language.rb +5 -3
- data/lib/telnyx/models/detail_record_list_params.rb +19 -2
- data/lib/telnyx/models/email_block.rb +8 -1
- data/lib/telnyx/models/email_blocks/email_block_import.rb +7 -2
- data/lib/telnyx/models/email_domain_rotate_dkim_params.rb +20 -0
- data/lib/telnyx/models/email_domain_rotate_dkim_response.rb +243 -0
- data/lib/telnyx/models/email_domains/email_webhook_event.rb +8 -3
- data/lib/telnyx/models/email_event_list_params.rb +33 -10
- data/lib/telnyx/models/email_event_list_response.rb +300 -73
- data/lib/telnyx/models/email_event_type.rb +16 -0
- data/lib/telnyx/models/email_inboxes/email_message.rb +56 -4
- data/lib/telnyx/models/email_message_batch_params.rb +32 -15
- data/lib/telnyx/models/email_message_create_params.rb +44 -12
- data/lib/telnyx/models/{email_message_retrieve_response.rb → email_message_detail_response.rb} +5 -5
- data/lib/telnyx/models/email_message_list_params.rb +26 -1
- data/lib/telnyx/models/email_message_update_schedule_params.rb +29 -0
- data/lib/telnyx/models/email_messages/email_recipient.rb +2 -0
- data/lib/telnyx/models/email_messages/recipient_list_params.rb +2 -0
- data/lib/telnyx/models/email_template.rb +68 -2
- data/lib/telnyx/models/email_template_create_params.rb +71 -1
- data/lib/telnyx/models/email_webhook_recipient.rb +39 -0
- 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/meeting_session.rb +34 -6
- data/lib/telnyx/models/meeting_session_create_params.rb +73 -39
- data/lib/telnyx/models/meeting_sessions/artifact_create_params.rb +77 -13
- data/lib/telnyx/models/meeting_sessions/meeting_session_artifact.rb +25 -1
- data/lib/telnyx/models/message_event.rb +41 -2
- 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 +216 -13
- data/lib/telnyx/models/messaging_outbound_message_payload.rb +42 -2
- 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/numbers_phone_number_detailed.rb +19 -5
- data/lib/telnyx/models/outbound_message.rb +1 -0
- data/lib/telnyx/models/outbound_message_payload.rb +45 -5
- data/lib/telnyx/models/private_wireless_gateway.rb +0 -1
- data/lib/telnyx/models/private_wireless_gateway_create_params.rb +28 -1
- data/lib/telnyx/models/private_wireless_gateway_create_response.rb +3 -3
- data/lib/telnyx/models/private_wireless_gateway_delete_response.rb +3 -3
- data/lib/telnyx/models/private_wireless_gateway_retrieve_response.rb +3 -3
- 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/call_retrieve_calls_params.rb +17 -17
- 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/text_to_speech_generate_speech_params.rb +129 -3
- data/lib/telnyx/models/text_to_speech_list_voices_params.rb +1 -0
- data/lib/telnyx/models/text_to_speech_retrieve_speech_params.rb +1 -1
- data/lib/telnyx/models/update_email_template_request.rb +54 -1
- data/lib/telnyx/models/voice_clone_create_from_upload_params.rb +2 -2
- data/lib/telnyx/models/wireless_private_wireless_gateway.rb +120 -0
- data/lib/telnyx/models.rb +28 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +2 -2
- data/lib/telnyx/resources/ai/assistants.rb +4 -4
- data/lib/telnyx/resources/ai/audio.rb +2 -2
- data/lib/telnyx/resources/ai/memory/namespaces/profiles/memories.rb +122 -0
- data/lib/telnyx/resources/ai/memory/namespaces/profiles/sources.rb +163 -0
- data/lib/telnyx/resources/ai/memory/namespaces/profiles.rb +244 -0
- data/lib/telnyx/resources/ai/memory/namespaces/settings.rb +76 -0
- data/lib/telnyx/resources/ai/memory/namespaces.rb +55 -0
- data/lib/telnyx/resources/ai/memory.rb +21 -0
- data/lib/telnyx/resources/ai/typesafe/v1.rb +71 -0
- data/lib/telnyx/resources/ai/typesafe.rb +22 -0
- data/lib/telnyx/resources/ai.rb +8 -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 +5 -5
- 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 +4 -0
- data/lib/telnyx/resources/conferences/actions.rb +1 -1
- data/lib/telnyx/resources/connections.rb +20 -0
- data/lib/telnyx/resources/detail_records.rb +1 -1
- data/lib/telnyx/resources/email_blocks/imports.rb +17 -3
- data/lib/telnyx/resources/email_blocks.rb +5 -3
- data/lib/telnyx/resources/email_domains.rb +28 -0
- data/lib/telnyx/resources/email_events.rb +21 -9
- data/lib/telnyx/resources/email_messages.rb +61 -15
- data/lib/telnyx/resources/email_templates.rb +33 -3
- data/lib/telnyx/resources/machine_payments.rb +73 -0
- data/lib/telnyx/resources/meeting_sessions/actions.rb +7 -1
- data/lib/telnyx/resources/meeting_sessions/artifacts.rb +18 -9
- data/lib/telnyx/resources/meeting_sessions.rb +6 -5
- data/lib/telnyx/resources/noise_suppression_engines.rb +37 -0
- data/lib/telnyx/resources/private_wireless_gateways.rb +5 -3
- data/lib/telnyx/resources/texml/accounts/calls.rb +9 -9
- 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/text_to_speech.rb +6 -4
- data/lib/telnyx/resources/voice_clones.rb +4 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +75 -1
- data/rbi/telnyx/client.rbi +35 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +24 -16
- data/rbi/telnyx/models/ai/assistant_tool.rbi +479 -25
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +50 -20
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +54 -20
- 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 +4 -58
- data/rbi/telnyx/models/ai/collection.rbi +10 -4
- data/rbi/telnyx/models/ai/collections/collections_source.rbi +110 -0
- data/rbi/telnyx/models/ai/collections/source.rbi +36 -62
- data/rbi/telnyx/models/ai/collections/source_create_response.rbi +14 -6
- data/rbi/telnyx/models/ai/collections/source_list_response.rbi +10 -4
- data/rbi/telnyx/models/ai/collections/source_replace_response.rbi +11 -4
- data/rbi/telnyx/models/ai/flow_node.rbi +12 -6
- data/rbi/telnyx/models/ai/flow_node_req.rbi +8 -4
- data/rbi/telnyx/models/ai/inference_embedding.rbi +32 -20
- data/rbi/telnyx/models/ai/inference_embedding_interruption_settings.rbi +10 -0
- data/rbi/telnyx/models/ai/inference_embedding_voice_settings.rbi +803 -0
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +49 -19
- data/rbi/telnyx/models/ai/memory/namespace_retrieve_params.rbi +50 -0
- data/rbi/telnyx/models/ai/memory/namespace_retrieve_response.rbi +167 -0
- data/rbi/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbi +156 -0
- data/rbi/telnyx/models/ai/memory/namespaces/page_meta.rbi +81 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_delete_params.rbi +58 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_delete_response.rbi +97 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbi +149 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_ingest_response.rbi +113 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_list_params.rbi +74 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_list_response.rbi +48 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_recall_params.rbi +68 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_recall_response.rbi +109 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_remember_params.rbi +57 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_remember_response.rbi +107 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_retrieve_summary_params.rbi +58 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profile_retrieve_summary_response.rbi +119 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/memory_list_params.rbi +102 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/memory_list_response.rbi +72 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/memory_retrieve_params.rbi +70 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/memory_retrieve_response.rbi +129 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_delete_params.rbi +74 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_delete_response.rbi +117 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_list_params.rbi +92 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_params.rbi +74 -0
- data/rbi/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbi +209 -0
- data/rbi/telnyx/models/ai/memory/namespaces/setting_list_params.rbi +49 -0
- data/rbi/telnyx/models/ai/memory/namespaces/setting_patch_all_params.rbi +125 -0
- 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 +174 -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 +566 -0
- data/rbi/telnyx/models/ai/typesafe/v1_systemone_response.rbi +388 -0
- data/rbi/telnyx/models/ai/webhook_tool.rbi +23 -3
- data/rbi/telnyx/models/artifact_completed_webhook_event.rbi +30 -0
- data/rbi/telnyx/models/artifact_failed_webhook_event.rbi +20 -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_gather_using_ai_params.rbi +22 -5
- data/rbi/telnyx/models/calls/action_gather_using_speak_params.rbi +22 -5
- data/rbi/telnyx/models/calls/action_speak_params.rbi +22 -5
- data/rbi/telnyx/models/calls/action_start_conversation_relay_params.rbi +22 -5
- data/rbi/telnyx/models/calls/action_transfer_params.rbi +111 -10
- data/rbi/telnyx/models/calls/soniox_voice_settings.rbi +86 -0
- 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/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/conferences/action_speak_params.rbi +22 -5
- 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/conversation_relay_embedded_config.rbi +22 -5
- data/rbi/telnyx/models/conversation_relay_language.rbi +10 -5
- data/rbi/telnyx/models/detail_record_list_params.rbi +30 -2
- data/rbi/telnyx/models/email_block.rbi +8 -0
- data/rbi/telnyx/models/email_blocks/email_block_import.rbi +6 -2
- data/rbi/telnyx/models/email_domain_rotate_dkim_params.rbi +35 -0
- data/rbi/telnyx/models/email_domain_rotate_dkim_response.rbi +487 -0
- data/rbi/telnyx/models/email_domains/email_webhook_event.rbi +20 -3
- data/rbi/telnyx/models/email_event_list_params.rbi +46 -11
- data/rbi/telnyx/models/email_event_list_response.rbi +599 -97
- data/rbi/telnyx/models/email_event_type.rbi +25 -0
- data/rbi/telnyx/models/email_inboxes/email_message.rbi +81 -3
- data/rbi/telnyx/models/email_message_batch_params.rbi +54 -20
- data/rbi/telnyx/models/email_message_create_params.rbi +80 -16
- data/rbi/telnyx/models/{email_message_retrieve_response.rbi → email_message_detail_response.rbi} +9 -16
- data/rbi/telnyx/models/email_message_list_params.rbi +40 -0
- data/rbi/telnyx/models/email_message_update_schedule_params.rbi +52 -0
- data/rbi/telnyx/models/email_messages/email_recipient.rbi +10 -0
- data/rbi/telnyx/models/email_messages/recipient_list_params.rbi +10 -0
- data/rbi/telnyx/models/email_template.rbi +84 -0
- data/rbi/telnyx/models/email_template_create_params.rbi +124 -0
- data/rbi/telnyx/models/email_webhook_recipient.rbi +68 -0
- 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/meeting_session.rbi +36 -10
- data/rbi/telnyx/models/meeting_session_create_params.rbi +112 -48
- data/rbi/telnyx/models/meeting_sessions/artifact_create_params.rbi +161 -24
- data/rbi/telnyx/models/meeting_sessions/meeting_session_artifact.rbi +30 -0
- data/rbi/telnyx/models/message_event.rbi +48 -1
- 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 +477 -15
- data/rbi/telnyx/models/messaging_outbound_message_payload.rbi +90 -16
- 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/numbers_phone_number_detailed.rbi +24 -4
- data/rbi/telnyx/models/outbound_message.rbi +5 -0
- data/rbi/telnyx/models/outbound_message_payload.rbi +74 -4
- data/rbi/telnyx/models/private_wireless_gateway_create_params.rbi +71 -0
- data/rbi/telnyx/models/private_wireless_gateway_create_response.rbi +4 -4
- data/rbi/telnyx/models/private_wireless_gateway_delete_response.rbi +4 -4
- data/rbi/telnyx/models/private_wireless_gateway_retrieve_response.rbi +4 -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/call_retrieve_calls_params.rbi +22 -22
- 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/text_to_speech_generate_speech_params.rbi +311 -2
- data/rbi/telnyx/models/text_to_speech_list_voices_params.rbi +5 -0
- data/rbi/telnyx/models/text_to_speech_retrieve_speech_params.rbi +5 -5
- data/rbi/telnyx/models/update_email_template_request.rbi +90 -0
- data/rbi/telnyx/models/voice_clone_create_from_upload_params.rbi +4 -4
- data/rbi/telnyx/models/wireless_private_wireless_gateway.rbi +211 -0
- data/rbi/telnyx/models.rbi +33 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +21 -8
- data/rbi/telnyx/resources/ai/assistants.rbi +27 -14
- data/rbi/telnyx/resources/ai/audio.rbi +20 -9
- data/rbi/telnyx/resources/ai/memory/namespaces/profiles/memories.rbi +94 -0
- data/rbi/telnyx/resources/ai/memory/namespaces/profiles/sources.rbi +117 -0
- data/rbi/telnyx/resources/ai/memory/namespaces/profiles.rbi +196 -0
- data/rbi/telnyx/resources/ai/memory/namespaces/settings.rbi +67 -0
- data/rbi/telnyx/resources/ai/memory/namespaces.rbi +37 -0
- data/rbi/telnyx/resources/ai/memory.rbi +18 -0
- data/rbi/telnyx/resources/ai/typesafe/v1.rbi +71 -0
- data/rbi/telnyx/resources/ai/typesafe.rbi +19 -0
- data/rbi/telnyx/resources/ai.rbi +6 -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 +38 -9
- 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 +3 -0
- data/rbi/telnyx/resources/conferences/actions.rbi +8 -1
- data/rbi/telnyx/resources/connections.rbi +11 -0
- data/rbi/telnyx/resources/detail_records.rbi +12 -1
- data/rbi/telnyx/resources/email_blocks/imports.rbi +17 -3
- data/rbi/telnyx/resources/email_blocks.rbi +5 -3
- data/rbi/telnyx/resources/email_domains.rbi +22 -0
- data/rbi/telnyx/resources/email_events.rbi +30 -9
- data/rbi/telnyx/resources/email_messages.rbi +104 -18
- data/rbi/telnyx/resources/email_templates.rbi +71 -0
- data/rbi/telnyx/resources/machine_payments.rbi +64 -0
- data/rbi/telnyx/resources/meeting_sessions/actions.rbi +7 -1
- data/rbi/telnyx/resources/meeting_sessions/artifacts.rbi +19 -8
- data/rbi/telnyx/resources/meeting_sessions.rbi +15 -7
- data/rbi/telnyx/resources/noise_suppression_engines.rbi +26 -0
- data/rbi/telnyx/resources/private_wireless_gateways.rbi +9 -1
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +6 -6
- 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/text_to_speech.rbi +7 -3
- data/rbi/telnyx/resources/voice_clones.rbi +4 -2
- data/sig/telnyx/client.rbs +10 -0
- data/sig/telnyx/models/ai/assistant_create_params.rbs +6 -6
- data/sig/telnyx/models/ai/assistant_tool.rbs +195 -26
- data/sig/telnyx/models/ai/assistant_update_params.rbs +6 -6
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +6 -6
- 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 +4 -35
- data/sig/telnyx/models/ai/collection.rbs +6 -6
- data/sig/telnyx/models/ai/collections/collections_source.rbs +65 -0
- data/sig/telnyx/models/ai/collections/source.rbs +18 -37
- data/sig/telnyx/models/ai/collections/source_create_response.rbs +9 -6
- data/sig/telnyx/models/ai/collections/source_list_response.rbs +8 -6
- data/sig/telnyx/models/ai/collections/source_replace_response.rbs +6 -6
- data/sig/telnyx/models/ai/flow_node.rbs +6 -6
- data/sig/telnyx/models/ai/flow_node_req.rbs +6 -6
- data/sig/telnyx/models/ai/inference_embedding.rbs +6 -6
- data/sig/telnyx/models/ai/inference_embedding_interruption_settings.rbs +5 -0
- data/sig/telnyx/models/ai/inference_embedding_voice_settings.rbs +308 -0
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +20 -13
- data/sig/telnyx/models/ai/memory/namespace_retrieve_params.rbs +32 -0
- data/sig/telnyx/models/ai/memory/namespace_retrieve_response.rbs +69 -0
- data/sig/telnyx/models/ai/memory/namespaces/namespace_settings_response.rbs +59 -0
- data/sig/telnyx/models/ai/memory/namespaces/page_meta.rbs +41 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_delete_params.rbs +34 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_delete_response.rbs +41 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_params.rbs +69 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_ingest_response.rbs +58 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_list_params.rbs +42 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_list_response.rbs +22 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_recall_params.rbs +47 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_recall_response.rbs +53 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_remember_params.rbs +38 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_remember_response.rbs +49 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_retrieve_summary_params.rbs +34 -0
- data/sig/telnyx/models/ai/memory/namespaces/profile_retrieve_summary_response.rbs +58 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/memory_list_params.rbs +63 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/memory_list_response.rbs +43 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/memory_retrieve_params.rbs +40 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/memory_retrieve_response.rbs +65 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_delete_params.rbs +40 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_delete_response.rbs +55 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_list_params.rbs +58 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_params.rbs +40 -0
- data/sig/telnyx/models/ai/memory/namespaces/profiles/source_retrieve_response.rbs +92 -0
- data/sig/telnyx/models/ai/memory/namespaces/setting_list_params.rbs +29 -0
- data/sig/telnyx/models/ai/memory/namespaces/setting_patch_all_params.rbs +47 -0
- 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 +52 -4
- data/sig/telnyx/models/ai/transcription_settings.rbs +4 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_params.rbs +215 -0
- data/sig/telnyx/models/ai/typesafe/v1_systemone_response.rbs +152 -0
- data/sig/telnyx/models/ai/webhook_tool.rbs +10 -3
- data/sig/telnyx/models/artifact_completed_webhook_event.rbs +16 -1
- data/sig/telnyx/models/artifact_failed_webhook_event.rbs +11 -1
- 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_gather_using_ai_params.rbs +1 -0
- data/sig/telnyx/models/calls/action_gather_using_speak_params.rbs +1 -0
- data/sig/telnyx/models/calls/action_speak_params.rbs +1 -0
- data/sig/telnyx/models/calls/action_start_conversation_relay_params.rbs +1 -0
- data/sig/telnyx/models/calls/action_transfer_params.rbs +49 -0
- data/sig/telnyx/models/calls/soniox_voice_settings.rbs +46 -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/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/conferences/action_speak_params.rbs +1 -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/conversation_relay_embedded_config.rbs +1 -0
- data/sig/telnyx/models/conversation_relay_language.rbs +1 -0
- data/sig/telnyx/models/email_domain_rotate_dkim_params.rbs +23 -0
- data/sig/telnyx/models/email_domain_rotate_dkim_response.rbs +195 -0
- data/sig/telnyx/models/email_domains/email_webhook_event.rbs +6 -0
- data/sig/telnyx/models/email_event_list_params.rbs +7 -7
- data/sig/telnyx/models/email_event_list_response.rbs +235 -59
- data/sig/telnyx/models/email_event_type.rbs +20 -0
- data/sig/telnyx/models/email_inboxes/email_message.rbs +43 -4
- data/sig/telnyx/models/{email_message_retrieve_response.rbs → email_message_detail_response.rbs} +6 -10
- data/sig/telnyx/models/email_message_list_params.rbs +18 -1
- data/sig/telnyx/models/email_message_update_schedule_params.rbs +28 -0
- data/sig/telnyx/models/email_messages/email_recipient.rbs +4 -0
- data/sig/telnyx/models/email_messages/recipient_list_params.rbs +4 -0
- data/sig/telnyx/models/email_template.rbs +29 -0
- data/sig/telnyx/models/email_template_create_params.rbs +33 -0
- data/sig/telnyx/models/email_webhook_recipient.rbs +46 -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/meeting_session.rbs +20 -5
- data/sig/telnyx/models/meeting_session_create_params.rbs +28 -20
- data/sig/telnyx/models/meeting_sessions/artifact_create_params.rbs +53 -10
- data/sig/telnyx/models/meeting_sessions/meeting_session_artifact.rbs +16 -1
- data/sig/telnyx/models/message_event.rbs +10 -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 +235 -6
- data/sig/telnyx/models/messaging_outbound_message_payload.rbs +39 -1
- 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/numbers_phone_number_detailed.rbs +5 -0
- data/sig/telnyx/models/outbound_message.rbs +2 -1
- data/sig/telnyx/models/outbound_message_payload.rbs +45 -7
- data/sig/telnyx/models/private_wireless_gateway_create_params.rbs +25 -1
- data/sig/telnyx/models/private_wireless_gateway_create_response.rbs +6 -6
- data/sig/telnyx/models/private_wireless_gateway_delete_response.rbs +6 -6
- data/sig/telnyx/models/private_wireless_gateway_retrieve_response.rbs +6 -6
- 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/call_retrieve_calls_params.rbs +14 -14
- 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/text_to_speech_generate_speech_params.rbs +114 -0
- data/sig/telnyx/models/text_to_speech_list_voices_params.rbs +2 -0
- data/sig/telnyx/models/text_to_speech_retrieve_speech_params.rbs +2 -2
- data/sig/telnyx/models/update_email_template_request.rbs +33 -0
- data/sig/telnyx/models/wireless_private_wireless_gateway.rbs +109 -0
- data/sig/telnyx/models.rbs +28 -0
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -1
- data/sig/telnyx/resources/ai/assistants.rbs +2 -2
- data/sig/telnyx/resources/ai/memory/namespaces/profiles/memories.rbs +32 -0
- data/sig/telnyx/resources/ai/memory/namespaces/profiles/sources.rbs +38 -0
- data/sig/telnyx/resources/ai/memory/namespaces/profiles.rbs +59 -0
- data/sig/telnyx/resources/ai/memory/namespaces/settings.rbs +24 -0
- data/sig/telnyx/resources/ai/memory/namespaces.rbs +21 -0
- data/sig/telnyx/resources/ai/memory.rbs +11 -0
- data/sig/telnyx/resources/ai/typesafe/v1.rbs +18 -0
- data/sig/telnyx/resources/ai/typesafe.rbs +11 -0
- data/sig/telnyx/resources/ai.rbs +4 -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 +2 -0
- data/sig/telnyx/resources/connections.rbs +4 -0
- data/sig/telnyx/resources/email_domains.rbs +5 -0
- data/sig/telnyx/resources/email_events.rbs +2 -2
- data/sig/telnyx/resources/email_messages.rbs +9 -1
- data/sig/telnyx/resources/email_templates.rbs +9 -0
- data/sig/telnyx/resources/machine_payments.rbs +12 -0
- data/sig/telnyx/resources/meeting_sessions/artifacts.rbs +1 -1
- data/sig/telnyx/resources/meeting_sessions.rbs +1 -0
- data/sig/telnyx/resources/noise_suppression_engines.rbs +11 -0
- data/sig/telnyx/resources/private_wireless_gateways.rbs +2 -1
- 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/text_to_speech.rbs +1 -0
- metadata +227 -5
|
@@ -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
|
|
@@ -737,6 +950,17 @@ module Telnyx
|
|
|
737
950
|
sig { returns(String) }
|
|
738
951
|
attr_accessor :to
|
|
739
952
|
|
|
953
|
+
# DTMF digits to send automatically after the transfer destination answers. Useful
|
|
954
|
+
# for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
|
|
955
|
+
# the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
|
|
956
|
+
# `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
|
|
957
|
+
# is sent.
|
|
958
|
+
sig { returns(T.nilable(String)) }
|
|
959
|
+
attr_reader :extension
|
|
960
|
+
|
|
961
|
+
sig { params(extension: String).void }
|
|
962
|
+
attr_writer :extension
|
|
963
|
+
|
|
740
964
|
# The warm transfer message to deliver to this specific target. When set, it takes
|
|
741
965
|
# precedence over the message the assistant composes from
|
|
742
966
|
# `warm_transfer_instructions`.
|
|
@@ -753,26 +977,66 @@ module Telnyx
|
|
|
753
977
|
sig { params(name: String).void }
|
|
754
978
|
attr_writer :name
|
|
755
979
|
|
|
980
|
+
# SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
|
|
981
|
+
# URI.
|
|
982
|
+
sig { returns(T.nilable(String)) }
|
|
983
|
+
attr_reader :sip_auth_password
|
|
984
|
+
|
|
985
|
+
sig { params(sip_auth_password: String).void }
|
|
986
|
+
attr_writer :sip_auth_password
|
|
987
|
+
|
|
988
|
+
# SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
|
|
989
|
+
# URI.
|
|
990
|
+
sig { returns(T.nilable(String)) }
|
|
991
|
+
attr_reader :sip_auth_username
|
|
992
|
+
|
|
993
|
+
sig { params(sip_auth_username: String).void }
|
|
994
|
+
attr_writer :sip_auth_username
|
|
995
|
+
|
|
756
996
|
sig do
|
|
757
|
-
params(
|
|
758
|
-
|
|
759
|
-
|
|
997
|
+
params(
|
|
998
|
+
to: String,
|
|
999
|
+
extension: String,
|
|
1000
|
+
message: String,
|
|
1001
|
+
name: String,
|
|
1002
|
+
sip_auth_password: String,
|
|
1003
|
+
sip_auth_username: String
|
|
1004
|
+
).returns(T.attached_class)
|
|
760
1005
|
end
|
|
761
1006
|
def self.new(
|
|
762
1007
|
# The destination number or SIP URI of the call.
|
|
763
1008
|
to:,
|
|
1009
|
+
# DTMF digits to send automatically after the transfer destination answers. Useful
|
|
1010
|
+
# for reaching an extension behind an IVR (e.g. `"200"` to dial extension 200 once
|
|
1011
|
+
# the called party picks up). Allowed characters: `0-9`, `A-D`, `w` (0.5s pause),
|
|
1012
|
+
# `W` (1s pause), `*`, `#`. Maximum 64 characters. When omitted, no automatic DTMF
|
|
1013
|
+
# is sent.
|
|
1014
|
+
extension: nil,
|
|
764
1015
|
# The warm transfer message to deliver to this specific target. When set, it takes
|
|
765
1016
|
# precedence over the message the assistant composes from
|
|
766
1017
|
# `warm_transfer_instructions`.
|
|
767
1018
|
message: nil,
|
|
768
1019
|
# The name of the target.
|
|
769
|
-
name: nil
|
|
1020
|
+
name: nil,
|
|
1021
|
+
# SIP Authentication password used for SIP challenges. Applies when `to` is a SIP
|
|
1022
|
+
# URI.
|
|
1023
|
+
sip_auth_password: nil,
|
|
1024
|
+
# SIP Authentication username used for SIP challenges. Applies when `to` is a SIP
|
|
1025
|
+
# URI.
|
|
1026
|
+
sip_auth_username: nil
|
|
770
1027
|
)
|
|
771
1028
|
end
|
|
772
1029
|
|
|
773
1030
|
sig do
|
|
774
1031
|
override.returns(
|
|
775
|
-
{
|
|
1032
|
+
{
|
|
1033
|
+
to: String,
|
|
1034
|
+
extension: String,
|
|
1035
|
+
message: String,
|
|
1036
|
+
name: String,
|
|
1037
|
+
sip_auth_password: String,
|
|
1038
|
+
sip_auth_username: String
|
|
1039
|
+
}
|
|
776
1040
|
)
|
|
777
1041
|
end
|
|
778
1042
|
def to_hash
|
|
@@ -1501,20 +1765,46 @@ module Telnyx
|
|
|
1501
1765
|
sig { returns(Symbol) }
|
|
1502
1766
|
attr_accessor :type
|
|
1503
1767
|
|
|
1768
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1769
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1770
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
1771
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1772
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1773
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1774
|
+
# per assistant).
|
|
1775
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
1776
|
+
attr_reader :shared
|
|
1777
|
+
|
|
1778
|
+
sig { params(shared: T::Boolean).void }
|
|
1779
|
+
attr_writer :shared
|
|
1780
|
+
|
|
1504
1781
|
sig do
|
|
1505
1782
|
params(
|
|
1506
1783
|
invite: Telnyx::AI::AssistantTool::Invite::Invite::OrHash,
|
|
1784
|
+
shared: T::Boolean,
|
|
1507
1785
|
type: Symbol
|
|
1508
1786
|
).returns(T.attached_class)
|
|
1509
1787
|
end
|
|
1510
|
-
def self.new(
|
|
1788
|
+
def self.new(
|
|
1789
|
+
invite:,
|
|
1790
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
1791
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
1792
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
1793
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
1794
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
1795
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
1796
|
+
# per assistant).
|
|
1797
|
+
shared: nil,
|
|
1798
|
+
type: :invite
|
|
1799
|
+
)
|
|
1511
1800
|
end
|
|
1512
1801
|
|
|
1513
1802
|
sig do
|
|
1514
1803
|
override.returns(
|
|
1515
1804
|
{
|
|
1516
1805
|
invite: Telnyx::AI::AssistantTool::Invite::Invite,
|
|
1517
|
-
type: Symbol
|
|
1806
|
+
type: Symbol,
|
|
1807
|
+
shared: T::Boolean
|
|
1518
1808
|
}
|
|
1519
1809
|
)
|
|
1520
1810
|
end
|
|
@@ -1976,18 +2266,47 @@ module Telnyx
|
|
|
1976
2266
|
sig { returns(Symbol) }
|
|
1977
2267
|
attr_accessor :type
|
|
1978
2268
|
|
|
2269
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2270
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2271
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2272
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2273
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2274
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2275
|
+
# per assistant).
|
|
2276
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2277
|
+
attr_reader :shared
|
|
2278
|
+
|
|
2279
|
+
sig { params(shared: T::Boolean).void }
|
|
2280
|
+
attr_writer :shared
|
|
2281
|
+
|
|
1979
2282
|
sig do
|
|
1980
2283
|
params(
|
|
1981
2284
|
refer: Telnyx::AI::AssistantTool::Refer::Refer::OrHash,
|
|
2285
|
+
shared: T::Boolean,
|
|
1982
2286
|
type: Symbol
|
|
1983
2287
|
).returns(T.attached_class)
|
|
1984
2288
|
end
|
|
1985
|
-
def self.new(
|
|
2289
|
+
def self.new(
|
|
2290
|
+
refer:,
|
|
2291
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2292
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2293
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2294
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2295
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2296
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2297
|
+
# per assistant).
|
|
2298
|
+
shared: nil,
|
|
2299
|
+
type: :refer
|
|
2300
|
+
)
|
|
1986
2301
|
end
|
|
1987
2302
|
|
|
1988
2303
|
sig do
|
|
1989
2304
|
override.returns(
|
|
1990
|
-
{
|
|
2305
|
+
{
|
|
2306
|
+
refer: Telnyx::AI::AssistantTool::Refer::Refer,
|
|
2307
|
+
type: Symbol,
|
|
2308
|
+
shared: T::Boolean
|
|
2309
|
+
}
|
|
1991
2310
|
)
|
|
1992
2311
|
end
|
|
1993
2312
|
def to_hash
|
|
@@ -2322,18 +2641,47 @@ module Telnyx
|
|
|
2322
2641
|
sig { returns(Symbol) }
|
|
2323
2642
|
attr_accessor :type
|
|
2324
2643
|
|
|
2644
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2645
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2646
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2647
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2648
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2649
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2650
|
+
# per assistant).
|
|
2651
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2652
|
+
attr_reader :shared
|
|
2653
|
+
|
|
2654
|
+
sig { params(shared: T::Boolean).void }
|
|
2655
|
+
attr_writer :shared
|
|
2656
|
+
|
|
2325
2657
|
sig do
|
|
2326
2658
|
params(
|
|
2327
2659
|
send_dtmf: T::Hash[Symbol, T.anything],
|
|
2660
|
+
shared: T::Boolean,
|
|
2328
2661
|
type: Symbol
|
|
2329
2662
|
).returns(T.attached_class)
|
|
2330
2663
|
end
|
|
2331
|
-
def self.new(
|
|
2664
|
+
def self.new(
|
|
2665
|
+
send_dtmf:,
|
|
2666
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2667
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2668
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2669
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2670
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2671
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2672
|
+
# per assistant).
|
|
2673
|
+
shared: nil,
|
|
2674
|
+
type: :send_dtmf
|
|
2675
|
+
)
|
|
2332
2676
|
end
|
|
2333
2677
|
|
|
2334
2678
|
sig do
|
|
2335
2679
|
override.returns(
|
|
2336
|
-
{
|
|
2680
|
+
{
|
|
2681
|
+
send_dtmf: T::Hash[Symbol, T.anything],
|
|
2682
|
+
type: Symbol,
|
|
2683
|
+
shared: T::Boolean
|
|
2684
|
+
}
|
|
2337
2685
|
)
|
|
2338
2686
|
end
|
|
2339
2687
|
def to_hash
|
|
@@ -2363,6 +2711,19 @@ module Telnyx
|
|
|
2363
2711
|
sig { returns(Symbol) }
|
|
2364
2712
|
attr_accessor :type
|
|
2365
2713
|
|
|
2714
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2715
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2716
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2717
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2718
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2719
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2720
|
+
# per assistant).
|
|
2721
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2722
|
+
attr_reader :shared
|
|
2723
|
+
|
|
2724
|
+
sig { params(shared: T::Boolean).void }
|
|
2725
|
+
attr_writer :shared
|
|
2726
|
+
|
|
2366
2727
|
# The send_message tool allows the assistant to send SMS or MMS messages to the
|
|
2367
2728
|
# end user. The 'to' and 'from' addresses are automatically determined from the
|
|
2368
2729
|
# conversation context, and the message text is generated by the assistant unless
|
|
@@ -2371,10 +2732,22 @@ module Telnyx
|
|
|
2371
2732
|
params(
|
|
2372
2733
|
send_message:
|
|
2373
2734
|
Telnyx::AI::AssistantTool::SendMessage::SendMessage::OrHash,
|
|
2735
|
+
shared: T::Boolean,
|
|
2374
2736
|
type: Symbol
|
|
2375
2737
|
).returns(T.attached_class)
|
|
2376
2738
|
end
|
|
2377
|
-
def self.new(
|
|
2739
|
+
def self.new(
|
|
2740
|
+
send_message:,
|
|
2741
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2742
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2743
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2744
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2745
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2746
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2747
|
+
# per assistant).
|
|
2748
|
+
shared: nil,
|
|
2749
|
+
type: :send_message
|
|
2750
|
+
)
|
|
2378
2751
|
end
|
|
2379
2752
|
|
|
2380
2753
|
sig do
|
|
@@ -2382,7 +2755,8 @@ module Telnyx
|
|
|
2382
2755
|
{
|
|
2383
2756
|
send_message:
|
|
2384
2757
|
Telnyx::AI::AssistantTool::SendMessage::SendMessage,
|
|
2385
|
-
type: Symbol
|
|
2758
|
+
type: Symbol,
|
|
2759
|
+
shared: T::Boolean
|
|
2386
2760
|
}
|
|
2387
2761
|
)
|
|
2388
2762
|
end
|
|
@@ -2449,20 +2823,46 @@ module Telnyx
|
|
|
2449
2823
|
sig { returns(Symbol) }
|
|
2450
2824
|
attr_accessor :type
|
|
2451
2825
|
|
|
2826
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2827
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2828
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2829
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2830
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2831
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2832
|
+
# per assistant).
|
|
2833
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2834
|
+
attr_reader :shared
|
|
2835
|
+
|
|
2836
|
+
sig { params(shared: T::Boolean).void }
|
|
2837
|
+
attr_writer :shared
|
|
2838
|
+
|
|
2452
2839
|
sig do
|
|
2453
2840
|
params(
|
|
2454
2841
|
skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn::OrHash,
|
|
2842
|
+
shared: T::Boolean,
|
|
2455
2843
|
type: Symbol
|
|
2456
2844
|
).returns(T.attached_class)
|
|
2457
2845
|
end
|
|
2458
|
-
def self.new(
|
|
2846
|
+
def self.new(
|
|
2847
|
+
skip_turn:,
|
|
2848
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2849
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2850
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2851
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2852
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2853
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2854
|
+
# per assistant).
|
|
2855
|
+
shared: nil,
|
|
2856
|
+
type: :skip_turn
|
|
2857
|
+
)
|
|
2459
2858
|
end
|
|
2460
2859
|
|
|
2461
2860
|
sig do
|
|
2462
2861
|
override.returns(
|
|
2463
2862
|
{
|
|
2464
2863
|
skip_turn: Telnyx::AI::AssistantTool::SkipTurn::SkipTurn,
|
|
2465
|
-
type: Symbol
|
|
2864
|
+
type: Symbol,
|
|
2865
|
+
shared: T::Boolean
|
|
2466
2866
|
}
|
|
2467
2867
|
)
|
|
2468
2868
|
end
|
|
@@ -2513,6 +2913,19 @@ module Telnyx
|
|
|
2513
2913
|
sig { returns(Symbol) }
|
|
2514
2914
|
attr_accessor :type
|
|
2515
2915
|
|
|
2916
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2917
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2918
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2919
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2920
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2921
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2922
|
+
# per assistant).
|
|
2923
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2924
|
+
attr_reader :shared
|
|
2925
|
+
|
|
2926
|
+
sig { params(shared: T::Boolean).void }
|
|
2927
|
+
attr_writer :shared
|
|
2928
|
+
|
|
2516
2929
|
# (BETA) The pay tool allows the assistant to collect card payments from the
|
|
2517
2930
|
# caller via DTMF during the conversation. Recording is automatically paused while
|
|
2518
2931
|
# the pay tool is active and resumes when the payment flow completes. The
|
|
@@ -2520,14 +2933,32 @@ module Telnyx
|
|
|
2520
2933
|
sig do
|
|
2521
2934
|
params(
|
|
2522
2935
|
pay: Telnyx::AI::PayToolParams::OrHash,
|
|
2936
|
+
shared: T::Boolean,
|
|
2523
2937
|
type: Symbol
|
|
2524
2938
|
).returns(T.attached_class)
|
|
2525
2939
|
end
|
|
2526
|
-
def self.new(
|
|
2940
|
+
def self.new(
|
|
2941
|
+
pay:,
|
|
2942
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2943
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2944
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2945
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2946
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2947
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2948
|
+
# per assistant).
|
|
2949
|
+
shared: nil,
|
|
2950
|
+
type: :pay
|
|
2951
|
+
)
|
|
2527
2952
|
end
|
|
2528
2953
|
|
|
2529
2954
|
sig do
|
|
2530
|
-
override.returns(
|
|
2955
|
+
override.returns(
|
|
2956
|
+
{
|
|
2957
|
+
pay: Telnyx::AI::PayToolParams,
|
|
2958
|
+
type: Symbol,
|
|
2959
|
+
shared: T::Boolean
|
|
2960
|
+
}
|
|
2961
|
+
)
|
|
2531
2962
|
end
|
|
2532
2963
|
def to_hash
|
|
2533
2964
|
end
|
|
@@ -2557,6 +2988,19 @@ module Telnyx
|
|
|
2557
2988
|
end
|
|
2558
2989
|
attr_writer :update_dynamic_variables
|
|
2559
2990
|
|
|
2991
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
2992
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
2993
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
2994
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
2995
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
2996
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
2997
|
+
# per assistant).
|
|
2998
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
2999
|
+
attr_reader :shared
|
|
3000
|
+
|
|
3001
|
+
sig { params(shared: T::Boolean).void }
|
|
3002
|
+
attr_writer :shared
|
|
3003
|
+
|
|
2560
3004
|
# The update_dynamic_variables tool lets the assistant write values into the
|
|
2561
3005
|
# conversation's dynamic-variables context during the call. Updated variables are
|
|
2562
3006
|
# available to later `{{variable}}` interpolation (prompts, speak nodes, message
|
|
@@ -2566,12 +3010,21 @@ module Telnyx
|
|
|
2566
3010
|
params(
|
|
2567
3011
|
update_dynamic_variables:
|
|
2568
3012
|
Telnyx::AI::UpdateDynamicVariablesToolParams::OrHash,
|
|
3013
|
+
shared: T::Boolean,
|
|
2569
3014
|
type: Symbol
|
|
2570
3015
|
).returns(T.attached_class)
|
|
2571
3016
|
end
|
|
2572
3017
|
def self.new(
|
|
2573
3018
|
# Configuration for an update_dynamic_variables tool.
|
|
2574
3019
|
update_dynamic_variables:,
|
|
3020
|
+
# Whether this tool comes from the shared Tools Library. Responses merge shared
|
|
3021
|
+
# tools into `tools` with `shared: true`; inline tools carry `shared: false`.
|
|
3022
|
+
# Read-only: set by the server, not accepted in requests. When updating an
|
|
3023
|
+
# assistant, omit `shared: true` tools from the request `tools` array and manage
|
|
3024
|
+
# them through `tool_ids` instead — re-sending their definitions creates an inline
|
|
3025
|
+
# duplicate (rejected with error code 10015 when the type allows only one instance
|
|
3026
|
+
# per assistant).
|
|
3027
|
+
shared: nil,
|
|
2575
3028
|
type: :update_dynamic_variables
|
|
2576
3029
|
)
|
|
2577
3030
|
end
|
|
@@ -2581,7 +3034,8 @@ module Telnyx
|
|
|
2581
3034
|
{
|
|
2582
3035
|
type: Symbol,
|
|
2583
3036
|
update_dynamic_variables:
|
|
2584
|
-
Telnyx::AI::UpdateDynamicVariablesToolParams
|
|
3037
|
+
Telnyx::AI::UpdateDynamicVariablesToolParams,
|
|
3038
|
+
shared: T::Boolean
|
|
2585
3039
|
}
|
|
2586
3040
|
)
|
|
2587
3041
|
end
|