telnyx 5.0.0 → 5.2.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 +46 -0
- data/README.md +1 -1
- data/lib/telnyx/client.rb +4 -0
- data/lib/telnyx/internal/type/union.rb +1 -1
- data/lib/telnyx/models/ai/assistant.rb +39 -4
- data/lib/telnyx/models/ai/assistant_create_params.rb +17 -6
- data/lib/telnyx/models/ai/assistant_imports_params.rb +10 -1
- data/lib/telnyx/models/ai/assistant_tool.rb +400 -3
- data/lib/telnyx/models/ai/assistant_update_params.rb +17 -6
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +17 -6
- data/lib/telnyx/models/ai/audio_visualizer_config.rb +43 -0
- data/lib/telnyx/models/ai/bucket_ids.rb +7 -1
- data/lib/telnyx/models/ai/chat_create_completion_params.rb +4 -4
- data/lib/telnyx/models/ai/inference_embedding.rb +17 -6
- data/lib/telnyx/models/ai/messaging_settings.rb +10 -1
- data/lib/telnyx/models/ai/retrieval_tool.rb +3 -3
- data/lib/telnyx/models/ai/telephony_settings.rb +142 -1
- data/lib/telnyx/models/ai/transfer_tool.rb +46 -3
- data/lib/telnyx/models/ai/voice_settings.rb +1 -1
- data/lib/telnyx/models/ai/webhook_tool.rb +256 -3
- data/lib/telnyx/models/ai/widget_settings.rb +138 -0
- data/lib/telnyx/models/call_control_application_list_params.rb +16 -18
- data/lib/telnyx/models/call_event_list_params.rb +16 -18
- data/lib/telnyx/models/calls/action_add_ai_assistant_messages_params.rb +289 -0
- data/lib/telnyx/models/calls/action_add_ai_assistant_messages_response.rb +18 -0
- data/lib/telnyx/models/calls/action_start_noise_suppression_params.rb +7 -4
- data/lib/telnyx/models/conference_list_params.rb +16 -18
- data/lib/telnyx/models/conference_list_participants_params.rb +16 -18
- data/lib/telnyx/models/connection_list_active_calls_params.rb +16 -18
- data/lib/telnyx/models/connection_noise_suppression_details.rb +61 -0
- data/lib/telnyx/models/credential_connection.rb +3 -61
- data/lib/telnyx/models/credential_connection_create_params.rb +3 -61
- data/lib/telnyx/models/credential_connection_update_params.rb +3 -61
- data/lib/telnyx/models/fax_create_params.rb +10 -1
- data/lib/telnyx/models/fqdn_connection.rb +3 -60
- data/lib/telnyx/models/fqdn_connection_create_params.rb +3 -60
- data/lib/telnyx/models/fqdn_connection_update_params.rb +3 -60
- data/lib/telnyx/models/ip_connection.rb +3 -60
- data/lib/telnyx/models/ip_connection_create_params.rb +3 -60
- data/lib/telnyx/models/ip_connection_update_params.rb +3 -60
- data/lib/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rb +1 -9
- data/lib/telnyx/models/messaging_profile.rb +11 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +11 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +11 -1
- data/lib/telnyx/models/messaging_tollfree/verification/tf_verification_request.rb +14 -1
- data/lib/telnyx/models/messaging_tollfree/verification/verification_request_egress.rb +17 -1
- data/lib/telnyx/models/messaging_tollfree/verification/verification_request_status.rb +17 -1
- data/lib/telnyx/models/organizations/user_get_groups_report_params.rb +32 -0
- data/lib/telnyx/models/organizations/user_get_groups_report_response.rb +110 -0
- data/lib/telnyx/models/organizations/user_group_reference.rb +28 -0
- data/lib/telnyx/models/organizations/user_list_params.rb +73 -0
- data/lib/telnyx/models/organizations/user_list_response.rb +96 -0
- data/lib/telnyx/models/organizations/user_retrieve_params.rb +29 -0
- data/lib/telnyx/models/organizations/user_retrieve_response.rb +107 -0
- data/lib/telnyx/models/organizations/users/action_remove_params.rb +18 -0
- data/lib/telnyx/models/organizations/users/action_remove_response.rb +111 -0
- data/lib/telnyx/models/private_wireless_gateway_status.rb +3 -2
- data/lib/telnyx/models/queues/call_list_params.rb +16 -18
- data/lib/telnyx/models/sim_card_list_params.rb +11 -3
- data/lib/telnyx/models/texml/accounts/queue_list_params.rb +64 -0
- data/lib/telnyx/models/texml/accounts/queue_list_response.rb +155 -0
- data/lib/telnyx/models/unsafe_unwrap_webhook_event.rb +1 -7
- data/lib/telnyx/models/unwrap_webhook_event.rb +1 -7
- data/lib/telnyx/models.rb +4 -6
- data/lib/telnyx/resources/ai/assistants/tools.rb +2 -2
- data/lib/telnyx/resources/ai/assistants/versions.rb +18 -16
- data/lib/telnyx/resources/ai/assistants.rb +15 -9
- data/lib/telnyx/resources/ai/clusters.rb +1 -1
- data/lib/telnyx/resources/ai/embeddings.rb +1 -1
- data/lib/telnyx/resources/bundle_pricing/user_bundles.rb +1 -1
- data/lib/telnyx/resources/call_control_applications.rb +8 -4
- data/lib/telnyx/resources/call_events.rb +8 -4
- data/lib/telnyx/resources/calls/actions.rb +31 -0
- data/lib/telnyx/resources/conferences.rb +16 -8
- data/lib/telnyx/resources/connections.rb +8 -4
- data/lib/telnyx/resources/credential_connections.rb +2 -2
- data/lib/telnyx/resources/faxes.rb +3 -1
- data/lib/telnyx/resources/fqdn_connections.rb +2 -2
- data/lib/telnyx/resources/ip_connections.rb +2 -2
- data/lib/telnyx/resources/messages.rb +1 -1
- data/lib/telnyx/resources/messaging_10dlc/brand.rb +10 -14
- data/lib/telnyx/resources/messaging_profiles/autoresp_configs.rb +6 -6
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/messaging_tollfree/verification/requests.rb +6 -2
- data/lib/telnyx/resources/operator_connect/actions.rb +1 -1
- data/lib/telnyx/resources/organizations/users/actions.rb +38 -0
- data/lib/telnyx/resources/organizations/users.rb +114 -0
- data/lib/telnyx/resources/organizations.rb +18 -0
- data/lib/telnyx/resources/phone_numbers/jobs.rb +1 -1
- data/lib/telnyx/resources/queues/calls.rb +8 -4
- data/lib/telnyx/resources/sim_cards/actions.rb +6 -6
- data/lib/telnyx/resources/texml/accounts/calls/recordings.rb +1 -1
- data/lib/telnyx/resources/texml/accounts/queues.rb +41 -0
- data/lib/telnyx/resources/usage_reports.rb +2 -2
- data/lib/telnyx/resources/webhooks.rb +2 -2
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +19 -69
- data/rbi/telnyx/client.rbi +3 -0
- data/rbi/telnyx/models/ai/assistant.rbi +91 -5
- data/rbi/telnyx/models/ai/assistant_create_params.rbi +31 -14
- data/rbi/telnyx/models/ai/assistant_imports_params.rbi +13 -0
- data/rbi/telnyx/models/ai/assistant_tool.rbi +910 -2
- data/rbi/telnyx/models/ai/assistant_update_params.rbi +31 -14
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +36 -17
- data/rbi/telnyx/models/ai/audio_visualizer_config.rbi +107 -0
- data/rbi/telnyx/models/ai/bucket_ids.rbi +6 -0
- data/rbi/telnyx/models/ai/chat_create_completion_params.rbi +6 -13
- data/rbi/telnyx/models/ai/inference_embedding.rbi +30 -13
- data/rbi/telnyx/models/ai/messaging_settings.rbi +13 -0
- data/rbi/telnyx/models/ai/retrieval_tool.rbi +4 -8
- data/rbi/telnyx/models/ai/telephony_settings.rbi +347 -3
- data/rbi/telnyx/models/ai/transfer_tool.rbi +87 -6
- data/rbi/telnyx/models/ai/voice_settings.rbi +2 -2
- data/rbi/telnyx/models/ai/webhook_tool.rbi +584 -8
- data/rbi/telnyx/models/ai/widget_settings.rbi +225 -0
- data/rbi/telnyx/models/call_control_application_list_params.rbi +23 -35
- data/rbi/telnyx/models/call_event_list_params.rbi +23 -35
- data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_params.rbi +583 -0
- data/rbi/telnyx/models/calls/action_add_ai_assistant_messages_response.rbi +39 -0
- data/rbi/telnyx/models/calls/action_start_noise_suppression_params.rbi +14 -6
- data/rbi/telnyx/models/conference_list_params.rbi +23 -35
- data/rbi/telnyx/models/conference_list_participants_params.rbi +23 -35
- data/rbi/telnyx/models/connection_list_active_calls_params.rbi +23 -35
- data/rbi/telnyx/models/connection_noise_suppression_details.rbi +141 -0
- data/rbi/telnyx/models/credential_connection.rbi +4 -152
- data/rbi/telnyx/models/credential_connection_create_params.rbi +4 -154
- data/rbi/telnyx/models/credential_connection_update_params.rbi +4 -154
- data/rbi/telnyx/models/fax_create_params.rbi +13 -0
- data/rbi/telnyx/models/fqdn_connection.rbi +4 -150
- data/rbi/telnyx/models/fqdn_connection_create_params.rbi +4 -152
- data/rbi/telnyx/models/fqdn_connection_update_params.rbi +4 -152
- data/rbi/telnyx/models/ip_connection.rbi +4 -148
- data/rbi/telnyx/models/ip_connection_create_params.rbi +4 -152
- data/rbi/telnyx/models/ip_connection_update_params.rbi +4 -152
- data/rbi/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbi +5 -21
- data/rbi/telnyx/models/messaging_profile.rbi +15 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +15 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +15 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbi +12 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbi +10 -0
- data/rbi/telnyx/models/messaging_tollfree/verification/verification_request_status.rbi +10 -0
- data/rbi/telnyx/models/organizations/user_get_groups_report_params.rbi +93 -0
- data/rbi/telnyx/models/organizations/user_get_groups_report_response.rbi +210 -0
- data/rbi/telnyx/models/organizations/user_group_reference.rbi +39 -0
- data/rbi/telnyx/models/organizations/user_list_params.rbi +152 -0
- data/rbi/telnyx/models/organizations/user_list_response.rbi +188 -0
- data/rbi/telnyx/models/organizations/user_retrieve_params.rbi +55 -0
- data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +232 -0
- data/rbi/telnyx/models/organizations/users/action_remove_params.rbi +34 -0
- data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +239 -0
- data/rbi/telnyx/models/private_wireless_gateway_status.rbi +4 -2
- data/rbi/telnyx/models/queues/call_list_params.rbi +23 -35
- data/rbi/telnyx/models/sim_card_list_params.rbi +14 -3
- data/rbi/telnyx/models/texml/accounts/queue_list_params.rbi +103 -0
- data/rbi/telnyx/models/texml/accounts/queue_list_response.rbi +269 -0
- data/rbi/telnyx/models/unsafe_unwrap_webhook_event.rbi +0 -3
- data/rbi/telnyx/models/unwrap_webhook_event.rbi +0 -3
- data/rbi/telnyx/models.rbi +5 -6
- data/rbi/telnyx/resources/ai/assistants/tools.rbi +2 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +25 -19
- data/rbi/telnyx/resources/ai/assistants.rbi +30 -14
- data/rbi/telnyx/resources/ai/chat.rbi +1 -1
- data/rbi/telnyx/resources/ai/clusters.rbi +1 -1
- data/rbi/telnyx/resources/ai/embeddings.rbi +1 -1
- data/rbi/telnyx/resources/bundle_pricing/user_bundles.rbi +1 -1
- data/rbi/telnyx/resources/call_control_applications.rbi +7 -1
- data/rbi/telnyx/resources/call_events.rbi +5 -1
- data/rbi/telnyx/resources/calls/actions.rbi +37 -2
- data/rbi/telnyx/resources/conferences.rbi +10 -2
- data/rbi/telnyx/resources/connections.rbi +5 -1
- data/rbi/telnyx/resources/credential_connections.rbi +2 -2
- data/rbi/telnyx/resources/faxes.rbi +4 -0
- data/rbi/telnyx/resources/fqdn_connections.rbi +2 -2
- data/rbi/telnyx/resources/ip_connections.rbi +2 -2
- data/rbi/telnyx/resources/messages.rbi +1 -1
- data/rbi/telnyx/resources/messaging_10dlc/brand.rbi +8 -11
- data/rbi/telnyx/resources/messaging_profiles/autoresp_configs.rbi +6 -6
- data/rbi/telnyx/resources/messaging_profiles.rbi +10 -0
- data/rbi/telnyx/resources/messaging_tollfree/verification/requests.rbi +10 -0
- data/rbi/telnyx/resources/operator_connect/actions.rbi +1 -1
- data/rbi/telnyx/resources/organizations/users/actions.rbi +32 -0
- data/rbi/telnyx/resources/organizations/users.rbi +88 -0
- data/rbi/telnyx/resources/organizations.rbi +15 -0
- data/rbi/telnyx/resources/phone_numbers/jobs.rbi +1 -1
- data/rbi/telnyx/resources/queues/calls.rbi +5 -1
- data/rbi/telnyx/resources/sim_cards/actions.rbi +6 -6
- data/rbi/telnyx/resources/sim_cards.rbi +1 -1
- data/rbi/telnyx/resources/texml/accounts/calls/recordings.rbi +1 -1
- data/rbi/telnyx/resources/texml/accounts/queues.rbi +32 -0
- data/rbi/telnyx/resources/usage_reports.rbi +2 -2
- data/rbi/telnyx/resources/webhooks.rbi +0 -6
- data/sig/telnyx/client.rbs +2 -0
- data/sig/telnyx/models/ai/assistant.rbs +44 -1
- data/sig/telnyx/models/ai/assistant_create_params.rbs +10 -1
- data/sig/telnyx/models/ai/assistant_imports_params.rbs +8 -1
- data/sig/telnyx/models/ai/assistant_tool.rbs +367 -2
- data/sig/telnyx/models/ai/assistant_update_params.rbs +10 -1
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +12 -3
- data/sig/telnyx/models/ai/audio_visualizer_config.rbs +48 -0
- data/sig/telnyx/models/ai/chat_create_completion_params.rbs +4 -7
- data/sig/telnyx/models/ai/inference_embedding.rbs +12 -3
- data/sig/telnyx/models/ai/messaging_settings.rbs +7 -0
- data/sig/telnyx/models/ai/retrieval_tool.rbs +4 -4
- data/sig/telnyx/models/ai/telephony_settings.rbs +133 -4
- data/sig/telnyx/models/ai/transfer_tool.rbs +42 -4
- data/sig/telnyx/models/ai/webhook_tool.rbs +241 -4
- data/sig/telnyx/models/ai/widget_settings.rbs +127 -0
- data/sig/telnyx/models/call_control_application_list_params.rbs +17 -26
- data/sig/telnyx/models/call_event_list_params.rbs +18 -27
- data/sig/telnyx/models/calls/action_add_ai_assistant_messages_params.rbs +240 -0
- data/sig/telnyx/models/calls/action_add_ai_assistant_messages_response.rbs +20 -0
- data/sig/telnyx/models/calls/action_start_noise_suppression_params.rbs +2 -1
- data/sig/telnyx/models/conference_list_params.rbs +17 -26
- data/sig/telnyx/models/conference_list_participants_params.rbs +17 -26
- data/sig/telnyx/models/connection_list_active_calls_params.rbs +20 -27
- data/sig/telnyx/models/connection_noise_suppression_details.rbs +54 -0
- data/sig/telnyx/models/credential_connection.rbs +6 -57
- data/sig/telnyx/models/credential_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/credential_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/fax_create_params.rbs +7 -0
- data/sig/telnyx/models/fqdn_connection.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/fqdn_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/ip_connection.rbs +6 -57
- data/sig/telnyx/models/ip_connection_create_params.rbs +6 -57
- data/sig/telnyx/models/ip_connection_update_params.rbs +6 -57
- data/sig/telnyx/models/messaging_10dlc/brand_retrieve_sms_otp_status_params.rbs +3 -13
- data/sig/telnyx/models/messaging_profile.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_create_params.rbs +7 -0
- data/sig/telnyx/models/messaging_profile_update_params.rbs +7 -0
- data/sig/telnyx/models/messaging_tollfree/verification/tf_verification_request.rbs +5 -0
- data/sig/telnyx/models/messaging_tollfree/verification/verification_request_egress.rbs +5 -0
- data/sig/telnyx/models/messaging_tollfree/verification/verification_request_status.rbs +5 -0
- data/sig/telnyx/models/organizations/user_get_groups_report_params.rbs +43 -0
- data/sig/telnyx/models/organizations/user_get_groups_report_response.rbs +92 -0
- data/sig/telnyx/models/organizations/user_group_reference.rbs +17 -0
- data/sig/telnyx/models/organizations/user_list_params.rbs +72 -0
- data/sig/telnyx/models/organizations/user_list_response.rbs +87 -0
- data/sig/telnyx/models/organizations/user_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/organizations/user_retrieve_response.rbs +106 -0
- data/sig/telnyx/models/organizations/users/action_remove_params.rbs +19 -0
- data/sig/telnyx/models/organizations/users/action_remove_response.rbs +110 -0
- data/sig/telnyx/models/queues/call_list_params.rbs +20 -27
- data/sig/telnyx/models/sim_card_list_params.rbs +7 -0
- data/sig/telnyx/models/texml/accounts/queue_list_params.rbs +60 -0
- data/sig/telnyx/models/texml/accounts/queue_list_response.rbs +152 -0
- data/sig/telnyx/models/unsafe_unwrap_webhook_event.rbs +0 -3
- data/sig/telnyx/models/unwrap_webhook_event.rbs +0 -3
- data/sig/telnyx/models.rbs +4 -6
- data/sig/telnyx/resources/ai/assistants/versions.rbs +1 -0
- data/sig/telnyx/resources/ai/assistants.rbs +3 -0
- data/sig/telnyx/resources/call_control_applications.rbs +3 -1
- data/sig/telnyx/resources/call_events.rbs +3 -1
- data/sig/telnyx/resources/calls/actions.rbs +8 -0
- data/sig/telnyx/resources/conferences.rbs +6 -2
- data/sig/telnyx/resources/connections.rbs +3 -1
- data/sig/telnyx/resources/credential_connections.rbs +2 -2
- data/sig/telnyx/resources/faxes.rbs +1 -0
- data/sig/telnyx/resources/fqdn_connections.rbs +2 -2
- data/sig/telnyx/resources/ip_connections.rbs +2 -2
- data/sig/telnyx/resources/messaging_10dlc/brand.rbs +1 -2
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/messaging_tollfree/verification/requests.rbs +2 -0
- data/sig/telnyx/resources/organizations/users/actions.rbs +16 -0
- data/sig/telnyx/resources/organizations/users.rbs +31 -0
- data/sig/telnyx/resources/organizations.rbs +9 -0
- data/sig/telnyx/resources/queues/calls.rbs +3 -1
- data/sig/telnyx/resources/texml/accounts/queues.rbs +10 -0
- data/sig/telnyx/resources/webhooks.rbs +0 -6
- metadata +59 -20
- data/lib/telnyx/models/ai/inference_embedding_bucket_ids.rb +0 -31
- data/lib/telnyx/models/ai/inference_embedding_transfer_tool_params.rb +0 -93
- data/lib/telnyx/models/ai/inference_embedding_webhook_tool_params.rb +0 -265
- data/lib/telnyx/models/streaming_failed_webhook_event.rb +0 -15
- data/lib/telnyx/models/streaming_started_webhook_event.rb +0 -15
- data/lib/telnyx/models/streaming_stopped_webhook_event.rb +0 -15
- data/rbi/telnyx/models/ai/inference_embedding_bucket_ids.rbi +0 -54
- data/rbi/telnyx/models/ai/inference_embedding_transfer_tool_params.rbi +0 -185
- data/rbi/telnyx/models/ai/inference_embedding_webhook_tool_params.rbi +0 -621
- data/rbi/telnyx/models/streaming_failed_webhook_event.rbi +0 -30
- data/rbi/telnyx/models/streaming_started_webhook_event.rbi +0 -30
- data/rbi/telnyx/models/streaming_stopped_webhook_event.rbi +0 -30
- data/sig/telnyx/models/ai/inference_embedding_bucket_ids.rbs +0 -26
- data/sig/telnyx/models/ai/inference_embedding_transfer_tool_params.rbs +0 -75
- data/sig/telnyx/models/ai/inference_embedding_webhook_tool_params.rbs +0 -242
- data/sig/telnyx/models/streaming_failed_webhook_event.rbs +0 -15
- data/sig/telnyx/models/streaming_started_webhook_event.rbs +0 -16
- data/sig/telnyx/models/streaming_stopped_webhook_event.rbs +0 -16
|
@@ -4,6 +4,37 @@ module Telnyx
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Calls
|
|
6
6
|
class Actions
|
|
7
|
+
# Some parameter documentations has been truncated, see
|
|
8
|
+
# {Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams} for more details.
|
|
9
|
+
#
|
|
10
|
+
# Add messages to the conversation started by an AI assistant on the call.
|
|
11
|
+
#
|
|
12
|
+
# @overload add_ai_assistant_messages(call_control_id, client_state: nil, command_id: nil, messages: nil, request_options: {})
|
|
13
|
+
#
|
|
14
|
+
# @param call_control_id [String] Unique identifier and token for controlling the call
|
|
15
|
+
#
|
|
16
|
+
# @param client_state [String] Use this field to add state to every subsequent webhook. It must be a valid Base
|
|
17
|
+
#
|
|
18
|
+
# @param command_id [String] Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
19
|
+
#
|
|
20
|
+
# @param messages [Array<Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams::Message::User, Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams::Message::Assistant, Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams::Message::Tool, Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams::Message::System, Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams::Message::Developer>] The messages to add to the conversation.
|
|
21
|
+
#
|
|
22
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
23
|
+
#
|
|
24
|
+
# @return [Telnyx::Models::Calls::ActionAddAIAssistantMessagesResponse]
|
|
25
|
+
#
|
|
26
|
+
# @see Telnyx::Models::Calls::ActionAddAIAssistantMessagesParams
|
|
27
|
+
def add_ai_assistant_messages(call_control_id, params = {})
|
|
28
|
+
parsed, options = Telnyx::Calls::ActionAddAIAssistantMessagesParams.dump_request(params)
|
|
29
|
+
@client.request(
|
|
30
|
+
method: :post,
|
|
31
|
+
path: ["calls/%1$s/actions/ai_assistant_add_messages", call_control_id],
|
|
32
|
+
body: parsed,
|
|
33
|
+
model: Telnyx::Models::Calls::ActionAddAIAssistantMessagesResponse,
|
|
34
|
+
options: options
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
7
38
|
# Some parameter documentations has been truncated, see
|
|
8
39
|
# {Telnyx::Models::Calls::ActionAnswerParams} for more details.
|
|
9
40
|
#
|
|
@@ -98,17 +98,21 @@ module Telnyx
|
|
|
98
98
|
# of active participants. Conferences are listed in descending order by
|
|
99
99
|
# `expires_at`.
|
|
100
100
|
#
|
|
101
|
-
# @overload list(filter: nil, page: nil, region: nil, request_options: {})
|
|
101
|
+
# @overload list(filter: nil, page: nil, page_number: nil, page_size: nil, region: nil, request_options: {})
|
|
102
102
|
#
|
|
103
103
|
# @param filter [Telnyx::Models::ConferenceListParams::Filter] Consolidated filter parameter (deepObject style). Originally: filter[application
|
|
104
104
|
#
|
|
105
105
|
# @param page [Telnyx::Models::ConferenceListParams::Page] Consolidated page parameter (deepObject style). Originally: page[after], page[be
|
|
106
106
|
#
|
|
107
|
+
# @param page_number [Integer]
|
|
108
|
+
#
|
|
109
|
+
# @param page_size [Integer]
|
|
110
|
+
#
|
|
107
111
|
# @param region [Symbol, Telnyx::Models::ConferenceListParams::Region] Region where the conference data is located
|
|
108
112
|
#
|
|
109
113
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
110
114
|
#
|
|
111
|
-
# @return [Telnyx::Internal::
|
|
115
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Conference>]
|
|
112
116
|
#
|
|
113
117
|
# @see Telnyx::Models::ConferenceListParams
|
|
114
118
|
def list(params = {})
|
|
@@ -116,8 +120,8 @@ module Telnyx
|
|
|
116
120
|
@client.request(
|
|
117
121
|
method: :get,
|
|
118
122
|
path: "conferences",
|
|
119
|
-
query: parsed,
|
|
120
|
-
page: Telnyx::Internal::
|
|
123
|
+
query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
124
|
+
page: Telnyx::Internal::DefaultFlatPagination,
|
|
121
125
|
model: Telnyx::Conference,
|
|
122
126
|
options: options
|
|
123
127
|
)
|
|
@@ -128,7 +132,7 @@ module Telnyx
|
|
|
128
132
|
#
|
|
129
133
|
# Lists conference participants
|
|
130
134
|
#
|
|
131
|
-
# @overload list_participants(conference_id, filter: nil, page: nil, region: nil, request_options: {})
|
|
135
|
+
# @overload list_participants(conference_id, filter: nil, page: nil, page_number: nil, page_size: nil, region: nil, request_options: {})
|
|
132
136
|
#
|
|
133
137
|
# @param conference_id [String] Uniquely identifies the conference by id
|
|
134
138
|
#
|
|
@@ -136,11 +140,15 @@ module Telnyx
|
|
|
136
140
|
#
|
|
137
141
|
# @param page [Telnyx::Models::ConferenceListParticipantsParams::Page] Consolidated page parameter (deepObject style). Originally: page[after], page[be
|
|
138
142
|
#
|
|
143
|
+
# @param page_number [Integer]
|
|
144
|
+
#
|
|
145
|
+
# @param page_size [Integer]
|
|
146
|
+
#
|
|
139
147
|
# @param region [Symbol, Telnyx::Models::ConferenceListParticipantsParams::Region] Region where the conference data is located
|
|
140
148
|
#
|
|
141
149
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
142
150
|
#
|
|
143
|
-
# @return [Telnyx::Internal::
|
|
151
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::ConferenceListParticipantsResponse>]
|
|
144
152
|
#
|
|
145
153
|
# @see Telnyx::Models::ConferenceListParticipantsParams
|
|
146
154
|
def list_participants(conference_id, params = {})
|
|
@@ -148,8 +156,8 @@ module Telnyx
|
|
|
148
156
|
@client.request(
|
|
149
157
|
method: :get,
|
|
150
158
|
path: ["conferences/%1$s/participants", conference_id],
|
|
151
|
-
query: parsed,
|
|
152
|
-
page: Telnyx::Internal::
|
|
159
|
+
query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
160
|
+
page: Telnyx::Internal::DefaultFlatPagination,
|
|
153
161
|
model: Telnyx::Models::ConferenceListParticipantsResponse,
|
|
154
162
|
options: options
|
|
155
163
|
)
|
|
@@ -62,15 +62,19 @@ module Telnyx
|
|
|
62
62
|
# SIP connections with webhook_url or xml_request_url, call control or texml.
|
|
63
63
|
# Returned results are cursor paginated.
|
|
64
64
|
#
|
|
65
|
-
# @overload list_active_calls(connection_id, page: nil, request_options: {})
|
|
65
|
+
# @overload list_active_calls(connection_id, page: nil, page_number: nil, page_size: nil, request_options: {})
|
|
66
66
|
#
|
|
67
67
|
# @param connection_id [String] Telnyx connection id
|
|
68
68
|
#
|
|
69
69
|
# @param page [Telnyx::Models::ConnectionListActiveCallsParams::Page] Consolidated page parameter (deepObject style). Originally: page[after], page[be
|
|
70
70
|
#
|
|
71
|
+
# @param page_number [Integer]
|
|
72
|
+
#
|
|
73
|
+
# @param page_size [Integer]
|
|
74
|
+
#
|
|
71
75
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
76
|
#
|
|
73
|
-
# @return [Telnyx::Internal::
|
|
77
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::ConnectionListActiveCallsResponse>]
|
|
74
78
|
#
|
|
75
79
|
# @see Telnyx::Models::ConnectionListActiveCallsParams
|
|
76
80
|
def list_active_calls(connection_id, params = {})
|
|
@@ -78,8 +82,8 @@ module Telnyx
|
|
|
78
82
|
@client.request(
|
|
79
83
|
method: :get,
|
|
80
84
|
path: ["connections/%1$s/active_calls", connection_id],
|
|
81
|
-
query: parsed,
|
|
82
|
-
page: Telnyx::Internal::
|
|
85
|
+
query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
86
|
+
page: Telnyx::Internal::DefaultFlatPagination,
|
|
83
87
|
model: Telnyx::Models::ConnectionListActiveCallsResponse,
|
|
84
88
|
options: options
|
|
85
89
|
)
|
|
@@ -41,7 +41,7 @@ module Telnyx
|
|
|
41
41
|
#
|
|
42
42
|
# @param noise_suppression [Symbol, Telnyx::Models::CredentialConnectionCreateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
43
43
|
#
|
|
44
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
44
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
45
45
|
#
|
|
46
46
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
47
47
|
#
|
|
@@ -130,7 +130,7 @@ module Telnyx
|
|
|
130
130
|
#
|
|
131
131
|
# @param noise_suppression [Symbol, Telnyx::Models::CredentialConnectionUpdateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
132
132
|
#
|
|
133
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
133
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
134
134
|
#
|
|
135
135
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
136
136
|
#
|
|
@@ -21,7 +21,7 @@ module Telnyx
|
|
|
21
21
|
# - `fax.delivered`
|
|
22
22
|
# - `fax.failed`
|
|
23
23
|
#
|
|
24
|
-
# @overload create(connection_id:, from:, to:, client_state: nil, from_display_name: nil, media_name: nil, media_url: nil, monochrome: nil, preview_format: nil, quality: nil, store_media: nil, store_preview: nil, t38_enabled: nil, webhook_url: nil, request_options: {})
|
|
24
|
+
# @overload create(connection_id:, from:, to:, black_threshold: nil, client_state: nil, from_display_name: nil, media_name: nil, media_url: nil, monochrome: nil, preview_format: nil, quality: nil, store_media: nil, store_preview: nil, t38_enabled: nil, webhook_url: nil, request_options: {})
|
|
25
25
|
#
|
|
26
26
|
# @param connection_id [String] The connection ID to send the fax with.
|
|
27
27
|
#
|
|
@@ -29,6 +29,8 @@ module Telnyx
|
|
|
29
29
|
#
|
|
30
30
|
# @param to [String] The phone number, in E.164 format, the fax will be sent to or SIP URI
|
|
31
31
|
#
|
|
32
|
+
# @param black_threshold [Integer] The black threshold percentage for monochrome faxes. Only applicable if `monochr
|
|
33
|
+
#
|
|
32
34
|
# @param client_state [String] Use this field to add state to every subsequent webhook. It must be a valid Base
|
|
33
35
|
#
|
|
34
36
|
# @param from_display_name [String] The `from_display_name` string to be used as the caller id name (SIP From Displa
|
|
@@ -36,7 +36,7 @@ module Telnyx
|
|
|
36
36
|
#
|
|
37
37
|
# @param noise_suppression [Symbol, Telnyx::Models::FqdnConnectionCreateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
38
38
|
#
|
|
39
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
39
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
40
40
|
#
|
|
41
41
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
42
42
|
#
|
|
@@ -125,7 +125,7 @@ module Telnyx
|
|
|
125
125
|
#
|
|
126
126
|
# @param noise_suppression [Symbol, Telnyx::Models::FqdnConnectionUpdateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
127
127
|
#
|
|
128
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
128
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
129
129
|
#
|
|
130
130
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer that the sender and receiver negotiate T38 direc
|
|
131
131
|
#
|
|
@@ -34,7 +34,7 @@ module Telnyx
|
|
|
34
34
|
#
|
|
35
35
|
# @param noise_suppression [Symbol, Telnyx::Models::IPConnectionCreateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
36
36
|
#
|
|
37
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
37
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
38
38
|
#
|
|
39
39
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
40
40
|
#
|
|
@@ -123,7 +123,7 @@ module Telnyx
|
|
|
123
123
|
#
|
|
124
124
|
# @param noise_suppression [Symbol, Telnyx::Models::IPConnectionUpdateParams::NoiseSuppression] Controls when noise suppression is applied to calls. When set to 'inbound', nois
|
|
125
125
|
#
|
|
126
|
-
# @param noise_suppression_details [Telnyx::Models::
|
|
126
|
+
# @param noise_suppression_details [Telnyx::Models::ConnectionNoiseSuppressionDetails] Configuration options for noise suppression. These settings are stored regardles
|
|
127
127
|
#
|
|
128
128
|
# @param onnet_t38_passthrough_enabled [Boolean] Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly
|
|
129
129
|
#
|
|
@@ -9,7 +9,7 @@ module Telnyx
|
|
|
9
9
|
# Note: This API endpoint can only retrieve messages that are no older than 10
|
|
10
10
|
# days since their creation. If you require messages older than this, please
|
|
11
11
|
# generate an
|
|
12
|
-
# [MDR report.](https://developers.telnyx.com/api/
|
|
12
|
+
# [MDR report.](https://developers.telnyx.com/api-reference/mdr-usage-reports/create-mdr-usage-report)
|
|
13
13
|
#
|
|
14
14
|
# @overload retrieve(id, request_options: {})
|
|
15
15
|
#
|
|
@@ -295,37 +295,33 @@ module Telnyx
|
|
|
295
295
|
end
|
|
296
296
|
|
|
297
297
|
# Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
298
|
-
# verification.
|
|
298
|
+
# verification using the Brand ID.
|
|
299
299
|
#
|
|
300
300
|
# This endpoint allows you to check the delivery and verification status of an OTP
|
|
301
|
-
# sent during the Sole Proprietor brand verification process
|
|
302
|
-
#
|
|
303
|
-
#
|
|
304
|
-
# - `referenceId` - The reference ID returned when the OTP was initially triggered
|
|
305
|
-
# - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
|
|
301
|
+
# sent during the Sole Proprietor brand verification process by looking it up with
|
|
302
|
+
# the brand ID.
|
|
306
303
|
#
|
|
307
304
|
# The response includes delivery status, verification dates, and detailed delivery
|
|
308
305
|
# information.
|
|
309
306
|
#
|
|
310
|
-
#
|
|
307
|
+
# **Note:** This is an alternative to the `/10dlc/brand/smsOtp/{referenceId}`
|
|
308
|
+
# endpoint when you have the Brand ID but not the reference ID.
|
|
311
309
|
#
|
|
312
|
-
# @
|
|
310
|
+
# @overload retrieve_sms_otp_status(brand_id, request_options: {})
|
|
313
311
|
#
|
|
314
|
-
# @param brand_id [String]
|
|
312
|
+
# @param brand_id [String] The Brand ID for which to query OTP status
|
|
315
313
|
#
|
|
316
314
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
317
315
|
#
|
|
318
316
|
# @return [Telnyx::Models::Messaging10dlc::BrandRetrieveSMSOtpStatusResponse]
|
|
319
317
|
#
|
|
320
318
|
# @see Telnyx::Models::Messaging10dlc::BrandRetrieveSMSOtpStatusParams
|
|
321
|
-
def retrieve_sms_otp_status(
|
|
322
|
-
parsed, options = Telnyx::Messaging10dlc::BrandRetrieveSMSOtpStatusParams.dump_request(params)
|
|
319
|
+
def retrieve_sms_otp_status(brand_id, params = {})
|
|
323
320
|
@client.request(
|
|
324
321
|
method: :get,
|
|
325
|
-
path: ["10dlc/brand
|
|
326
|
-
query: parsed.transform_keys(brand_id: "brandId"),
|
|
322
|
+
path: ["10dlc/brand/%1$s/smsOtp", brand_id],
|
|
327
323
|
model: Telnyx::Models::Messaging10dlc::BrandRetrieveSMSOtpStatusResponse,
|
|
328
|
-
options:
|
|
324
|
+
options: params[:request_options]
|
|
329
325
|
)
|
|
330
326
|
end
|
|
331
327
|
|
|
@@ -58,17 +58,17 @@ module Telnyx
|
|
|
58
58
|
#
|
|
59
59
|
# @overload update(autoresp_cfg_id, profile_id:, country_code:, keywords:, op:, resp_text: nil, request_options: {})
|
|
60
60
|
#
|
|
61
|
-
# @param autoresp_cfg_id [String] Path param
|
|
61
|
+
# @param autoresp_cfg_id [String] Path param
|
|
62
62
|
#
|
|
63
|
-
# @param profile_id [String] Path param
|
|
63
|
+
# @param profile_id [String] Path param
|
|
64
64
|
#
|
|
65
|
-
# @param country_code [String] Body param
|
|
65
|
+
# @param country_code [String] Body param
|
|
66
66
|
#
|
|
67
|
-
# @param keywords [Array<String>] Body param
|
|
67
|
+
# @param keywords [Array<String>] Body param
|
|
68
68
|
#
|
|
69
|
-
# @param op [Symbol, Telnyx::Models::MessagingProfiles::AutoRespConfigCreate::Op] Body param
|
|
69
|
+
# @param op [Symbol, Telnyx::Models::MessagingProfiles::AutoRespConfigCreate::Op] Body param
|
|
70
70
|
#
|
|
71
|
-
# @param resp_text [String] Body param
|
|
71
|
+
# @param resp_text [String] Body param
|
|
72
72
|
#
|
|
73
73
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
74
74
|
#
|
|
@@ -11,7 +11,7 @@ module Telnyx
|
|
|
11
11
|
#
|
|
12
12
|
# Create a messaging profile
|
|
13
13
|
#
|
|
14
|
-
# @overload create(name:, whitelisted_destinations:, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
|
|
14
|
+
# @overload create(name:, whitelisted_destinations:, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, number_pool_settings: nil, smart_encoding: nil, url_shortener_settings: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param name [String] A user friendly name for the messaging profile.
|
|
17
17
|
#
|
|
@@ -33,6 +33,8 @@ module Telnyx
|
|
|
33
33
|
#
|
|
34
34
|
# @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
|
|
35
35
|
#
|
|
36
|
+
# @param smart_encoding [Boolean] Enables automatic character encoding optimization for SMS messages. When enabled
|
|
37
|
+
#
|
|
36
38
|
# @param url_shortener_settings [Telnyx::Models::URLShortenerSettings, nil] The URL shortener feature allows automatic replacement of URLs that were generat
|
|
37
39
|
#
|
|
38
40
|
# @param webhook_api_version [Symbol, Telnyx::Models::MessagingProfileCreateParams::WebhookAPIVersion] Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 201
|
|
@@ -82,7 +84,7 @@ module Telnyx
|
|
|
82
84
|
#
|
|
83
85
|
# Update a messaging profile
|
|
84
86
|
#
|
|
85
|
-
# @overload update(messaging_profile_id, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
|
|
87
|
+
# @overload update(messaging_profile_id, alpha_sender: nil, daily_spend_limit: nil, daily_spend_limit_enabled: nil, enabled: nil, mms_fall_back_to_sms: nil, mms_transcoding: nil, mobile_only: nil, name: nil, number_pool_settings: nil, smart_encoding: nil, url_shortener_settings: nil, v1_secret: nil, webhook_api_version: nil, webhook_failover_url: nil, webhook_url: nil, whitelisted_destinations: nil, request_options: {})
|
|
86
88
|
#
|
|
87
89
|
# @param messaging_profile_id [String] The id of the messaging profile to retrieve
|
|
88
90
|
#
|
|
@@ -104,6 +106,8 @@ module Telnyx
|
|
|
104
106
|
#
|
|
105
107
|
# @param number_pool_settings [Telnyx::Models::NumberPoolSettings, nil] Number Pool allows you to send messages from a pool of numbers of different type
|
|
106
108
|
#
|
|
109
|
+
# @param smart_encoding [Boolean] Enables automatic character encoding optimization for SMS messages. When enabled
|
|
110
|
+
#
|
|
107
111
|
# @param url_shortener_settings [Telnyx::Models::URLShortenerSettings, nil] The URL shortener feature allows automatic replacement of URLs that were generat
|
|
108
112
|
#
|
|
109
113
|
# @param v1_secret [String] Secret used to authenticate with v1 endpoints.
|
|
@@ -11,7 +11,7 @@ module Telnyx
|
|
|
11
11
|
#
|
|
12
12
|
# Submit a new tollfree verification request
|
|
13
13
|
#
|
|
14
|
-
# @overload create(additional_information:, business_addr1:, business_city:, business_contact_email:, business_contact_first_name:, business_contact_last_name:, business_contact_phone:, business_name:, business_state:, business_zip:, corporate_website:, isv_reseller:, message_volume:, opt_in_workflow:, opt_in_workflow_image_urls:, phone_numbers:, production_message_content:, use_case:, use_case_summary:, age_gated_content: nil, business_addr2: nil, business_registration_country: nil, business_registration_number: nil, business_registration_type: nil, doing_business_as: nil, entity_type: nil, help_message_response: nil, opt_in_confirmation_response: nil, opt_in_keywords: nil, privacy_policy_url: nil, terms_and_condition_url: nil, webhook_url: nil, request_options: {})
|
|
14
|
+
# @overload create(additional_information:, business_addr1:, business_city:, business_contact_email:, business_contact_first_name:, business_contact_last_name:, business_contact_phone:, business_name:, business_state:, business_zip:, corporate_website:, isv_reseller:, message_volume:, opt_in_workflow:, opt_in_workflow_image_urls:, phone_numbers:, production_message_content:, use_case:, use_case_summary:, age_gated_content: nil, business_addr2: nil, business_registration_country: nil, business_registration_number: nil, business_registration_type: nil, campaign_verify_authorization_token: nil, doing_business_as: nil, entity_type: nil, help_message_response: nil, opt_in_confirmation_response: nil, opt_in_keywords: nil, privacy_policy_url: nil, terms_and_condition_url: nil, webhook_url: nil, request_options: {})
|
|
15
15
|
#
|
|
16
16
|
# @param additional_information [String] Any additional information
|
|
17
17
|
#
|
|
@@ -61,6 +61,8 @@ module Telnyx
|
|
|
61
61
|
#
|
|
62
62
|
# @param business_registration_type [String, nil] Type of business registration being provided. Required from January 2026.
|
|
63
63
|
#
|
|
64
|
+
# @param campaign_verify_authorization_token [String, nil] Campaign Verify Authorization Token required for Political use case submissions
|
|
65
|
+
#
|
|
64
66
|
# @param doing_business_as [String, nil] Doing Business As (DBA) name if different from legal name
|
|
65
67
|
#
|
|
66
68
|
# @param entity_type [Symbol, Telnyx::Models::MessagingTollfree::Verification::TollFreeVerificationEntityType, nil] Business entity classification
|
|
@@ -119,7 +121,7 @@ module Telnyx
|
|
|
119
121
|
# Update an existing tollfree verification request. This is particularly useful
|
|
120
122
|
# when there are pending customer actions to be taken.
|
|
121
123
|
#
|
|
122
|
-
# @overload update(id, additional_information:, business_addr1:, business_city:, business_contact_email:, business_contact_first_name:, business_contact_last_name:, business_contact_phone:, business_name:, business_state:, business_zip:, corporate_website:, isv_reseller:, message_volume:, opt_in_workflow:, opt_in_workflow_image_urls:, phone_numbers:, production_message_content:, use_case:, use_case_summary:, age_gated_content: nil, business_addr2: nil, business_registration_country: nil, business_registration_number: nil, business_registration_type: nil, doing_business_as: nil, entity_type: nil, help_message_response: nil, opt_in_confirmation_response: nil, opt_in_keywords: nil, privacy_policy_url: nil, terms_and_condition_url: nil, webhook_url: nil, request_options: {})
|
|
124
|
+
# @overload update(id, additional_information:, business_addr1:, business_city:, business_contact_email:, business_contact_first_name:, business_contact_last_name:, business_contact_phone:, business_name:, business_state:, business_zip:, corporate_website:, isv_reseller:, message_volume:, opt_in_workflow:, opt_in_workflow_image_urls:, phone_numbers:, production_message_content:, use_case:, use_case_summary:, age_gated_content: nil, business_addr2: nil, business_registration_country: nil, business_registration_number: nil, business_registration_type: nil, campaign_verify_authorization_token: nil, doing_business_as: nil, entity_type: nil, help_message_response: nil, opt_in_confirmation_response: nil, opt_in_keywords: nil, privacy_policy_url: nil, terms_and_condition_url: nil, webhook_url: nil, request_options: {})
|
|
123
125
|
#
|
|
124
126
|
# @param id [String]
|
|
125
127
|
#
|
|
@@ -171,6 +173,8 @@ module Telnyx
|
|
|
171
173
|
#
|
|
172
174
|
# @param business_registration_type [String, nil] Type of business registration being provided. Required from January 2026.
|
|
173
175
|
#
|
|
176
|
+
# @param campaign_verify_authorization_token [String, nil] Campaign Verify Authorization Token required for Political use case submissions
|
|
177
|
+
#
|
|
174
178
|
# @param doing_business_as [String, nil] Doing Business As (DBA) name if different from legal name
|
|
175
179
|
#
|
|
176
180
|
# @param entity_type [Symbol, Telnyx::Models::MessagingTollfree::Verification::TollFreeVerificationEntityType, nil] Business entity classification
|
|
@@ -8,7 +8,7 @@ module Telnyx
|
|
|
8
8
|
# integration with Microsoft Teams for the current user. This will create new
|
|
9
9
|
# external connections on the user's account if needed, and/or report the
|
|
10
10
|
# integration results as
|
|
11
|
-
# [log messages](https://developers.telnyx.com/api/external-
|
|
11
|
+
# [log messages](https://developers.telnyx.com/api-reference/external-connections/list-all-log-messages#list-all-log-messages).
|
|
12
12
|
#
|
|
13
13
|
# @overload refresh(request_options: {})
|
|
14
14
|
#
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Organizations
|
|
6
|
+
class Users
|
|
7
|
+
class Actions
|
|
8
|
+
# Deletes a user in your organization.
|
|
9
|
+
#
|
|
10
|
+
# @overload remove(id, request_options: {})
|
|
11
|
+
#
|
|
12
|
+
# @param id [String] Organization User ID
|
|
13
|
+
#
|
|
14
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
15
|
+
#
|
|
16
|
+
# @return [Telnyx::Models::Organizations::Users::ActionRemoveResponse]
|
|
17
|
+
#
|
|
18
|
+
# @see Telnyx::Models::Organizations::Users::ActionRemoveParams
|
|
19
|
+
def remove(id, params = {})
|
|
20
|
+
@client.request(
|
|
21
|
+
method: :post,
|
|
22
|
+
path: ["organizations/users/%1$s/actions/remove", id],
|
|
23
|
+
model: Telnyx::Models::Organizations::Users::ActionRemoveResponse,
|
|
24
|
+
options: params[:request_options]
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# @api private
|
|
29
|
+
#
|
|
30
|
+
# @param client [Telnyx::Client]
|
|
31
|
+
def initialize(client:)
|
|
32
|
+
@client = client
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Organizations
|
|
6
|
+
class Users
|
|
7
|
+
# @return [Telnyx::Resources::Organizations::Users::Actions]
|
|
8
|
+
attr_reader :actions
|
|
9
|
+
|
|
10
|
+
# Some parameter documentations has been truncated, see
|
|
11
|
+
# {Telnyx::Models::Organizations::UserRetrieveParams} for more details.
|
|
12
|
+
#
|
|
13
|
+
# Returns a user in your organization.
|
|
14
|
+
#
|
|
15
|
+
# @overload retrieve(id, include_groups: nil, request_options: {})
|
|
16
|
+
#
|
|
17
|
+
# @param id [String] Organization User ID
|
|
18
|
+
#
|
|
19
|
+
# @param include_groups [Boolean] When set to true, includes the groups array for each user in the response. The g
|
|
20
|
+
#
|
|
21
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
22
|
+
#
|
|
23
|
+
# @return [Telnyx::Models::Organizations::UserRetrieveResponse]
|
|
24
|
+
#
|
|
25
|
+
# @see Telnyx::Models::Organizations::UserRetrieveParams
|
|
26
|
+
def retrieve(id, params = {})
|
|
27
|
+
parsed, options = Telnyx::Organizations::UserRetrieveParams.dump_request(params)
|
|
28
|
+
@client.request(
|
|
29
|
+
method: :get,
|
|
30
|
+
path: ["organizations/users/%1$s", id],
|
|
31
|
+
query: parsed,
|
|
32
|
+
model: Telnyx::Models::Organizations::UserRetrieveResponse,
|
|
33
|
+
options: options
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Some parameter documentations has been truncated, see
|
|
38
|
+
# {Telnyx::Models::Organizations::UserListParams} for more details.
|
|
39
|
+
#
|
|
40
|
+
# Returns a list of the users in your organization.
|
|
41
|
+
#
|
|
42
|
+
# @overload list(filter_email: nil, filter_user_status: nil, include_groups: nil, page_number: nil, page_size: nil, request_options: {})
|
|
43
|
+
#
|
|
44
|
+
# @param filter_email [String] Filter by email address (partial match)
|
|
45
|
+
#
|
|
46
|
+
# @param filter_user_status [Symbol, Telnyx::Models::Organizations::UserListParams::FilterUserStatus] Filter by user status
|
|
47
|
+
#
|
|
48
|
+
# @param include_groups [Boolean] When set to true, includes the groups array for each user in the response. The g
|
|
49
|
+
#
|
|
50
|
+
# @param page_number [Integer] The page number to load
|
|
51
|
+
#
|
|
52
|
+
# @param page_size [Integer] The size of the page
|
|
53
|
+
#
|
|
54
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
55
|
+
#
|
|
56
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Organizations::UserListResponse>]
|
|
57
|
+
#
|
|
58
|
+
# @see Telnyx::Models::Organizations::UserListParams
|
|
59
|
+
def list(params = {})
|
|
60
|
+
parsed, options = Telnyx::Organizations::UserListParams.dump_request(params)
|
|
61
|
+
@client.request(
|
|
62
|
+
method: :get,
|
|
63
|
+
path: "organizations/users",
|
|
64
|
+
query: parsed.transform_keys(
|
|
65
|
+
filter_email: "filter[email]",
|
|
66
|
+
filter_user_status: "filter[user_status]",
|
|
67
|
+
page_number: "page[number]",
|
|
68
|
+
page_size: "page[size]"
|
|
69
|
+
),
|
|
70
|
+
page: Telnyx::Internal::DefaultFlatPagination,
|
|
71
|
+
model: Telnyx::Models::Organizations::UserListResponse,
|
|
72
|
+
options: options
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Some parameter documentations has been truncated, see
|
|
77
|
+
# {Telnyx::Models::Organizations::UserGetGroupsReportParams} for more details.
|
|
78
|
+
#
|
|
79
|
+
# Returns a report of all users in your organization with their group memberships.
|
|
80
|
+
# This endpoint returns all users without pagination and always includes group
|
|
81
|
+
# information. The report can be retrieved in JSON or CSV format by sending
|
|
82
|
+
# specific content-type headers.
|
|
83
|
+
#
|
|
84
|
+
# @overload get_groups_report(accept: nil, request_options: {})
|
|
85
|
+
#
|
|
86
|
+
# @param accept [Symbol, Telnyx::Models::Organizations::UserGetGroupsReportParams::Accept] Specify the response format. Use 'application/json' for JSON format or 'text/csv
|
|
87
|
+
#
|
|
88
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
89
|
+
#
|
|
90
|
+
# @return [Telnyx::Models::Organizations::UserGetGroupsReportResponse]
|
|
91
|
+
#
|
|
92
|
+
# @see Telnyx::Models::Organizations::UserGetGroupsReportParams
|
|
93
|
+
def get_groups_report(params = {})
|
|
94
|
+
parsed, options = Telnyx::Organizations::UserGetGroupsReportParams.dump_request(params)
|
|
95
|
+
@client.request(
|
|
96
|
+
method: :get,
|
|
97
|
+
path: "organizations/users/users_groups_report",
|
|
98
|
+
headers: parsed.transform_keys(accept: "accept"),
|
|
99
|
+
model: Telnyx::Models::Organizations::UserGetGroupsReportResponse,
|
|
100
|
+
options: options
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# @api private
|
|
105
|
+
#
|
|
106
|
+
# @param client [Telnyx::Client]
|
|
107
|
+
def initialize(client:)
|
|
108
|
+
@client = client
|
|
109
|
+
@actions = Telnyx::Resources::Organizations::Users::Actions.new(client: client)
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Organizations
|
|
6
|
+
# @return [Telnyx::Resources::Organizations::Users]
|
|
7
|
+
attr_reader :users
|
|
8
|
+
|
|
9
|
+
# @api private
|
|
10
|
+
#
|
|
11
|
+
# @param client [Telnyx::Client]
|
|
12
|
+
def initialize(client:)
|
|
13
|
+
@client = client
|
|
14
|
+
@users = Telnyx::Resources::Organizations::Users.new(client: client)
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -109,7 +109,7 @@ module Telnyx
|
|
|
109
109
|
#
|
|
110
110
|
# @param tags [Array<String>] Body param: A list of user-assigned tags to help organize phone numbers.
|
|
111
111
|
#
|
|
112
|
-
# @param voice [Telnyx::Models::PhoneNumbers::UpdateVoiceSettings] Body param
|
|
112
|
+
# @param voice [Telnyx::Models::PhoneNumbers::UpdateVoiceSettings] Body param
|
|
113
113
|
#
|
|
114
114
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
115
115
|
#
|
|
@@ -66,15 +66,19 @@ module Telnyx
|
|
|
66
66
|
#
|
|
67
67
|
# Retrieve the list of calls in an existing queue
|
|
68
68
|
#
|
|
69
|
-
# @overload list(queue_name, page: nil, request_options: {})
|
|
69
|
+
# @overload list(queue_name, page: nil, page_number: nil, page_size: nil, request_options: {})
|
|
70
70
|
#
|
|
71
71
|
# @param queue_name [String] Uniquely identifies the queue by name
|
|
72
72
|
#
|
|
73
73
|
# @param page [Telnyx::Models::Queues::CallListParams::Page] Consolidated page parameter (deepObject style). Originally: page[after], page[be
|
|
74
74
|
#
|
|
75
|
+
# @param page_number [Integer]
|
|
76
|
+
#
|
|
77
|
+
# @param page_size [Integer]
|
|
78
|
+
#
|
|
75
79
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
76
80
|
#
|
|
77
|
-
# @return [Telnyx::Internal::
|
|
81
|
+
# @return [Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::Queues::CallListResponse>]
|
|
78
82
|
#
|
|
79
83
|
# @see Telnyx::Models::Queues::CallListParams
|
|
80
84
|
def list(queue_name, params = {})
|
|
@@ -82,8 +86,8 @@ module Telnyx
|
|
|
82
86
|
@client.request(
|
|
83
87
|
method: :get,
|
|
84
88
|
path: ["queues/%1$s/calls", queue_name],
|
|
85
|
-
query: parsed,
|
|
86
|
-
page: Telnyx::Internal::
|
|
89
|
+
query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"),
|
|
90
|
+
page: Telnyx::Internal::DefaultFlatPagination,
|
|
87
91
|
model: Telnyx::Models::Queues::CallListResponse,
|
|
88
92
|
options: options
|
|
89
93
|
)
|