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
|
@@ -18,6 +18,25 @@ module Telnyx
|
|
|
18
18
|
sig { params(id: String).void }
|
|
19
19
|
attr_writer :id
|
|
20
20
|
|
|
21
|
+
# Automatic response type triggered by an inbound opt-in, opt-out, or help
|
|
22
|
+
# keyword. Examples include START, STOP, and HELP.
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :autoresponse_type
|
|
25
|
+
|
|
26
|
+
sig { params(autoresponse_type: String).void }
|
|
27
|
+
attr_writer :autoresponse_type
|
|
28
|
+
|
|
29
|
+
# Message body for RCS and WhatsApp. RCS messages contain text, user_file,
|
|
30
|
+
# location, or suggestion_response. For WhatsApp edits and revocations, inspect
|
|
31
|
+
# type and the corresponding edit or revoke object.
|
|
32
|
+
sig { returns(T.nilable(Telnyx::MessagingInboundMessagePayload::Body)) }
|
|
33
|
+
attr_reader :body
|
|
34
|
+
|
|
35
|
+
sig do
|
|
36
|
+
params(body: Telnyx::MessagingInboundMessagePayload::Body::OrHash).void
|
|
37
|
+
end
|
|
38
|
+
attr_writer :body
|
|
39
|
+
|
|
21
40
|
sig do
|
|
22
41
|
returns(T.nilable(T::Array[Telnyx::MessagingInboundMessagePayload::Cc]))
|
|
23
42
|
end
|
|
@@ -211,19 +230,20 @@ module Telnyx
|
|
|
211
230
|
sig { params(text: String).void }
|
|
212
231
|
attr_writer :text
|
|
213
232
|
|
|
233
|
+
# Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS
|
|
234
|
+
# recipients are identified by agent_id and agent_name. WhatsApp webhooks use one
|
|
235
|
+
# E.164 phone number.
|
|
214
236
|
sig do
|
|
215
|
-
returns(T.nilable(
|
|
237
|
+
returns(T.nilable(Telnyx::MessagingInboundMessagePayload::To::Variants))
|
|
216
238
|
end
|
|
217
239
|
attr_reader :to
|
|
218
240
|
|
|
219
241
|
sig do
|
|
220
|
-
params(
|
|
221
|
-
to: T::Array[Telnyx::MessagingInboundMessagePayload::To::OrHash]
|
|
222
|
-
).void
|
|
242
|
+
params(to: Telnyx::MessagingInboundMessagePayload::To::Variants).void
|
|
223
243
|
end
|
|
224
244
|
attr_writer :to
|
|
225
245
|
|
|
226
|
-
# The
|
|
246
|
+
# The messaging channel used for the message.
|
|
227
247
|
sig do
|
|
228
248
|
returns(
|
|
229
249
|
T.nilable(Telnyx::MessagingInboundMessagePayload::Type::TaggedSymbol)
|
|
@@ -254,6 +274,8 @@ module Telnyx
|
|
|
254
274
|
sig do
|
|
255
275
|
params(
|
|
256
276
|
id: String,
|
|
277
|
+
autoresponse_type: String,
|
|
278
|
+
body: Telnyx::MessagingInboundMessagePayload::Body::OrHash,
|
|
257
279
|
cc: T::Array[Telnyx::MessagingInboundMessagePayload::Cc::OrHash],
|
|
258
280
|
completed_at: T.nilable(Time),
|
|
259
281
|
cost: T.nilable(Telnyx::MessagingInboundMessagePayload::Cost::OrHash),
|
|
@@ -282,7 +304,7 @@ module Telnyx
|
|
|
282
304
|
tcr_campaign_id: T.nilable(String),
|
|
283
305
|
tcr_campaign_registered: T.nilable(String),
|
|
284
306
|
text: String,
|
|
285
|
-
to:
|
|
307
|
+
to: Telnyx::MessagingInboundMessagePayload::To::Variants,
|
|
286
308
|
type: Telnyx::MessagingInboundMessagePayload::Type::OrSymbol,
|
|
287
309
|
valid_until: T.nilable(Time),
|
|
288
310
|
webhook_failover_url: T.nilable(String),
|
|
@@ -292,6 +314,13 @@ module Telnyx
|
|
|
292
314
|
def self.new(
|
|
293
315
|
# Identifies the type of resource.
|
|
294
316
|
id: nil,
|
|
317
|
+
# Automatic response type triggered by an inbound opt-in, opt-out, or help
|
|
318
|
+
# keyword. Examples include START, STOP, and HELP.
|
|
319
|
+
autoresponse_type: nil,
|
|
320
|
+
# Message body for RCS and WhatsApp. RCS messages contain text, user_file,
|
|
321
|
+
# location, or suggestion_response. For WhatsApp edits and revocations, inspect
|
|
322
|
+
# type and the corresponding edit or revoke object.
|
|
323
|
+
body: nil,
|
|
295
324
|
cc: nil,
|
|
296
325
|
# Not used for inbound messages.
|
|
297
326
|
completed_at: nil,
|
|
@@ -336,8 +365,11 @@ module Telnyx
|
|
|
336
365
|
#
|
|
337
366
|
# **Required for SMS**
|
|
338
367
|
text: nil,
|
|
368
|
+
# Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS
|
|
369
|
+
# recipients are identified by agent_id and agent_name. WhatsApp webhooks use one
|
|
370
|
+
# E.164 phone number.
|
|
339
371
|
to: nil,
|
|
340
|
-
# The
|
|
372
|
+
# The messaging channel used for the message.
|
|
341
373
|
type: nil,
|
|
342
374
|
# Not used for inbound messages.
|
|
343
375
|
valid_until: nil,
|
|
@@ -353,6 +385,8 @@ module Telnyx
|
|
|
353
385
|
override.returns(
|
|
354
386
|
{
|
|
355
387
|
id: String,
|
|
388
|
+
autoresponse_type: String,
|
|
389
|
+
body: Telnyx::MessagingInboundMessagePayload::Body,
|
|
356
390
|
cc: T::Array[Telnyx::MessagingInboundMessagePayload::Cc],
|
|
357
391
|
completed_at: T.nilable(Time),
|
|
358
392
|
cost: T.nilable(Telnyx::MessagingInboundMessagePayload::Cost),
|
|
@@ -378,7 +412,7 @@ module Telnyx
|
|
|
378
412
|
tcr_campaign_id: T.nilable(String),
|
|
379
413
|
tcr_campaign_registered: T.nilable(String),
|
|
380
414
|
text: String,
|
|
381
|
-
to:
|
|
415
|
+
to: Telnyx::MessagingInboundMessagePayload::To::Variants,
|
|
382
416
|
type: Telnyx::MessagingInboundMessagePayload::Type::TaggedSymbol,
|
|
383
417
|
valid_until: T.nilable(Time),
|
|
384
418
|
webhook_failover_url: T.nilable(String),
|
|
@@ -389,6 +423,610 @@ module Telnyx
|
|
|
389
423
|
def to_hash
|
|
390
424
|
end
|
|
391
425
|
|
|
426
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
427
|
+
OrHash =
|
|
428
|
+
T.type_alias do
|
|
429
|
+
T.any(
|
|
430
|
+
Telnyx::MessagingInboundMessagePayload::Body,
|
|
431
|
+
Telnyx::Internal::AnyHash
|
|
432
|
+
)
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
# Telnyx identifier for this webhook message.
|
|
436
|
+
sig { returns(T.nilable(String)) }
|
|
437
|
+
attr_reader :id
|
|
438
|
+
|
|
439
|
+
sig { params(id: String).void }
|
|
440
|
+
attr_writer :id
|
|
441
|
+
|
|
442
|
+
# Details for an edited WhatsApp message.
|
|
443
|
+
sig do
|
|
444
|
+
returns(T.nilable(Telnyx::MessagingInboundMessagePayload::Body::Edit))
|
|
445
|
+
end
|
|
446
|
+
attr_reader :edit
|
|
447
|
+
|
|
448
|
+
sig do
|
|
449
|
+
params(
|
|
450
|
+
edit: Telnyx::MessagingInboundMessagePayload::Body::Edit::OrHash
|
|
451
|
+
).void
|
|
452
|
+
end
|
|
453
|
+
attr_writer :edit
|
|
454
|
+
|
|
455
|
+
# Meta WhatsApp message identifier for this webhook event.
|
|
456
|
+
sig { returns(T.nilable(String)) }
|
|
457
|
+
attr_reader :foreign_id
|
|
458
|
+
|
|
459
|
+
sig { params(foreign_id: String).void }
|
|
460
|
+
attr_writer :foreign_id
|
|
461
|
+
|
|
462
|
+
# WhatsApp sender in E.164 format.
|
|
463
|
+
sig { returns(T.nilable(String)) }
|
|
464
|
+
attr_reader :from
|
|
465
|
+
|
|
466
|
+
sig { params(from: String).void }
|
|
467
|
+
attr_writer :from
|
|
468
|
+
|
|
469
|
+
# Location shared in an RCS message.
|
|
470
|
+
sig do
|
|
471
|
+
returns(
|
|
472
|
+
T.nilable(Telnyx::MessagingInboundMessagePayload::Body::Location)
|
|
473
|
+
)
|
|
474
|
+
end
|
|
475
|
+
attr_reader :location
|
|
476
|
+
|
|
477
|
+
sig do
|
|
478
|
+
params(
|
|
479
|
+
location:
|
|
480
|
+
Telnyx::MessagingInboundMessagePayload::Body::Location::OrHash
|
|
481
|
+
).void
|
|
482
|
+
end
|
|
483
|
+
attr_writer :location
|
|
484
|
+
|
|
485
|
+
# Details for a revoked WhatsApp message.
|
|
486
|
+
sig do
|
|
487
|
+
returns(
|
|
488
|
+
T.nilable(Telnyx::MessagingInboundMessagePayload::Body::Revoke)
|
|
489
|
+
)
|
|
490
|
+
end
|
|
491
|
+
attr_reader :revoke
|
|
492
|
+
|
|
493
|
+
sig do
|
|
494
|
+
params(
|
|
495
|
+
revoke: Telnyx::MessagingInboundMessagePayload::Body::Revoke::OrHash
|
|
496
|
+
).void
|
|
497
|
+
end
|
|
498
|
+
attr_writer :revoke
|
|
499
|
+
|
|
500
|
+
# Selected RCS suggestion.
|
|
501
|
+
sig do
|
|
502
|
+
returns(
|
|
503
|
+
T.nilable(
|
|
504
|
+
Telnyx::MessagingInboundMessagePayload::Body::SuggestionResponse
|
|
505
|
+
)
|
|
506
|
+
)
|
|
507
|
+
end
|
|
508
|
+
attr_reader :suggestion_response
|
|
509
|
+
|
|
510
|
+
sig do
|
|
511
|
+
params(
|
|
512
|
+
suggestion_response:
|
|
513
|
+
Telnyx::MessagingInboundMessagePayload::Body::SuggestionResponse::OrHash
|
|
514
|
+
).void
|
|
515
|
+
end
|
|
516
|
+
attr_writer :suggestion_response
|
|
517
|
+
|
|
518
|
+
# RCS text string or WhatsApp text object.
|
|
519
|
+
sig do
|
|
520
|
+
returns(
|
|
521
|
+
T.nilable(
|
|
522
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Variants
|
|
523
|
+
)
|
|
524
|
+
)
|
|
525
|
+
end
|
|
526
|
+
attr_reader :text
|
|
527
|
+
|
|
528
|
+
sig do
|
|
529
|
+
params(
|
|
530
|
+
text:
|
|
531
|
+
T.any(
|
|
532
|
+
String,
|
|
533
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Body::OrHash
|
|
534
|
+
)
|
|
535
|
+
).void
|
|
536
|
+
end
|
|
537
|
+
attr_writer :text
|
|
538
|
+
|
|
539
|
+
# Unix timestamp supplied by Meta.
|
|
540
|
+
sig { returns(T.nilable(String)) }
|
|
541
|
+
attr_reader :timestamp
|
|
542
|
+
|
|
543
|
+
sig { params(timestamp: String).void }
|
|
544
|
+
attr_writer :timestamp
|
|
545
|
+
|
|
546
|
+
# WhatsApp message body type. Edit and revoke events use `edit` and `revoke`,
|
|
547
|
+
# respectively.
|
|
548
|
+
sig { returns(T.nilable(String)) }
|
|
549
|
+
attr_reader :type
|
|
550
|
+
|
|
551
|
+
sig { params(type: String).void }
|
|
552
|
+
attr_writer :type
|
|
553
|
+
|
|
554
|
+
# RCS file attachment and optional thumbnail.
|
|
555
|
+
sig do
|
|
556
|
+
returns(
|
|
557
|
+
T.nilable(Telnyx::MessagingInboundMessagePayload::Body::UserFile)
|
|
558
|
+
)
|
|
559
|
+
end
|
|
560
|
+
attr_reader :user_file
|
|
561
|
+
|
|
562
|
+
sig do
|
|
563
|
+
params(
|
|
564
|
+
user_file:
|
|
565
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::OrHash
|
|
566
|
+
).void
|
|
567
|
+
end
|
|
568
|
+
attr_writer :user_file
|
|
569
|
+
|
|
570
|
+
# Message body for RCS and WhatsApp. RCS messages contain text, user_file,
|
|
571
|
+
# location, or suggestion_response. For WhatsApp edits and revocations, inspect
|
|
572
|
+
# type and the corresponding edit or revoke object.
|
|
573
|
+
sig do
|
|
574
|
+
params(
|
|
575
|
+
id: String,
|
|
576
|
+
edit: Telnyx::MessagingInboundMessagePayload::Body::Edit::OrHash,
|
|
577
|
+
foreign_id: String,
|
|
578
|
+
from: String,
|
|
579
|
+
location:
|
|
580
|
+
Telnyx::MessagingInboundMessagePayload::Body::Location::OrHash,
|
|
581
|
+
revoke:
|
|
582
|
+
Telnyx::MessagingInboundMessagePayload::Body::Revoke::OrHash,
|
|
583
|
+
suggestion_response:
|
|
584
|
+
Telnyx::MessagingInboundMessagePayload::Body::SuggestionResponse::OrHash,
|
|
585
|
+
text:
|
|
586
|
+
T.any(
|
|
587
|
+
String,
|
|
588
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Body::OrHash
|
|
589
|
+
),
|
|
590
|
+
timestamp: String,
|
|
591
|
+
type: String,
|
|
592
|
+
user_file:
|
|
593
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::OrHash
|
|
594
|
+
).returns(T.attached_class)
|
|
595
|
+
end
|
|
596
|
+
def self.new(
|
|
597
|
+
# Telnyx identifier for this webhook message.
|
|
598
|
+
id: nil,
|
|
599
|
+
# Details for an edited WhatsApp message.
|
|
600
|
+
edit: nil,
|
|
601
|
+
# Meta WhatsApp message identifier for this webhook event.
|
|
602
|
+
foreign_id: nil,
|
|
603
|
+
# WhatsApp sender in E.164 format.
|
|
604
|
+
from: nil,
|
|
605
|
+
# Location shared in an RCS message.
|
|
606
|
+
location: nil,
|
|
607
|
+
# Details for a revoked WhatsApp message.
|
|
608
|
+
revoke: nil,
|
|
609
|
+
# Selected RCS suggestion.
|
|
610
|
+
suggestion_response: nil,
|
|
611
|
+
# RCS text string or WhatsApp text object.
|
|
612
|
+
text: nil,
|
|
613
|
+
# Unix timestamp supplied by Meta.
|
|
614
|
+
timestamp: nil,
|
|
615
|
+
# WhatsApp message body type. Edit and revoke events use `edit` and `revoke`,
|
|
616
|
+
# respectively.
|
|
617
|
+
type: nil,
|
|
618
|
+
# RCS file attachment and optional thumbnail.
|
|
619
|
+
user_file: nil
|
|
620
|
+
)
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
sig do
|
|
624
|
+
override.returns(
|
|
625
|
+
{
|
|
626
|
+
id: String,
|
|
627
|
+
edit: Telnyx::MessagingInboundMessagePayload::Body::Edit,
|
|
628
|
+
foreign_id: String,
|
|
629
|
+
from: String,
|
|
630
|
+
location: Telnyx::MessagingInboundMessagePayload::Body::Location,
|
|
631
|
+
revoke: Telnyx::MessagingInboundMessagePayload::Body::Revoke,
|
|
632
|
+
suggestion_response:
|
|
633
|
+
Telnyx::MessagingInboundMessagePayload::Body::SuggestionResponse,
|
|
634
|
+
text:
|
|
635
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Variants,
|
|
636
|
+
timestamp: String,
|
|
637
|
+
type: String,
|
|
638
|
+
user_file: Telnyx::MessagingInboundMessagePayload::Body::UserFile
|
|
639
|
+
}
|
|
640
|
+
)
|
|
641
|
+
end
|
|
642
|
+
def to_hash
|
|
643
|
+
end
|
|
644
|
+
|
|
645
|
+
class Edit < Telnyx::Internal::Type::BaseModel
|
|
646
|
+
OrHash =
|
|
647
|
+
T.type_alias do
|
|
648
|
+
T.any(
|
|
649
|
+
Telnyx::MessagingInboundMessagePayload::Body::Edit,
|
|
650
|
+
Telnyx::Internal::AnyHash
|
|
651
|
+
)
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Replacement WhatsApp message content. Its shape depends on the message type.
|
|
655
|
+
sig { returns(T::Hash[Symbol, T.anything]) }
|
|
656
|
+
attr_accessor :message
|
|
657
|
+
|
|
658
|
+
# Telnyx message ID when a mapping exists, otherwise the original Meta WhatsApp
|
|
659
|
+
# message ID. Treat this value as opaque.
|
|
660
|
+
sig { returns(String) }
|
|
661
|
+
attr_accessor :original_message_id
|
|
662
|
+
|
|
663
|
+
# Details for an edited WhatsApp message.
|
|
664
|
+
sig do
|
|
665
|
+
params(
|
|
666
|
+
message: T::Hash[Symbol, T.anything],
|
|
667
|
+
original_message_id: String
|
|
668
|
+
).returns(T.attached_class)
|
|
669
|
+
end
|
|
670
|
+
def self.new(
|
|
671
|
+
# Replacement WhatsApp message content. Its shape depends on the message type.
|
|
672
|
+
message:,
|
|
673
|
+
# Telnyx message ID when a mapping exists, otherwise the original Meta WhatsApp
|
|
674
|
+
# message ID. Treat this value as opaque.
|
|
675
|
+
original_message_id:
|
|
676
|
+
)
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
sig do
|
|
680
|
+
override.returns(
|
|
681
|
+
{
|
|
682
|
+
message: T::Hash[Symbol, T.anything],
|
|
683
|
+
original_message_id: String
|
|
684
|
+
}
|
|
685
|
+
)
|
|
686
|
+
end
|
|
687
|
+
def to_hash
|
|
688
|
+
end
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
class Location < Telnyx::Internal::Type::BaseModel
|
|
692
|
+
OrHash =
|
|
693
|
+
T.type_alias do
|
|
694
|
+
T.any(
|
|
695
|
+
Telnyx::MessagingInboundMessagePayload::Body::Location,
|
|
696
|
+
Telnyx::Internal::AnyHash
|
|
697
|
+
)
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
sig { returns(T.nilable(Float)) }
|
|
701
|
+
attr_reader :latitude
|
|
702
|
+
|
|
703
|
+
sig { params(latitude: Float).void }
|
|
704
|
+
attr_writer :latitude
|
|
705
|
+
|
|
706
|
+
sig { returns(T.nilable(Float)) }
|
|
707
|
+
attr_reader :longitude
|
|
708
|
+
|
|
709
|
+
sig { params(longitude: Float).void }
|
|
710
|
+
attr_writer :longitude
|
|
711
|
+
|
|
712
|
+
# Location shared in an RCS message.
|
|
713
|
+
sig do
|
|
714
|
+
params(latitude: Float, longitude: Float).returns(T.attached_class)
|
|
715
|
+
end
|
|
716
|
+
def self.new(latitude: nil, longitude: nil)
|
|
717
|
+
end
|
|
718
|
+
|
|
719
|
+
sig { override.returns({ latitude: Float, longitude: Float }) }
|
|
720
|
+
def to_hash
|
|
721
|
+
end
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
class Revoke < Telnyx::Internal::Type::BaseModel
|
|
725
|
+
OrHash =
|
|
726
|
+
T.type_alias do
|
|
727
|
+
T.any(
|
|
728
|
+
Telnyx::MessagingInboundMessagePayload::Body::Revoke,
|
|
729
|
+
Telnyx::Internal::AnyHash
|
|
730
|
+
)
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
# Telnyx message ID when a mapping exists, otherwise the original Meta WhatsApp
|
|
734
|
+
# message ID. Treat this value as opaque.
|
|
735
|
+
sig { returns(String) }
|
|
736
|
+
attr_accessor :original_message_id
|
|
737
|
+
|
|
738
|
+
# Details for a revoked WhatsApp message.
|
|
739
|
+
sig { params(original_message_id: String).returns(T.attached_class) }
|
|
740
|
+
def self.new(
|
|
741
|
+
# Telnyx message ID when a mapping exists, otherwise the original Meta WhatsApp
|
|
742
|
+
# message ID. Treat this value as opaque.
|
|
743
|
+
original_message_id:
|
|
744
|
+
)
|
|
745
|
+
end
|
|
746
|
+
|
|
747
|
+
sig { override.returns({ original_message_id: String }) }
|
|
748
|
+
def to_hash
|
|
749
|
+
end
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
class SuggestionResponse < Telnyx::Internal::Type::BaseModel
|
|
753
|
+
OrHash =
|
|
754
|
+
T.type_alias do
|
|
755
|
+
T.any(
|
|
756
|
+
Telnyx::MessagingInboundMessagePayload::Body::SuggestionResponse,
|
|
757
|
+
Telnyx::Internal::AnyHash
|
|
758
|
+
)
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
sig { returns(T.nilable(String)) }
|
|
762
|
+
attr_reader :postback_data
|
|
763
|
+
|
|
764
|
+
sig { params(postback_data: String).void }
|
|
765
|
+
attr_writer :postback_data
|
|
766
|
+
|
|
767
|
+
sig { returns(T.nilable(String)) }
|
|
768
|
+
attr_reader :text
|
|
769
|
+
|
|
770
|
+
sig { params(text: String).void }
|
|
771
|
+
attr_writer :text
|
|
772
|
+
|
|
773
|
+
# Selected RCS suggestion.
|
|
774
|
+
sig do
|
|
775
|
+
params(postback_data: String, text: String).returns(
|
|
776
|
+
T.attached_class
|
|
777
|
+
)
|
|
778
|
+
end
|
|
779
|
+
def self.new(postback_data: nil, text: nil)
|
|
780
|
+
end
|
|
781
|
+
|
|
782
|
+
sig { override.returns({ postback_data: String, text: String }) }
|
|
783
|
+
def to_hash
|
|
784
|
+
end
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# RCS text string or WhatsApp text object.
|
|
788
|
+
module Text
|
|
789
|
+
extend Telnyx::Internal::Type::Union
|
|
790
|
+
|
|
791
|
+
Variants =
|
|
792
|
+
T.type_alias do
|
|
793
|
+
T.any(
|
|
794
|
+
String,
|
|
795
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Body
|
|
796
|
+
)
|
|
797
|
+
end
|
|
798
|
+
|
|
799
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
800
|
+
OrHash =
|
|
801
|
+
T.type_alias do
|
|
802
|
+
T.any(
|
|
803
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Body,
|
|
804
|
+
Telnyx::Internal::AnyHash
|
|
805
|
+
)
|
|
806
|
+
end
|
|
807
|
+
|
|
808
|
+
sig { returns(T.nilable(String)) }
|
|
809
|
+
attr_reader :body
|
|
810
|
+
|
|
811
|
+
sig { params(body: String).void }
|
|
812
|
+
attr_writer :body
|
|
813
|
+
|
|
814
|
+
sig { params(body: String).returns(T.attached_class) }
|
|
815
|
+
def self.new(body: nil)
|
|
816
|
+
end
|
|
817
|
+
|
|
818
|
+
sig { override.returns({ body: String }) }
|
|
819
|
+
def to_hash
|
|
820
|
+
end
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
sig do
|
|
824
|
+
override.returns(
|
|
825
|
+
T::Array[
|
|
826
|
+
Telnyx::MessagingInboundMessagePayload::Body::Text::Variants
|
|
827
|
+
]
|
|
828
|
+
)
|
|
829
|
+
end
|
|
830
|
+
def self.variants
|
|
831
|
+
end
|
|
832
|
+
end
|
|
833
|
+
|
|
834
|
+
class UserFile < Telnyx::Internal::Type::BaseModel
|
|
835
|
+
OrHash =
|
|
836
|
+
T.type_alias do
|
|
837
|
+
T.any(
|
|
838
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile,
|
|
839
|
+
Telnyx::Internal::AnyHash
|
|
840
|
+
)
|
|
841
|
+
end
|
|
842
|
+
|
|
843
|
+
sig do
|
|
844
|
+
returns(
|
|
845
|
+
T.nilable(
|
|
846
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Payload
|
|
847
|
+
)
|
|
848
|
+
)
|
|
849
|
+
end
|
|
850
|
+
attr_reader :payload
|
|
851
|
+
|
|
852
|
+
sig do
|
|
853
|
+
params(
|
|
854
|
+
payload:
|
|
855
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Payload::OrHash
|
|
856
|
+
).void
|
|
857
|
+
end
|
|
858
|
+
attr_writer :payload
|
|
859
|
+
|
|
860
|
+
sig do
|
|
861
|
+
returns(
|
|
862
|
+
T.nilable(
|
|
863
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Thumbnail
|
|
864
|
+
)
|
|
865
|
+
)
|
|
866
|
+
end
|
|
867
|
+
attr_reader :thumbnail
|
|
868
|
+
|
|
869
|
+
sig do
|
|
870
|
+
params(
|
|
871
|
+
thumbnail:
|
|
872
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Thumbnail::OrHash
|
|
873
|
+
).void
|
|
874
|
+
end
|
|
875
|
+
attr_writer :thumbnail
|
|
876
|
+
|
|
877
|
+
# RCS file attachment and optional thumbnail.
|
|
878
|
+
sig do
|
|
879
|
+
params(
|
|
880
|
+
payload:
|
|
881
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Payload::OrHash,
|
|
882
|
+
thumbnail:
|
|
883
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Thumbnail::OrHash
|
|
884
|
+
).returns(T.attached_class)
|
|
885
|
+
end
|
|
886
|
+
def self.new(payload: nil, thumbnail: nil)
|
|
887
|
+
end
|
|
888
|
+
|
|
889
|
+
sig do
|
|
890
|
+
override.returns(
|
|
891
|
+
{
|
|
892
|
+
payload:
|
|
893
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Payload,
|
|
894
|
+
thumbnail:
|
|
895
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Thumbnail
|
|
896
|
+
}
|
|
897
|
+
)
|
|
898
|
+
end
|
|
899
|
+
def to_hash
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
903
|
+
OrHash =
|
|
904
|
+
T.type_alias do
|
|
905
|
+
T.any(
|
|
906
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Payload,
|
|
907
|
+
Telnyx::Internal::AnyHash
|
|
908
|
+
)
|
|
909
|
+
end
|
|
910
|
+
|
|
911
|
+
sig { returns(T.nilable(String)) }
|
|
912
|
+
attr_reader :file_name
|
|
913
|
+
|
|
914
|
+
sig { params(file_name: String).void }
|
|
915
|
+
attr_writer :file_name
|
|
916
|
+
|
|
917
|
+
sig { returns(T.nilable(Integer)) }
|
|
918
|
+
attr_reader :file_size_bytes
|
|
919
|
+
|
|
920
|
+
sig { params(file_size_bytes: Integer).void }
|
|
921
|
+
attr_writer :file_size_bytes
|
|
922
|
+
|
|
923
|
+
sig { returns(T.nilable(String)) }
|
|
924
|
+
attr_reader :file_uri
|
|
925
|
+
|
|
926
|
+
sig { params(file_uri: String).void }
|
|
927
|
+
attr_writer :file_uri
|
|
928
|
+
|
|
929
|
+
sig { returns(T.nilable(String)) }
|
|
930
|
+
attr_reader :mime_type
|
|
931
|
+
|
|
932
|
+
sig { params(mime_type: String).void }
|
|
933
|
+
attr_writer :mime_type
|
|
934
|
+
|
|
935
|
+
sig do
|
|
936
|
+
params(
|
|
937
|
+
file_name: String,
|
|
938
|
+
file_size_bytes: Integer,
|
|
939
|
+
file_uri: String,
|
|
940
|
+
mime_type: String
|
|
941
|
+
).returns(T.attached_class)
|
|
942
|
+
end
|
|
943
|
+
def self.new(
|
|
944
|
+
file_name: nil,
|
|
945
|
+
file_size_bytes: nil,
|
|
946
|
+
file_uri: nil,
|
|
947
|
+
mime_type: nil
|
|
948
|
+
)
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
sig do
|
|
952
|
+
override.returns(
|
|
953
|
+
{
|
|
954
|
+
file_name: String,
|
|
955
|
+
file_size_bytes: Integer,
|
|
956
|
+
file_uri: String,
|
|
957
|
+
mime_type: String
|
|
958
|
+
}
|
|
959
|
+
)
|
|
960
|
+
end
|
|
961
|
+
def to_hash
|
|
962
|
+
end
|
|
963
|
+
end
|
|
964
|
+
|
|
965
|
+
class Thumbnail < Telnyx::Internal::Type::BaseModel
|
|
966
|
+
OrHash =
|
|
967
|
+
T.type_alias do
|
|
968
|
+
T.any(
|
|
969
|
+
Telnyx::MessagingInboundMessagePayload::Body::UserFile::Thumbnail,
|
|
970
|
+
Telnyx::Internal::AnyHash
|
|
971
|
+
)
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
sig { returns(T.nilable(String)) }
|
|
975
|
+
attr_reader :file_name
|
|
976
|
+
|
|
977
|
+
sig { params(file_name: String).void }
|
|
978
|
+
attr_writer :file_name
|
|
979
|
+
|
|
980
|
+
sig { returns(T.nilable(Integer)) }
|
|
981
|
+
attr_reader :file_size_bytes
|
|
982
|
+
|
|
983
|
+
sig { params(file_size_bytes: Integer).void }
|
|
984
|
+
attr_writer :file_size_bytes
|
|
985
|
+
|
|
986
|
+
sig { returns(T.nilable(String)) }
|
|
987
|
+
attr_reader :file_uri
|
|
988
|
+
|
|
989
|
+
sig { params(file_uri: String).void }
|
|
990
|
+
attr_writer :file_uri
|
|
991
|
+
|
|
992
|
+
sig { returns(T.nilable(String)) }
|
|
993
|
+
attr_reader :mime_type
|
|
994
|
+
|
|
995
|
+
sig { params(mime_type: String).void }
|
|
996
|
+
attr_writer :mime_type
|
|
997
|
+
|
|
998
|
+
sig do
|
|
999
|
+
params(
|
|
1000
|
+
file_name: String,
|
|
1001
|
+
file_size_bytes: Integer,
|
|
1002
|
+
file_uri: String,
|
|
1003
|
+
mime_type: String
|
|
1004
|
+
).returns(T.attached_class)
|
|
1005
|
+
end
|
|
1006
|
+
def self.new(
|
|
1007
|
+
file_name: nil,
|
|
1008
|
+
file_size_bytes: nil,
|
|
1009
|
+
file_uri: nil,
|
|
1010
|
+
mime_type: nil
|
|
1011
|
+
)
|
|
1012
|
+
end
|
|
1013
|
+
|
|
1014
|
+
sig do
|
|
1015
|
+
override.returns(
|
|
1016
|
+
{
|
|
1017
|
+
file_name: String,
|
|
1018
|
+
file_size_bytes: Integer,
|
|
1019
|
+
file_uri: String,
|
|
1020
|
+
mime_type: String
|
|
1021
|
+
}
|
|
1022
|
+
)
|
|
1023
|
+
end
|
|
1024
|
+
def to_hash
|
|
1025
|
+
end
|
|
1026
|
+
end
|
|
1027
|
+
end
|
|
1028
|
+
end
|
|
1029
|
+
|
|
392
1030
|
class Cc < Telnyx::Internal::Type::BaseModel
|
|
393
1031
|
OrHash =
|
|
394
1032
|
T.type_alias do
|
|
@@ -604,20 +1242,17 @@ module Telnyx
|
|
|
604
1242
|
|
|
605
1243
|
# The amount deducted from your account.
|
|
606
1244
|
sig { returns(T.nilable(String)) }
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
sig { params(amount: String).void }
|
|
610
|
-
attr_writer :amount
|
|
1245
|
+
attr_accessor :amount
|
|
611
1246
|
|
|
612
1247
|
# The ISO 4217 currency identifier.
|
|
613
1248
|
sig { returns(T.nilable(String)) }
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
sig { params(currency: String).void }
|
|
617
|
-
attr_writer :currency
|
|
1249
|
+
attr_accessor :currency
|
|
618
1250
|
|
|
619
1251
|
sig do
|
|
620
|
-
params(
|
|
1252
|
+
params(
|
|
1253
|
+
amount: T.nilable(String),
|
|
1254
|
+
currency: T.nilable(String)
|
|
1255
|
+
).returns(T.attached_class)
|
|
621
1256
|
end
|
|
622
1257
|
def self.new(
|
|
623
1258
|
# The amount deducted from your account.
|
|
@@ -627,7 +1262,11 @@ module Telnyx
|
|
|
627
1262
|
)
|
|
628
1263
|
end
|
|
629
1264
|
|
|
630
|
-
sig
|
|
1265
|
+
sig do
|
|
1266
|
+
override.returns(
|
|
1267
|
+
{ amount: T.nilable(String), currency: T.nilable(String) }
|
|
1268
|
+
)
|
|
1269
|
+
end
|
|
631
1270
|
def to_hash
|
|
632
1271
|
end
|
|
633
1272
|
end
|
|
@@ -945,6 +1584,11 @@ module Telnyx
|
|
|
945
1584
|
:"",
|
|
946
1585
|
Telnyx::MessagingInboundMessagePayload::From::LineType::TaggedSymbol
|
|
947
1586
|
)
|
|
1587
|
+
LONG_CODE =
|
|
1588
|
+
T.let(
|
|
1589
|
+
:long_code,
|
|
1590
|
+
Telnyx::MessagingInboundMessagePayload::From::LineType::TaggedSymbol
|
|
1591
|
+
)
|
|
948
1592
|
|
|
949
1593
|
sig do
|
|
950
1594
|
override.returns(
|
|
@@ -979,6 +1623,11 @@ module Telnyx
|
|
|
979
1623
|
:delivered,
|
|
980
1624
|
Telnyx::MessagingInboundMessagePayload::From::Status::TaggedSymbol
|
|
981
1625
|
)
|
|
1626
|
+
WEBHOOK_DELIVERED =
|
|
1627
|
+
T.let(
|
|
1628
|
+
:webhook_delivered,
|
|
1629
|
+
Telnyx::MessagingInboundMessagePayload::From::Status::TaggedSymbol
|
|
1630
|
+
)
|
|
982
1631
|
|
|
983
1632
|
sig do
|
|
984
1633
|
override.returns(
|
|
@@ -1090,216 +1739,276 @@ module Telnyx
|
|
|
1090
1739
|
end
|
|
1091
1740
|
end
|
|
1092
1741
|
|
|
1093
|
-
|
|
1094
|
-
|
|
1742
|
+
# Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS
|
|
1743
|
+
# recipients are identified by agent_id and agent_name. WhatsApp webhooks use one
|
|
1744
|
+
# E.164 phone number.
|
|
1745
|
+
module To
|
|
1746
|
+
extend Telnyx::Internal::Type::Union
|
|
1747
|
+
|
|
1748
|
+
Variants =
|
|
1095
1749
|
T.type_alias do
|
|
1096
1750
|
T.any(
|
|
1097
|
-
|
|
1098
|
-
|
|
1751
|
+
T::Array[
|
|
1752
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0
|
|
1753
|
+
],
|
|
1754
|
+
String
|
|
1099
1755
|
)
|
|
1100
1756
|
end
|
|
1101
1757
|
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1758
|
+
class UnionMember0 < Telnyx::Internal::Type::BaseModel
|
|
1759
|
+
OrHash =
|
|
1760
|
+
T.type_alias do
|
|
1761
|
+
T.any(
|
|
1762
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0,
|
|
1763
|
+
Telnyx::Internal::AnyHash
|
|
1764
|
+
)
|
|
1765
|
+
end
|
|
1105
1766
|
|
|
1106
|
-
|
|
1107
|
-
|
|
1767
|
+
# RCS agent identifier.
|
|
1768
|
+
sig { returns(T.nilable(String)) }
|
|
1769
|
+
attr_reader :agent_id
|
|
1108
1770
|
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
returns(
|
|
1112
|
-
T.nilable(
|
|
1113
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1114
|
-
)
|
|
1115
|
-
)
|
|
1116
|
-
end
|
|
1117
|
-
attr_reader :line_type
|
|
1771
|
+
sig { params(agent_id: String).void }
|
|
1772
|
+
attr_writer :agent_id
|
|
1118
1773
|
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::OrSymbol
|
|
1123
|
-
).void
|
|
1124
|
-
end
|
|
1125
|
-
attr_writer :line_type
|
|
1774
|
+
# RCS agent name.
|
|
1775
|
+
sig { returns(T.nilable(String)) }
|
|
1776
|
+
attr_reader :agent_name
|
|
1126
1777
|
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
attr_reader :phone_number
|
|
1778
|
+
sig { params(agent_name: String).void }
|
|
1779
|
+
attr_writer :agent_name
|
|
1130
1780
|
|
|
1131
|
-
|
|
1132
|
-
|
|
1781
|
+
# The carrier of the receiver.
|
|
1782
|
+
sig { returns(T.nilable(String)) }
|
|
1783
|
+
attr_reader :carrier
|
|
1133
1784
|
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1785
|
+
sig { params(carrier: String).void }
|
|
1786
|
+
attr_writer :carrier
|
|
1787
|
+
|
|
1788
|
+
# The line-type of the receiver.
|
|
1789
|
+
sig do
|
|
1790
|
+
returns(
|
|
1791
|
+
T.nilable(
|
|
1792
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1793
|
+
)
|
|
1138
1794
|
)
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
attr_reader :status
|
|
1795
|
+
end
|
|
1796
|
+
attr_reader :line_type
|
|
1142
1797
|
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1798
|
+
sig do
|
|
1799
|
+
params(
|
|
1800
|
+
line_type:
|
|
1801
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::OrSymbol
|
|
1802
|
+
).void
|
|
1803
|
+
end
|
|
1804
|
+
attr_writer :line_type
|
|
1149
1805
|
|
|
1150
|
-
sig do
|
|
1151
|
-
params(
|
|
1152
|
-
carrier: String,
|
|
1153
|
-
line_type:
|
|
1154
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::OrSymbol,
|
|
1155
|
-
phone_number: String,
|
|
1156
|
-
status: Telnyx::MessagingInboundMessagePayload::To::Status::OrSymbol
|
|
1157
|
-
).returns(T.attached_class)
|
|
1158
|
-
end
|
|
1159
|
-
def self.new(
|
|
1160
|
-
# The carrier of the receiver.
|
|
1161
|
-
carrier: nil,
|
|
1162
|
-
# The line-type of the receiver.
|
|
1163
|
-
line_type: nil,
|
|
1164
1806
|
# Receiving address (+E.164 formatted phone number or short code).
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
)
|
|
1168
|
-
end
|
|
1807
|
+
sig { returns(T.nilable(String)) }
|
|
1808
|
+
attr_reader :phone_number
|
|
1169
1809
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1810
|
+
sig { params(phone_number: String).void }
|
|
1811
|
+
attr_writer :phone_number
|
|
1812
|
+
|
|
1813
|
+
sig do
|
|
1814
|
+
returns(
|
|
1815
|
+
T.nilable(
|
|
1816
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1817
|
+
)
|
|
1818
|
+
)
|
|
1819
|
+
end
|
|
1820
|
+
attr_reader :status
|
|
1821
|
+
|
|
1822
|
+
sig do
|
|
1823
|
+
params(
|
|
1824
|
+
status:
|
|
1825
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::OrSymbol
|
|
1826
|
+
).void
|
|
1827
|
+
end
|
|
1828
|
+
attr_writer :status
|
|
1829
|
+
|
|
1830
|
+
sig do
|
|
1831
|
+
params(
|
|
1832
|
+
agent_id: String,
|
|
1833
|
+
agent_name: String,
|
|
1173
1834
|
carrier: String,
|
|
1174
1835
|
line_type:
|
|
1175
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::
|
|
1836
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::OrSymbol,
|
|
1176
1837
|
phone_number: String,
|
|
1177
1838
|
status:
|
|
1178
|
-
Telnyx::MessagingInboundMessagePayload::To::Status::
|
|
1179
|
-
|
|
1839
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::OrSymbol
|
|
1840
|
+
).returns(T.attached_class)
|
|
1841
|
+
end
|
|
1842
|
+
def self.new(
|
|
1843
|
+
# RCS agent identifier.
|
|
1844
|
+
agent_id: nil,
|
|
1845
|
+
# RCS agent name.
|
|
1846
|
+
agent_name: nil,
|
|
1847
|
+
# The carrier of the receiver.
|
|
1848
|
+
carrier: nil,
|
|
1849
|
+
# The line-type of the receiver.
|
|
1850
|
+
line_type: nil,
|
|
1851
|
+
# Receiving address (+E.164 formatted phone number or short code).
|
|
1852
|
+
phone_number: nil,
|
|
1853
|
+
status: nil
|
|
1180
1854
|
)
|
|
1181
|
-
|
|
1182
|
-
def to_hash
|
|
1183
|
-
end
|
|
1184
|
-
|
|
1185
|
-
# The line-type of the receiver.
|
|
1186
|
-
module LineType
|
|
1187
|
-
extend Telnyx::Internal::Type::Enum
|
|
1188
|
-
|
|
1189
|
-
TaggedSymbol =
|
|
1190
|
-
T.type_alias do
|
|
1191
|
-
T.all(
|
|
1192
|
-
Symbol,
|
|
1193
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType
|
|
1194
|
-
)
|
|
1195
|
-
end
|
|
1196
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1197
|
-
|
|
1198
|
-
WIRELINE =
|
|
1199
|
-
T.let(
|
|
1200
|
-
:Wireline,
|
|
1201
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1202
|
-
)
|
|
1203
|
-
WIRELESS =
|
|
1204
|
-
T.let(
|
|
1205
|
-
:Wireless,
|
|
1206
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1207
|
-
)
|
|
1208
|
-
VO_WI_FI =
|
|
1209
|
-
T.let(
|
|
1210
|
-
:VoWiFi,
|
|
1211
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1212
|
-
)
|
|
1213
|
-
VO_IP =
|
|
1214
|
-
T.let(
|
|
1215
|
-
:VoIP,
|
|
1216
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1217
|
-
)
|
|
1218
|
-
PRE_PAID_WIRELESS =
|
|
1219
|
-
T.let(
|
|
1220
|
-
:"Pre-Paid Wireless",
|
|
1221
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1222
|
-
)
|
|
1223
|
-
EMPTY =
|
|
1224
|
-
T.let(
|
|
1225
|
-
:"",
|
|
1226
|
-
Telnyx::MessagingInboundMessagePayload::To::LineType::TaggedSymbol
|
|
1227
|
-
)
|
|
1855
|
+
end
|
|
1228
1856
|
|
|
1229
1857
|
sig do
|
|
1230
1858
|
override.returns(
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1859
|
+
{
|
|
1860
|
+
agent_id: String,
|
|
1861
|
+
agent_name: String,
|
|
1862
|
+
carrier: String,
|
|
1863
|
+
line_type:
|
|
1864
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol,
|
|
1865
|
+
phone_number: String,
|
|
1866
|
+
status:
|
|
1867
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1868
|
+
}
|
|
1234
1869
|
)
|
|
1235
1870
|
end
|
|
1236
|
-
def
|
|
1871
|
+
def to_hash
|
|
1237
1872
|
end
|
|
1238
|
-
end
|
|
1239
1873
|
|
|
1240
|
-
|
|
1241
|
-
|
|
1874
|
+
# The line-type of the receiver.
|
|
1875
|
+
module LineType
|
|
1876
|
+
extend Telnyx::Internal::Type::Enum
|
|
1877
|
+
|
|
1878
|
+
TaggedSymbol =
|
|
1879
|
+
T.type_alias do
|
|
1880
|
+
T.all(
|
|
1881
|
+
Symbol,
|
|
1882
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType
|
|
1883
|
+
)
|
|
1884
|
+
end
|
|
1885
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1886
|
+
|
|
1887
|
+
WIRELINE =
|
|
1888
|
+
T.let(
|
|
1889
|
+
:Wireline,
|
|
1890
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1891
|
+
)
|
|
1892
|
+
WIRELESS =
|
|
1893
|
+
T.let(
|
|
1894
|
+
:Wireless,
|
|
1895
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1896
|
+
)
|
|
1897
|
+
VO_WI_FI =
|
|
1898
|
+
T.let(
|
|
1899
|
+
:VoWiFi,
|
|
1900
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1901
|
+
)
|
|
1902
|
+
VO_IP =
|
|
1903
|
+
T.let(
|
|
1904
|
+
:VoIP,
|
|
1905
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1906
|
+
)
|
|
1907
|
+
PRE_PAID_WIRELESS =
|
|
1908
|
+
T.let(
|
|
1909
|
+
:"Pre-Paid Wireless",
|
|
1910
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1911
|
+
)
|
|
1912
|
+
EMPTY =
|
|
1913
|
+
T.let(
|
|
1914
|
+
:"",
|
|
1915
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1916
|
+
)
|
|
1242
1917
|
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1918
|
+
sig do
|
|
1919
|
+
override.returns(
|
|
1920
|
+
T::Array[
|
|
1921
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::LineType::TaggedSymbol
|
|
1922
|
+
]
|
|
1923
|
+
)
|
|
1246
1924
|
end
|
|
1247
|
-
|
|
1925
|
+
def self.values
|
|
1926
|
+
end
|
|
1927
|
+
end
|
|
1248
1928
|
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1929
|
+
module Status
|
|
1930
|
+
extend Telnyx::Internal::Type::Enum
|
|
1931
|
+
|
|
1932
|
+
TaggedSymbol =
|
|
1933
|
+
T.type_alias do
|
|
1934
|
+
T.all(
|
|
1935
|
+
Symbol,
|
|
1936
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status
|
|
1937
|
+
)
|
|
1938
|
+
end
|
|
1939
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1940
|
+
|
|
1941
|
+
QUEUED =
|
|
1942
|
+
T.let(
|
|
1943
|
+
:queued,
|
|
1944
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1945
|
+
)
|
|
1946
|
+
SENDING =
|
|
1947
|
+
T.let(
|
|
1948
|
+
:sending,
|
|
1949
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1950
|
+
)
|
|
1951
|
+
SENT =
|
|
1952
|
+
T.let(
|
|
1953
|
+
:sent,
|
|
1954
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1955
|
+
)
|
|
1956
|
+
DELIVERED =
|
|
1957
|
+
T.let(
|
|
1958
|
+
:delivered,
|
|
1959
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1960
|
+
)
|
|
1961
|
+
SENDING_FAILED =
|
|
1962
|
+
T.let(
|
|
1963
|
+
:sending_failed,
|
|
1964
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1965
|
+
)
|
|
1966
|
+
DELIVERY_FAILED =
|
|
1967
|
+
T.let(
|
|
1968
|
+
:delivery_failed,
|
|
1969
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1970
|
+
)
|
|
1971
|
+
DELIVERY_UNCONFIRMED =
|
|
1972
|
+
T.let(
|
|
1973
|
+
:delivery_unconfirmed,
|
|
1974
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1975
|
+
)
|
|
1976
|
+
WEBHOOK_DELIVERED =
|
|
1977
|
+
T.let(
|
|
1978
|
+
:webhook_delivered,
|
|
1979
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1980
|
+
)
|
|
1289
1981
|
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1982
|
+
sig do
|
|
1983
|
+
override.returns(
|
|
1984
|
+
T::Array[
|
|
1985
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status::TaggedSymbol
|
|
1986
|
+
]
|
|
1987
|
+
)
|
|
1988
|
+
end
|
|
1989
|
+
def self.values
|
|
1990
|
+
end
|
|
1298
1991
|
end
|
|
1299
1992
|
end
|
|
1993
|
+
|
|
1994
|
+
sig do
|
|
1995
|
+
override.returns(
|
|
1996
|
+
T::Array[Telnyx::MessagingInboundMessagePayload::To::Variants]
|
|
1997
|
+
)
|
|
1998
|
+
end
|
|
1999
|
+
def self.variants
|
|
2000
|
+
end
|
|
2001
|
+
|
|
2002
|
+
UnionMember0Array =
|
|
2003
|
+
T.let(
|
|
2004
|
+
Telnyx::Internal::Type::ArrayOf[
|
|
2005
|
+
Telnyx::MessagingInboundMessagePayload::To::UnionMember0
|
|
2006
|
+
],
|
|
2007
|
+
Telnyx::Internal::Type::Converter
|
|
2008
|
+
)
|
|
1300
2009
|
end
|
|
1301
2010
|
|
|
1302
|
-
# The
|
|
2011
|
+
# The messaging channel used for the message.
|
|
1303
2012
|
module Type
|
|
1304
2013
|
extend Telnyx::Internal::Type::Enum
|
|
1305
2014
|
|
|
@@ -1319,6 +2028,16 @@ module Telnyx
|
|
|
1319
2028
|
:MMS,
|
|
1320
2029
|
Telnyx::MessagingInboundMessagePayload::Type::TaggedSymbol
|
|
1321
2030
|
)
|
|
2031
|
+
WHATSAPP =
|
|
2032
|
+
T.let(
|
|
2033
|
+
:WHATSAPP,
|
|
2034
|
+
Telnyx::MessagingInboundMessagePayload::Type::TaggedSymbol
|
|
2035
|
+
)
|
|
2036
|
+
RCS =
|
|
2037
|
+
T.let(
|
|
2038
|
+
:RCS,
|
|
2039
|
+
Telnyx::MessagingInboundMessagePayload::Type::TaggedSymbol
|
|
2040
|
+
)
|
|
1322
2041
|
|
|
1323
2042
|
sig do
|
|
1324
2043
|
override.returns(
|