telnyx 5.168.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 +7 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +40 -0
- data/lib/telnyx/internal/type/union.rb +6 -6
- data/lib/telnyx/models/ai/assistant_create_params.rb +6 -6
- data/lib/telnyx/models/ai/assistant_tool.rb +285 -12
- data/lib/telnyx/models/ai/assistant_update_params.rb +20 -9
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +20 -9
- 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/flow_node.rb +2 -2
- data/lib/telnyx/models/ai/inference_embedding.rb +13 -10
- 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 +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 +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/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/connection_retrieve_count_params.rb +14 -0
- data/lib/telnyx/models/connection_retrieve_count_response.rb +215 -0
- data/lib/telnyx/models/detail_record_list_params.rb +19 -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 +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/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/voice_clone_create_from_upload_params.rb +2 -2
- data/lib/telnyx/models.rb +18 -0
- data/lib/telnyx/resources/ai/assistants/versions.rb +1 -1
- data/lib/telnyx/resources/ai/assistants.rb +2 -2
- data/lib/telnyx/resources/ai/audio.rb +2 -2
- 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 +4 -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 +5 -3
- data/lib/telnyx/resources/machine_payments.rb +73 -0
- 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/version.rb +1 -1
- data/lib/telnyx.rb +33 -0
- data/rbi/telnyx/client.rbi +35 -0
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +16 -12
- data/rbi/telnyx/models/ai/assistant_tool.rbi +423 -20
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +42 -16
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +42 -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 +4 -58
- data/rbi/telnyx/models/ai/flow_node.rbi +4 -2
- data/rbi/telnyx/models/ai/inference_embedding.rbi +24 -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 +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 +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/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/connection_retrieve_count_params.rbi +30 -0
- data/rbi/telnyx/models/connection_retrieve_count_response.rbi +353 -0
- data/rbi/telnyx/models/detail_record_list_params.rbi +30 -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 +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/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/voice_clone_create_from_upload_params.rbi +4 -4
- data/rbi/telnyx/models.rbi +21 -0
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +19 -7
- data/rbi/telnyx/resources/ai/assistants.rbi +25 -12
- data/rbi/telnyx/resources/ai/audio.rbi +20 -9
- 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 +3 -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 +5 -3
- data/rbi/telnyx/resources/machine_payments.rbi +64 -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/sig/telnyx/client.rbs +10 -0
- data/sig/telnyx/models/ai/assistant_tool.rbs +162 -23
- 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/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 +52 -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/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/connection_retrieve_count_params.rbs +15 -0
- data/sig/telnyx/models/connection_retrieve_count_response.rbs +169 -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 +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/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.rbs +18 -0
- 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 +2 -0
- data/sig/telnyx/resources/connections.rbs +4 -0
- data/sig/telnyx/resources/machine_payments.rbs +12 -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
- metadata +101 -2
|
@@ -6,11 +6,11 @@ module Telnyx
|
|
|
6
6
|
class MessageSendLongCodeResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::OutboundMessagePayload, nil]
|
|
10
|
+
optional :data, -> { Telnyx::OutboundMessagePayload }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::OutboundMessagePayload]
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -6,11 +6,11 @@ module Telnyx
|
|
|
6
6
|
class MessageSendNumberPoolResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::OutboundMessagePayload, nil]
|
|
10
|
+
optional :data, -> { Telnyx::OutboundMessagePayload }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::OutboundMessagePayload]
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -6,11 +6,11 @@ module Telnyx
|
|
|
6
6
|
class MessageSendResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::OutboundMessagePayload, nil]
|
|
10
|
+
optional :data, -> { Telnyx::OutboundMessagePayload }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::OutboundMessagePayload]
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -6,11 +6,11 @@ module Telnyx
|
|
|
6
6
|
class MessageSendShortCodeResponse < Telnyx::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
|
-
# @return [Telnyx::Models::
|
|
10
|
-
optional :data, -> { Telnyx::
|
|
9
|
+
# @return [Telnyx::Models::OutboundMessagePayload, nil]
|
|
10
|
+
optional :data, -> { Telnyx::OutboundMessagePayload }
|
|
11
11
|
|
|
12
12
|
# @!method initialize(data: nil)
|
|
13
|
-
# @param data [Telnyx::Models::
|
|
13
|
+
# @param data [Telnyx::Models::OutboundMessagePayload]
|
|
14
14
|
end
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
class MessagingInboundMessage < Telnyx::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute id
|
|
7
|
+
# Identifies the type of resource.
|
|
8
|
+
#
|
|
9
|
+
# @return [String, nil]
|
|
10
|
+
optional :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute event_type
|
|
13
|
+
# The type of event being delivered.
|
|
14
|
+
#
|
|
15
|
+
# @return [Symbol, Telnyx::Models::MessagingInboundMessage::EventType, nil]
|
|
16
|
+
optional :event_type, enum: -> { Telnyx::MessagingInboundMessage::EventType }
|
|
17
|
+
|
|
18
|
+
# @!attribute occurred_at
|
|
19
|
+
# ISO 8601 formatted date indicating when the resource was created.
|
|
20
|
+
#
|
|
21
|
+
# @return [Time, nil]
|
|
22
|
+
optional :occurred_at, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute payload
|
|
25
|
+
#
|
|
26
|
+
# @return [Telnyx::Models::MessagingInboundMessagePayload, nil]
|
|
27
|
+
optional :payload, -> { Telnyx::MessagingInboundMessagePayload }
|
|
28
|
+
|
|
29
|
+
# @!attribute record_type
|
|
30
|
+
# Identifies the type of the resource.
|
|
31
|
+
#
|
|
32
|
+
# @return [Symbol, Telnyx::Models::MessagingInboundMessage::RecordType, nil]
|
|
33
|
+
optional :record_type, enum: -> { Telnyx::MessagingInboundMessage::RecordType }
|
|
34
|
+
|
|
35
|
+
# @!method initialize(id: nil, event_type: nil, occurred_at: nil, payload: nil, record_type: nil)
|
|
36
|
+
# @param id [String] Identifies the type of resource.
|
|
37
|
+
#
|
|
38
|
+
# @param event_type [Symbol, Telnyx::Models::MessagingInboundMessage::EventType] The type of event being delivered.
|
|
39
|
+
#
|
|
40
|
+
# @param occurred_at [Time] ISO 8601 formatted date indicating when the resource was created.
|
|
41
|
+
#
|
|
42
|
+
# @param payload [Telnyx::Models::MessagingInboundMessagePayload]
|
|
43
|
+
#
|
|
44
|
+
# @param record_type [Symbol, Telnyx::Models::MessagingInboundMessage::RecordType] Identifies the type of the resource.
|
|
45
|
+
|
|
46
|
+
# The type of event being delivered.
|
|
47
|
+
#
|
|
48
|
+
# @see Telnyx::Models::MessagingInboundMessage#event_type
|
|
49
|
+
module EventType
|
|
50
|
+
extend Telnyx::Internal::Type::Enum
|
|
51
|
+
|
|
52
|
+
MESSAGE_RECEIVED = :"message.received"
|
|
53
|
+
|
|
54
|
+
# @!method self.values
|
|
55
|
+
# @return [Array<Symbol>]
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Identifies the type of the resource.
|
|
59
|
+
#
|
|
60
|
+
# @see Telnyx::Models::MessagingInboundMessage#record_type
|
|
61
|
+
module RecordType
|
|
62
|
+
extend Telnyx::Internal::Type::Enum
|
|
63
|
+
|
|
64
|
+
EVENT = :event
|
|
65
|
+
|
|
66
|
+
# @!method self.values
|
|
67
|
+
# @return [Array<Symbol>]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -9,9 +9,17 @@ module Telnyx
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :id, String
|
|
11
11
|
|
|
12
|
+
# @!attribute autoresponse_type
|
|
13
|
+
# Automatic response type triggered by an inbound opt-in, opt-out, or help
|
|
14
|
+
# keyword. Examples include START, STOP, and HELP.
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
optional :autoresponse_type, String
|
|
18
|
+
|
|
12
19
|
# @!attribute body
|
|
13
|
-
#
|
|
14
|
-
#
|
|
20
|
+
# Message body for RCS and WhatsApp. RCS messages contain text, user_file,
|
|
21
|
+
# location, or suggestion_response. For WhatsApp edits and revocations, inspect
|
|
22
|
+
# type and the corresponding edit or revoke object.
|
|
15
23
|
#
|
|
16
24
|
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body, nil]
|
|
17
25
|
optional :body, -> { Telnyx::MessagingInboundMessagePayload::Body }
|
|
@@ -149,8 +157,9 @@ module Telnyx
|
|
|
149
157
|
optional :text, String
|
|
150
158
|
|
|
151
159
|
# @!attribute to
|
|
152
|
-
# Receiving address. SMS and
|
|
153
|
-
#
|
|
160
|
+
# Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS
|
|
161
|
+
# recipients are identified by agent_id and agent_name. WhatsApp webhooks use one
|
|
162
|
+
# E.164 phone number.
|
|
154
163
|
#
|
|
155
164
|
# @return [Array<Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0>, String, nil]
|
|
156
165
|
optional :to, union: -> { Telnyx::MessagingInboundMessagePayload::To }
|
|
@@ -180,13 +189,15 @@ module Telnyx
|
|
|
180
189
|
# @return [String, nil]
|
|
181
190
|
optional :webhook_url, String, nil?: true
|
|
182
191
|
|
|
183
|
-
# @!method initialize(id: nil, body: nil, cc: nil, completed_at: nil, cost: nil, cost_breakdown: nil, direction: nil, encoding: nil, errors: nil, from: nil, media: nil, messaging_profile_id: nil, num_chars: nil, organization_id: nil, parts: nil, received_at: nil, record_type: nil, sent_at: nil, subject: nil, tags: nil, tcr_campaign_billable: nil, tcr_campaign_id: nil, tcr_campaign_registered: nil, text: nil, to: nil, type: nil, valid_until: nil, webhook_failover_url: nil, webhook_url: nil)
|
|
192
|
+
# @!method initialize(id: nil, autoresponse_type: nil, body: nil, cc: nil, completed_at: nil, cost: nil, cost_breakdown: nil, direction: nil, encoding: nil, errors: nil, from: nil, media: nil, messaging_profile_id: nil, num_chars: nil, organization_id: nil, parts: nil, received_at: nil, record_type: nil, sent_at: nil, subject: nil, tags: nil, tcr_campaign_billable: nil, tcr_campaign_id: nil, tcr_campaign_registered: nil, text: nil, to: nil, type: nil, valid_until: nil, webhook_failover_url: nil, webhook_url: nil)
|
|
184
193
|
# Some parameter documentations has been truncated, see
|
|
185
194
|
# {Telnyx::Models::MessagingInboundMessagePayload} for more details.
|
|
186
195
|
#
|
|
187
196
|
# @param id [String] Identifies the type of resource.
|
|
188
197
|
#
|
|
189
|
-
# @param
|
|
198
|
+
# @param autoresponse_type [String] Automatic response type triggered by an inbound opt-in, opt-out, or help keyword
|
|
199
|
+
#
|
|
200
|
+
# @param body [Telnyx::Models::MessagingInboundMessagePayload::Body] Message body for RCS and WhatsApp. RCS messages contain text, user_file, locatio
|
|
190
201
|
#
|
|
191
202
|
# @param cc [Array<Telnyx::Models::MessagingInboundMessagePayload::Cc>]
|
|
192
203
|
#
|
|
@@ -232,7 +243,7 @@ module Telnyx
|
|
|
232
243
|
#
|
|
233
244
|
# @param text [String] Message body (i.e., content) as a non-empty string.
|
|
234
245
|
#
|
|
235
|
-
# @param to [Array<Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0>, String] Receiving address. SMS and
|
|
246
|
+
# @param to [Array<Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0>, String] Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS rec
|
|
236
247
|
#
|
|
237
248
|
# @param type [Symbol, Telnyx::Models::MessagingInboundMessagePayload::Type] The messaging channel used for the message.
|
|
238
249
|
#
|
|
@@ -268,12 +279,30 @@ module Telnyx
|
|
|
268
279
|
# @return [String, nil]
|
|
269
280
|
optional :from, String
|
|
270
281
|
|
|
282
|
+
# @!attribute location
|
|
283
|
+
# Location shared in an RCS message.
|
|
284
|
+
#
|
|
285
|
+
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body::Location, nil]
|
|
286
|
+
optional :location, -> { Telnyx::MessagingInboundMessagePayload::Body::Location }
|
|
287
|
+
|
|
271
288
|
# @!attribute revoke
|
|
272
289
|
# Details for a revoked WhatsApp message.
|
|
273
290
|
#
|
|
274
291
|
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body::Revoke, nil]
|
|
275
292
|
optional :revoke, -> { Telnyx::MessagingInboundMessagePayload::Body::Revoke }
|
|
276
293
|
|
|
294
|
+
# @!attribute suggestion_response
|
|
295
|
+
# Selected RCS suggestion.
|
|
296
|
+
#
|
|
297
|
+
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body::SuggestionResponse, nil]
|
|
298
|
+
optional :suggestion_response, -> { Telnyx::MessagingInboundMessagePayload::Body::SuggestionResponse }
|
|
299
|
+
|
|
300
|
+
# @!attribute text
|
|
301
|
+
# RCS text string or WhatsApp text object.
|
|
302
|
+
#
|
|
303
|
+
# @return [String, Telnyx::Models::MessagingInboundMessagePayload::Body::Text::Body, nil]
|
|
304
|
+
optional :text, union: -> { Telnyx::MessagingInboundMessagePayload::Body::Text }
|
|
305
|
+
|
|
277
306
|
# @!attribute timestamp
|
|
278
307
|
# Unix timestamp supplied by Meta.
|
|
279
308
|
#
|
|
@@ -287,12 +316,19 @@ module Telnyx
|
|
|
287
316
|
# @return [String, nil]
|
|
288
317
|
optional :type, String
|
|
289
318
|
|
|
290
|
-
# @!
|
|
319
|
+
# @!attribute user_file
|
|
320
|
+
# RCS file attachment and optional thumbnail.
|
|
321
|
+
#
|
|
322
|
+
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile, nil]
|
|
323
|
+
optional :user_file, -> { Telnyx::MessagingInboundMessagePayload::Body::UserFile }
|
|
324
|
+
|
|
325
|
+
# @!method initialize(id: nil, edit: nil, foreign_id: nil, from: nil, location: nil, revoke: nil, suggestion_response: nil, text: nil, timestamp: nil, type: nil, user_file: nil)
|
|
291
326
|
# Some parameter documentations has been truncated, see
|
|
292
327
|
# {Telnyx::Models::MessagingInboundMessagePayload::Body} for more details.
|
|
293
328
|
#
|
|
294
|
-
#
|
|
295
|
-
#
|
|
329
|
+
# Message body for RCS and WhatsApp. RCS messages contain text, user_file,
|
|
330
|
+
# location, or suggestion_response. For WhatsApp edits and revocations, inspect
|
|
331
|
+
# type and the corresponding edit or revoke object.
|
|
296
332
|
#
|
|
297
333
|
# @param id [String] Telnyx identifier for this webhook message.
|
|
298
334
|
#
|
|
@@ -302,11 +338,19 @@ module Telnyx
|
|
|
302
338
|
#
|
|
303
339
|
# @param from [String] WhatsApp sender in E.164 format.
|
|
304
340
|
#
|
|
341
|
+
# @param location [Telnyx::Models::MessagingInboundMessagePayload::Body::Location] Location shared in an RCS message.
|
|
342
|
+
#
|
|
305
343
|
# @param revoke [Telnyx::Models::MessagingInboundMessagePayload::Body::Revoke] Details for a revoked WhatsApp message.
|
|
306
344
|
#
|
|
345
|
+
# @param suggestion_response [Telnyx::Models::MessagingInboundMessagePayload::Body::SuggestionResponse] Selected RCS suggestion.
|
|
346
|
+
#
|
|
347
|
+
# @param text [String, Telnyx::Models::MessagingInboundMessagePayload::Body::Text::Body] RCS text string or WhatsApp text object.
|
|
348
|
+
#
|
|
307
349
|
# @param timestamp [String] Unix timestamp supplied by Meta.
|
|
308
350
|
#
|
|
309
351
|
# @param type [String] WhatsApp message body type. Edit and revoke events use `edit` and `revoke`, resp
|
|
352
|
+
#
|
|
353
|
+
# @param user_file [Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile] RCS file attachment and optional thumbnail.
|
|
310
354
|
|
|
311
355
|
# @see Telnyx::Models::MessagingInboundMessagePayload::Body#edit
|
|
312
356
|
class Edit < Telnyx::Internal::Type::BaseModel
|
|
@@ -334,6 +378,25 @@ module Telnyx
|
|
|
334
378
|
# @param original_message_id [String] Telnyx message ID when a mapping exists, otherwise the original Meta WhatsApp me
|
|
335
379
|
end
|
|
336
380
|
|
|
381
|
+
# @see Telnyx::Models::MessagingInboundMessagePayload::Body#location
|
|
382
|
+
class Location < Telnyx::Internal::Type::BaseModel
|
|
383
|
+
# @!attribute latitude
|
|
384
|
+
#
|
|
385
|
+
# @return [Float, nil]
|
|
386
|
+
optional :latitude, Float
|
|
387
|
+
|
|
388
|
+
# @!attribute longitude
|
|
389
|
+
#
|
|
390
|
+
# @return [Float, nil]
|
|
391
|
+
optional :longitude, Float
|
|
392
|
+
|
|
393
|
+
# @!method initialize(latitude: nil, longitude: nil)
|
|
394
|
+
# Location shared in an RCS message.
|
|
395
|
+
#
|
|
396
|
+
# @param latitude [Float]
|
|
397
|
+
# @param longitude [Float]
|
|
398
|
+
end
|
|
399
|
+
|
|
337
400
|
# @see Telnyx::Models::MessagingInboundMessagePayload::Body#revoke
|
|
338
401
|
class Revoke < Telnyx::Internal::Type::BaseModel
|
|
339
402
|
# @!attribute original_message_id
|
|
@@ -351,6 +414,126 @@ module Telnyx
|
|
|
351
414
|
#
|
|
352
415
|
# @param original_message_id [String] Telnyx message ID when a mapping exists, otherwise the original Meta WhatsApp me
|
|
353
416
|
end
|
|
417
|
+
|
|
418
|
+
# @see Telnyx::Models::MessagingInboundMessagePayload::Body#suggestion_response
|
|
419
|
+
class SuggestionResponse < Telnyx::Internal::Type::BaseModel
|
|
420
|
+
# @!attribute postback_data
|
|
421
|
+
#
|
|
422
|
+
# @return [String, nil]
|
|
423
|
+
optional :postback_data, String
|
|
424
|
+
|
|
425
|
+
# @!attribute text
|
|
426
|
+
#
|
|
427
|
+
# @return [String, nil]
|
|
428
|
+
optional :text, String
|
|
429
|
+
|
|
430
|
+
# @!method initialize(postback_data: nil, text: nil)
|
|
431
|
+
# Selected RCS suggestion.
|
|
432
|
+
#
|
|
433
|
+
# @param postback_data [String]
|
|
434
|
+
# @param text [String]
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# RCS text string or WhatsApp text object.
|
|
438
|
+
#
|
|
439
|
+
# @see Telnyx::Models::MessagingInboundMessagePayload::Body#text
|
|
440
|
+
module Text
|
|
441
|
+
extend Telnyx::Internal::Type::Union
|
|
442
|
+
|
|
443
|
+
variant String
|
|
444
|
+
|
|
445
|
+
variant -> { Telnyx::MessagingInboundMessagePayload::Body::Text::Body }
|
|
446
|
+
|
|
447
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
448
|
+
# @!attribute body
|
|
449
|
+
#
|
|
450
|
+
# @return [String, nil]
|
|
451
|
+
optional :body, String
|
|
452
|
+
|
|
453
|
+
# @!method initialize(body: nil)
|
|
454
|
+
# @param body [String]
|
|
455
|
+
end
|
|
456
|
+
|
|
457
|
+
# @!method self.variants
|
|
458
|
+
# @return [Array(String, Telnyx::Models::MessagingInboundMessagePayload::Body::Text::Body)]
|
|
459
|
+
end
|
|
460
|
+
|
|
461
|
+
# @see Telnyx::Models::MessagingInboundMessagePayload::Body#user_file
|
|
462
|
+
class UserFile < Telnyx::Internal::Type::BaseModel
|
|
463
|
+
# @!attribute payload
|
|
464
|
+
#
|
|
465
|
+
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile::Payload, nil]
|
|
466
|
+
optional :payload, -> { Telnyx::MessagingInboundMessagePayload::Body::UserFile::Payload }
|
|
467
|
+
|
|
468
|
+
# @!attribute thumbnail
|
|
469
|
+
#
|
|
470
|
+
# @return [Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile::Thumbnail, nil]
|
|
471
|
+
optional :thumbnail, -> { Telnyx::MessagingInboundMessagePayload::Body::UserFile::Thumbnail }
|
|
472
|
+
|
|
473
|
+
# @!method initialize(payload: nil, thumbnail: nil)
|
|
474
|
+
# RCS file attachment and optional thumbnail.
|
|
475
|
+
#
|
|
476
|
+
# @param payload [Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile::Payload]
|
|
477
|
+
# @param thumbnail [Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile::Thumbnail]
|
|
478
|
+
|
|
479
|
+
# @see Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile#payload
|
|
480
|
+
class Payload < Telnyx::Internal::Type::BaseModel
|
|
481
|
+
# @!attribute file_name
|
|
482
|
+
#
|
|
483
|
+
# @return [String, nil]
|
|
484
|
+
optional :file_name, String
|
|
485
|
+
|
|
486
|
+
# @!attribute file_size_bytes
|
|
487
|
+
#
|
|
488
|
+
# @return [Integer, nil]
|
|
489
|
+
optional :file_size_bytes, Integer
|
|
490
|
+
|
|
491
|
+
# @!attribute file_uri
|
|
492
|
+
#
|
|
493
|
+
# @return [String, nil]
|
|
494
|
+
optional :file_uri, String
|
|
495
|
+
|
|
496
|
+
# @!attribute mime_type
|
|
497
|
+
#
|
|
498
|
+
# @return [String, nil]
|
|
499
|
+
optional :mime_type, String
|
|
500
|
+
|
|
501
|
+
# @!method initialize(file_name: nil, file_size_bytes: nil, file_uri: nil, mime_type: nil)
|
|
502
|
+
# @param file_name [String]
|
|
503
|
+
# @param file_size_bytes [Integer]
|
|
504
|
+
# @param file_uri [String]
|
|
505
|
+
# @param mime_type [String]
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
# @see Telnyx::Models::MessagingInboundMessagePayload::Body::UserFile#thumbnail
|
|
509
|
+
class Thumbnail < Telnyx::Internal::Type::BaseModel
|
|
510
|
+
# @!attribute file_name
|
|
511
|
+
#
|
|
512
|
+
# @return [String, nil]
|
|
513
|
+
optional :file_name, String
|
|
514
|
+
|
|
515
|
+
# @!attribute file_size_bytes
|
|
516
|
+
#
|
|
517
|
+
# @return [Integer, nil]
|
|
518
|
+
optional :file_size_bytes, Integer
|
|
519
|
+
|
|
520
|
+
# @!attribute file_uri
|
|
521
|
+
#
|
|
522
|
+
# @return [String, nil]
|
|
523
|
+
optional :file_uri, String
|
|
524
|
+
|
|
525
|
+
# @!attribute mime_type
|
|
526
|
+
#
|
|
527
|
+
# @return [String, nil]
|
|
528
|
+
optional :mime_type, String
|
|
529
|
+
|
|
530
|
+
# @!method initialize(file_name: nil, file_size_bytes: nil, file_uri: nil, mime_type: nil)
|
|
531
|
+
# @param file_name [String]
|
|
532
|
+
# @param file_size_bytes [Integer]
|
|
533
|
+
# @param file_uri [String]
|
|
534
|
+
# @param mime_type [String]
|
|
535
|
+
end
|
|
536
|
+
end
|
|
354
537
|
end
|
|
355
538
|
|
|
356
539
|
class Cc < Telnyx::Internal::Type::BaseModel
|
|
@@ -562,6 +745,7 @@ module Telnyx
|
|
|
562
745
|
VO_IP = :VoIP
|
|
563
746
|
PRE_PAID_WIRELESS = :"Pre-Paid Wireless"
|
|
564
747
|
EMPTY = :""
|
|
748
|
+
LONG_CODE = :long_code
|
|
565
749
|
|
|
566
750
|
# @!method self.values
|
|
567
751
|
# @return [Array<Symbol>]
|
|
@@ -573,6 +757,7 @@ module Telnyx
|
|
|
573
757
|
|
|
574
758
|
RECEIVED = :received
|
|
575
759
|
DELIVERED = :delivered
|
|
760
|
+
WEBHOOK_DELIVERED = :webhook_delivered
|
|
576
761
|
|
|
577
762
|
# @!method self.values
|
|
578
763
|
# @return [Array<Symbol>]
|
|
@@ -626,8 +811,9 @@ module Telnyx
|
|
|
626
811
|
# @return [Array<Symbol>]
|
|
627
812
|
end
|
|
628
813
|
|
|
629
|
-
# Receiving address. SMS and
|
|
630
|
-
#
|
|
814
|
+
# Receiving address. SMS, MMS and RCS webhooks use an array of recipients. RCS
|
|
815
|
+
# recipients are identified by agent_id and agent_name. WhatsApp webhooks use one
|
|
816
|
+
# E.164 phone number.
|
|
631
817
|
#
|
|
632
818
|
# @see Telnyx::Models::MessagingInboundMessagePayload#to
|
|
633
819
|
module To
|
|
@@ -639,6 +825,18 @@ module Telnyx
|
|
|
639
825
|
variant String
|
|
640
826
|
|
|
641
827
|
class UnionMember0 < Telnyx::Internal::Type::BaseModel
|
|
828
|
+
# @!attribute agent_id
|
|
829
|
+
# RCS agent identifier.
|
|
830
|
+
#
|
|
831
|
+
# @return [String, nil]
|
|
832
|
+
optional :agent_id, String
|
|
833
|
+
|
|
834
|
+
# @!attribute agent_name
|
|
835
|
+
# RCS agent name.
|
|
836
|
+
#
|
|
837
|
+
# @return [String, nil]
|
|
838
|
+
optional :agent_name, String
|
|
839
|
+
|
|
642
840
|
# @!attribute carrier
|
|
643
841
|
# The carrier of the receiver.
|
|
644
842
|
#
|
|
@@ -662,7 +860,11 @@ module Telnyx
|
|
|
662
860
|
# @return [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0::Status, nil]
|
|
663
861
|
optional :status, enum: -> { Telnyx::MessagingInboundMessagePayload::To::UnionMember0::Status }
|
|
664
862
|
|
|
665
|
-
# @!method initialize(carrier: nil, line_type: nil, phone_number: nil, status: nil)
|
|
863
|
+
# @!method initialize(agent_id: nil, agent_name: nil, carrier: nil, line_type: nil, phone_number: nil, status: nil)
|
|
864
|
+
# @param agent_id [String] RCS agent identifier.
|
|
865
|
+
#
|
|
866
|
+
# @param agent_name [String] RCS agent name.
|
|
867
|
+
#
|
|
666
868
|
# @param carrier [String] The carrier of the receiver.
|
|
667
869
|
#
|
|
668
870
|
# @param line_type [Symbol, Telnyx::Models::MessagingInboundMessagePayload::To::UnionMember0::LineType] The line-type of the receiver.
|
|
@@ -723,6 +925,7 @@ module Telnyx
|
|
|
723
925
|
SMS = :SMS
|
|
724
926
|
MMS = :MMS
|
|
725
927
|
WHATSAPP = :WHATSAPP
|
|
928
|
+
RCS = :RCS
|
|
726
929
|
|
|
727
930
|
# @!method self.values
|
|
728
931
|
# @return [Array<Symbol>]
|
|
@@ -9,6 +9,12 @@ module Telnyx
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
optional :id, String
|
|
11
11
|
|
|
12
|
+
# @!attribute body
|
|
13
|
+
# RCS webhook message body. Text messages use the text property.
|
|
14
|
+
#
|
|
15
|
+
# @return [Telnyx::Models::MessagingOutboundMessagePayload::Body, nil]
|
|
16
|
+
optional :body, -> { Telnyx::MessagingOutboundMessagePayload::Body }
|
|
17
|
+
|
|
12
18
|
# @!attribute cc
|
|
13
19
|
#
|
|
14
20
|
# @return [Array<Telnyx::Models::MessagingOutboundMessagePayload::Cc>, nil]
|
|
@@ -190,12 +196,14 @@ module Telnyx
|
|
|
190
196
|
# @return [String, nil]
|
|
191
197
|
optional :webhook_url, String, nil?: true
|
|
192
198
|
|
|
193
|
-
# @!method initialize(id: nil, cc: nil, completed_at: nil, cost: nil, cost_breakdown: nil, direction: nil, encoding: nil, errors: nil, from: nil, media: nil, messaging_profile_id: nil, num_chars: nil, organization_id: nil, parts: nil, received_at: nil, record_type: nil, sent_at: nil, smart_encoding_applied: nil, subject: nil, tags: nil, tcr_campaign_billable: nil, tcr_campaign_id: nil, tcr_campaign_registered: nil, text: nil, to: nil, type: nil, valid_until: nil, wait_seconds: nil, webhook_failover_url: nil, webhook_url: nil)
|
|
199
|
+
# @!method initialize(id: nil, body: nil, cc: nil, completed_at: nil, cost: nil, cost_breakdown: nil, direction: nil, encoding: nil, errors: nil, from: nil, media: nil, messaging_profile_id: nil, num_chars: nil, organization_id: nil, parts: nil, received_at: nil, record_type: nil, sent_at: nil, smart_encoding_applied: nil, subject: nil, tags: nil, tcr_campaign_billable: nil, tcr_campaign_id: nil, tcr_campaign_registered: nil, text: nil, to: nil, type: nil, valid_until: nil, wait_seconds: nil, webhook_failover_url: nil, webhook_url: nil)
|
|
194
200
|
# Some parameter documentations has been truncated, see
|
|
195
201
|
# {Telnyx::Models::MessagingOutboundMessagePayload} for more details.
|
|
196
202
|
#
|
|
197
203
|
# @param id [String] Identifies the type of resource.
|
|
198
204
|
#
|
|
205
|
+
# @param body [Telnyx::Models::MessagingOutboundMessagePayload::Body] RCS webhook message body. Text messages use the text property.
|
|
206
|
+
#
|
|
199
207
|
# @param cc [Array<Telnyx::Models::MessagingOutboundMessagePayload::Cc>]
|
|
200
208
|
#
|
|
201
209
|
# @param completed_at [Time, nil] ISO 8601 formatted date indicating when the message was finalized.
|
|
@@ -254,6 +262,20 @@ module Telnyx
|
|
|
254
262
|
#
|
|
255
263
|
# @param webhook_url [String, nil] The URL where webhooks related to this message will be sent.
|
|
256
264
|
|
|
265
|
+
# @see Telnyx::Models::MessagingOutboundMessagePayload#body
|
|
266
|
+
class Body < Telnyx::Internal::Type::BaseModel
|
|
267
|
+
# @!attribute text
|
|
268
|
+
# RCS text message.
|
|
269
|
+
#
|
|
270
|
+
# @return [String, nil]
|
|
271
|
+
optional :text, String
|
|
272
|
+
|
|
273
|
+
# @!method initialize(text: nil)
|
|
274
|
+
# RCS webhook message body. Text messages use the text property.
|
|
275
|
+
#
|
|
276
|
+
# @param text [String] RCS text message.
|
|
277
|
+
end
|
|
278
|
+
|
|
257
279
|
class Cc < Telnyx::Internal::Type::BaseModel
|
|
258
280
|
# @!attribute carrier
|
|
259
281
|
# The carrier of the receiver.
|
|
@@ -415,6 +437,18 @@ module Telnyx
|
|
|
415
437
|
|
|
416
438
|
# @see Telnyx::Models::MessagingOutboundMessagePayload#from
|
|
417
439
|
class From < Telnyx::Internal::Type::BaseModel
|
|
440
|
+
# @!attribute agent_id
|
|
441
|
+
# RCS agent identifier.
|
|
442
|
+
#
|
|
443
|
+
# @return [String, nil]
|
|
444
|
+
optional :agent_id, String
|
|
445
|
+
|
|
446
|
+
# @!attribute agent_name
|
|
447
|
+
# RCS agent name.
|
|
448
|
+
#
|
|
449
|
+
# @return [String, nil]
|
|
450
|
+
optional :agent_name, String
|
|
451
|
+
|
|
418
452
|
# @!attribute carrier
|
|
419
453
|
# The carrier of the receiver.
|
|
420
454
|
#
|
|
@@ -434,10 +468,14 @@ module Telnyx
|
|
|
434
468
|
# @return [String, nil]
|
|
435
469
|
optional :phone_number, String
|
|
436
470
|
|
|
437
|
-
# @!method initialize(carrier: nil, line_type: nil, phone_number: nil)
|
|
471
|
+
# @!method initialize(agent_id: nil, agent_name: nil, carrier: nil, line_type: nil, phone_number: nil)
|
|
438
472
|
# Some parameter documentations has been truncated, see
|
|
439
473
|
# {Telnyx::Models::MessagingOutboundMessagePayload::From} for more details.
|
|
440
474
|
#
|
|
475
|
+
# @param agent_id [String] RCS agent identifier.
|
|
476
|
+
#
|
|
477
|
+
# @param agent_name [String] RCS agent name.
|
|
478
|
+
#
|
|
441
479
|
# @param carrier [String] The carrier of the receiver.
|
|
442
480
|
#
|
|
443
481
|
# @param line_type [Symbol, Telnyx::Models::MessagingOutboundMessagePayload::From::LineType] The line-type of the receiver.
|
|
@@ -574,6 +612,7 @@ module Telnyx
|
|
|
574
612
|
DELIVERY_UNCONFIRMED = :delivery_unconfirmed
|
|
575
613
|
DELIVERED = :delivered
|
|
576
614
|
DELIVERY_FAILED = :delivery_failed
|
|
615
|
+
READ = :read
|
|
577
616
|
|
|
578
617
|
# @!method self.values
|
|
579
618
|
# @return [Array<Symbol>]
|
|
@@ -588,6 +627,7 @@ module Telnyx
|
|
|
588
627
|
|
|
589
628
|
SMS = :SMS
|
|
590
629
|
MMS = :MMS
|
|
630
|
+
RCS = :RCS
|
|
591
631
|
|
|
592
632
|
# @!method self.values
|
|
593
633
|
# @return [Array<Symbol>]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::NoiseSuppressionEngines#list
|
|
6
|
+
class NoiseSuppressionEngineListParams < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
# @see Telnyx::Resources::NoiseSuppressionEngines#list
|
|
6
|
+
class NoiseSuppressionEngineListResponse < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute data
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<Telnyx::Models::NoiseSuppressionEngineListResponse::Data>]
|
|
10
|
+
required :data,
|
|
11
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::NoiseSuppressionEngineListResponse::Data] }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data:)
|
|
14
|
+
# @param data [Array<Telnyx::Models::NoiseSuppressionEngineListResponse::Data>]
|
|
15
|
+
|
|
16
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
# @!attribute default_attenuation_level
|
|
18
|
+
# Default attenuation level of the engine (0-100, in multiples of ten).
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer]
|
|
21
|
+
required :default_attenuation_level, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute label
|
|
24
|
+
# Human-readable name of the engine.
|
|
25
|
+
#
|
|
26
|
+
# @return [String]
|
|
27
|
+
required :label, String
|
|
28
|
+
|
|
29
|
+
# @!attribute value
|
|
30
|
+
# Machine-readable identifier of the engine, used when configuring noise
|
|
31
|
+
# suppression.
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
required :value, String
|
|
35
|
+
|
|
36
|
+
# @!method initialize(default_attenuation_level:, label:, value:)
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Telnyx::Models::NoiseSuppressionEngineListResponse::Data} for more details.
|
|
39
|
+
#
|
|
40
|
+
# A noise suppression engine available to the authenticated user.
|
|
41
|
+
#
|
|
42
|
+
# @param default_attenuation_level [Integer] Default attenuation level of the engine (0-100, in multiples of ten).
|
|
43
|
+
#
|
|
44
|
+
# @param label [String] Human-readable name of the engine.
|
|
45
|
+
#
|
|
46
|
+
# @param value [String] Machine-readable identifier of the engine, used when configuring noise suppressi
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|