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
|
@@ -38,11 +38,11 @@ module Telnyx
|
|
|
38
38
|
tools:
|
|
39
39
|
T::Array[
|
|
40
40
|
T.any(
|
|
41
|
-
Telnyx::AI::
|
|
41
|
+
Telnyx::AI::AssistantTool::Webhook::OrHash,
|
|
42
42
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
43
43
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
44
44
|
Telnyx::AI::HangupTool::OrHash,
|
|
45
|
-
Telnyx::AI::
|
|
45
|
+
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
46
46
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
47
47
|
Telnyx::AI::AssistantTool::SendDtmf::OrHash,
|
|
48
48
|
Telnyx::AI::AssistantTool::SendMessage::OrHash
|
|
@@ -50,6 +50,7 @@ module Telnyx
|
|
|
50
50
|
],
|
|
51
51
|
transcription: Telnyx::AI::TranscriptionSettings::OrHash,
|
|
52
52
|
voice_settings: Telnyx::AI::VoiceSettings::OrHash,
|
|
53
|
+
widget_settings: Telnyx::AI::WidgetSettings::OrHash,
|
|
53
54
|
request_options: Telnyx::RequestOptions::OrHash
|
|
54
55
|
).returns(Telnyx::AI::InferenceEmbedding)
|
|
55
56
|
end
|
|
@@ -58,7 +59,7 @@ module Telnyx
|
|
|
58
59
|
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
59
60
|
instructions:,
|
|
60
61
|
# ID of the model to use. You can use the
|
|
61
|
-
# [Get models API](https://developers.telnyx.com/api/
|
|
62
|
+
# [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
|
|
62
63
|
# to see all of your available models,
|
|
63
64
|
model:,
|
|
64
65
|
name:,
|
|
@@ -73,12 +74,15 @@ module Telnyx
|
|
|
73
74
|
enabled_features: nil,
|
|
74
75
|
# Text that the assistant will use to start the conversation. This may be
|
|
75
76
|
# templated with
|
|
76
|
-
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
77
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
|
|
78
|
+
# Use an empty string to have the assistant wait for the user to speak first. Use
|
|
79
|
+
# the special value `<assistant-speaks-first-with-model-generated-message>` to
|
|
80
|
+
# have the assistant generate the greeting based on the system instructions.
|
|
77
81
|
greeting: nil,
|
|
78
82
|
insight_settings: nil,
|
|
79
83
|
# This is only needed when using third-party inference providers. The `identifier`
|
|
80
84
|
# for an integration secret
|
|
81
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api
|
|
85
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
82
86
|
# that refers to your LLM provider's API key. Warning: Free plans are unlikely to
|
|
83
87
|
# work with this integration.
|
|
84
88
|
llm_api_key_ref: nil,
|
|
@@ -90,6 +94,8 @@ module Telnyx
|
|
|
90
94
|
tools: nil,
|
|
91
95
|
transcription: nil,
|
|
92
96
|
voice_settings: nil,
|
|
97
|
+
# Configuration settings for the assistant's web widget.
|
|
98
|
+
widget_settings: nil,
|
|
93
99
|
request_options: {}
|
|
94
100
|
)
|
|
95
101
|
end
|
|
@@ -136,11 +142,11 @@ module Telnyx
|
|
|
136
142
|
tools:
|
|
137
143
|
T::Array[
|
|
138
144
|
T.any(
|
|
139
|
-
Telnyx::AI::
|
|
145
|
+
Telnyx::AI::AssistantTool::Webhook::OrHash,
|
|
140
146
|
Telnyx::AI::RetrievalTool::OrHash,
|
|
141
147
|
Telnyx::AI::AssistantTool::Handoff::OrHash,
|
|
142
148
|
Telnyx::AI::HangupTool::OrHash,
|
|
143
|
-
Telnyx::AI::
|
|
149
|
+
Telnyx::AI::AssistantTool::Transfer::OrHash,
|
|
144
150
|
Telnyx::AI::AssistantTool::Refer::OrHash,
|
|
145
151
|
Telnyx::AI::AssistantTool::SendDtmf::OrHash,
|
|
146
152
|
Telnyx::AI::AssistantTool::SendMessage::OrHash
|
|
@@ -148,6 +154,7 @@ module Telnyx
|
|
|
148
154
|
],
|
|
149
155
|
transcription: Telnyx::AI::TranscriptionSettings::OrHash,
|
|
150
156
|
voice_settings: Telnyx::AI::VoiceSettings::OrHash,
|
|
157
|
+
widget_settings: Telnyx::AI::WidgetSettings::OrHash,
|
|
151
158
|
request_options: Telnyx::RequestOptions::OrHash
|
|
152
159
|
).returns(Telnyx::AI::InferenceEmbedding)
|
|
153
160
|
end
|
|
@@ -164,7 +171,10 @@ module Telnyx
|
|
|
164
171
|
enabled_features: nil,
|
|
165
172
|
# Text that the assistant will use to start the conversation. This may be
|
|
166
173
|
# templated with
|
|
167
|
-
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables)
|
|
174
|
+
# [dynamic variables](https://developers.telnyx.com/docs/inference/ai-assistants/dynamic-variables).
|
|
175
|
+
# Use an empty string to have the assistant wait for the user to speak first. Use
|
|
176
|
+
# the special value `<assistant-speaks-first-with-model-generated-message>` to
|
|
177
|
+
# have the assistant generate the greeting based on the system instructions.
|
|
168
178
|
greeting: nil,
|
|
169
179
|
insight_settings: nil,
|
|
170
180
|
# System instructions for the assistant. These may be templated with
|
|
@@ -172,13 +182,13 @@ module Telnyx
|
|
|
172
182
|
instructions: nil,
|
|
173
183
|
# This is only needed when using third-party inference providers. The `identifier`
|
|
174
184
|
# for an integration secret
|
|
175
|
-
# [/v2/integration_secrets](https://developers.telnyx.com/api
|
|
185
|
+
# [/v2/integration_secrets](https://developers.telnyx.com/api-reference/integration-secrets/create-a-secret)
|
|
176
186
|
# that refers to your LLM provider's API key. Warning: Free plans are unlikely to
|
|
177
187
|
# work with this integration.
|
|
178
188
|
llm_api_key_ref: nil,
|
|
179
189
|
messaging_settings: nil,
|
|
180
190
|
# ID of the model to use. You can use the
|
|
181
|
-
# [Get models API](https://developers.telnyx.com/api/
|
|
191
|
+
# [Get models API](https://developers.telnyx.com/api-reference/chat/get-available-models)
|
|
182
192
|
# to see all of your available models,
|
|
183
193
|
model: nil,
|
|
184
194
|
name: nil,
|
|
@@ -192,6 +202,8 @@ module Telnyx
|
|
|
192
202
|
tools: nil,
|
|
193
203
|
transcription: nil,
|
|
194
204
|
voice_settings: nil,
|
|
205
|
+
# Configuration settings for the assistant's web widget.
|
|
206
|
+
widget_settings: nil,
|
|
195
207
|
request_options: {}
|
|
196
208
|
)
|
|
197
209
|
end
|
|
@@ -218,11 +230,11 @@ module Telnyx
|
|
|
218
230
|
# This endpoint allows a client to send a chat message to a specific AI Assistant.
|
|
219
231
|
# The assistant processes the message and returns a relevant reply based on the
|
|
220
232
|
# current conversation context. Refer to the Conversation API to
|
|
221
|
-
# [create a conversation](https://developers.telnyx.com/api/
|
|
222
|
-
# [filter existing conversations](https://developers.telnyx.com/api
|
|
223
|
-
# [fetch messages for a conversation](https://developers.telnyx.com/api/
|
|
233
|
+
# [create a conversation](https://developers.telnyx.com/api-reference/conversations/create-a-conversation),
|
|
234
|
+
# [filter existing conversations](https://developers.telnyx.com/api-reference/conversations/list-conversations),
|
|
235
|
+
# [fetch messages for a conversation](https://developers.telnyx.com/api-reference/conversations/get-conversation-messages),
|
|
224
236
|
# and
|
|
225
|
-
# [manually add messages to a conversation](https://developers.telnyx.com/api/
|
|
237
|
+
# [manually add messages to a conversation](https://developers.telnyx.com/api-reference/conversations/create-message).
|
|
226
238
|
sig do
|
|
227
239
|
params(
|
|
228
240
|
assistant_id: String,
|
|
@@ -271,6 +283,7 @@ module Telnyx
|
|
|
271
283
|
params(
|
|
272
284
|
api_key_ref: String,
|
|
273
285
|
provider: Telnyx::AI::AssistantImportsParams::Provider::OrSymbol,
|
|
286
|
+
import_ids: T::Array[String],
|
|
274
287
|
request_options: Telnyx::RequestOptions::OrHash
|
|
275
288
|
).returns(Telnyx::AI::AssistantsList)
|
|
276
289
|
end
|
|
@@ -281,6 +294,9 @@ module Telnyx
|
|
|
281
294
|
api_key_ref:,
|
|
282
295
|
# The external provider to import assistants from.
|
|
283
296
|
provider:,
|
|
297
|
+
# Optional list of assistant IDs to import from the external provider. If not
|
|
298
|
+
# provided, all assistants will be imported.
|
|
299
|
+
import_ids: nil,
|
|
284
300
|
request_options: {}
|
|
285
301
|
)
|
|
286
302
|
end
|
|
@@ -99,7 +99,7 @@ module Telnyx
|
|
|
99
99
|
# The `function` tool type follows the same schema as the
|
|
100
100
|
# [OpenAI Chat Completions API](https://platform.openai.com/docs/api-reference/chat).
|
|
101
101
|
# The `retrieval` tool type is unique to Telnyx. You may pass a list of
|
|
102
|
-
# [embedded storage buckets](https://developers.telnyx.com/api/
|
|
102
|
+
# [embedded storage buckets](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
|
|
103
103
|
# for retrieval-augmented generation.
|
|
104
104
|
tools: nil,
|
|
105
105
|
# This is used with `logprobs`. An integer between 0 and 20 specifying the number
|
|
@@ -50,7 +50,7 @@ module Telnyx
|
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
# Starts a background task to compute how the data in an
|
|
53
|
-
# [embedded storage bucket](https://developers.telnyx.com/api/
|
|
53
|
+
# [embedded storage bucket](https://developers.telnyx.com/api-reference/embeddings/embed-documents)
|
|
54
54
|
# is clustered. This helps identify common themes and patterns in the data.
|
|
55
55
|
sig do
|
|
56
56
|
params(
|
|
@@ -126,7 +126,7 @@ module Telnyx
|
|
|
126
126
|
# URL and its linked pages into a Telnyx Cloud Storage bucket. As soon as each
|
|
127
127
|
# webpage is added to the bucket, its content is immediately processed for
|
|
128
128
|
# embeddings, that can be used for
|
|
129
|
-
# [similarity search](https://developers.telnyx.com/api/
|
|
129
|
+
# [similarity search](https://developers.telnyx.com/api-reference/embeddings/search-for-documents)
|
|
130
130
|
# and [clustering](https://developers.telnyx.com/docs/inference/clusters).
|
|
131
131
|
sig do
|
|
132
132
|
params(
|
|
@@ -20,7 +20,7 @@ module Telnyx
|
|
|
20
20
|
# Body param: Idempotency key for the request. Can be any UUID, but should always
|
|
21
21
|
# be unique for each request.
|
|
22
22
|
idempotency_key: nil,
|
|
23
|
-
# Body param
|
|
23
|
+
# Body param
|
|
24
24
|
items: nil,
|
|
25
25
|
# Header param: Authenticates the request with your Telnyx API V2 KEY
|
|
26
26
|
authorization_bearer: nil,
|
|
@@ -154,10 +154,14 @@ module Telnyx
|
|
|
154
154
|
params(
|
|
155
155
|
filter: Telnyx::CallControlApplicationListParams::Filter::OrHash,
|
|
156
156
|
page: Telnyx::CallControlApplicationListParams::Page::OrHash,
|
|
157
|
+
page_number: Integer,
|
|
158
|
+
page_size: Integer,
|
|
157
159
|
sort: Telnyx::CallControlApplicationListParams::Sort::OrSymbol,
|
|
158
160
|
request_options: Telnyx::RequestOptions::OrHash
|
|
159
161
|
).returns(
|
|
160
|
-
Telnyx::Internal::
|
|
162
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
163
|
+
Telnyx::CallControlApplication
|
|
164
|
+
]
|
|
161
165
|
)
|
|
162
166
|
end
|
|
163
167
|
def list(
|
|
@@ -170,6 +174,8 @@ module Telnyx
|
|
|
170
174
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
171
175
|
# page[before], page[limit], page[size], page[number]
|
|
172
176
|
page: nil,
|
|
177
|
+
page_number: nil,
|
|
178
|
+
page_size: nil,
|
|
173
179
|
# Specifies the sort order for results. By default sorting direction is ascending.
|
|
174
180
|
# To have the results sorted in descending order add the <code> -</code>
|
|
175
181
|
# prefix.<br/><br/> That is: <ul>
|
|
@@ -12,9 +12,11 @@ module Telnyx
|
|
|
12
12
|
params(
|
|
13
13
|
filter: Telnyx::CallEventListParams::Filter::OrHash,
|
|
14
14
|
page: Telnyx::CallEventListParams::Page::OrHash,
|
|
15
|
+
page_number: Integer,
|
|
16
|
+
page_size: Integer,
|
|
15
17
|
request_options: Telnyx::RequestOptions::OrHash
|
|
16
18
|
).returns(
|
|
17
|
-
Telnyx::Internal::
|
|
19
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
18
20
|
Telnyx::Models::CallEventListResponse
|
|
19
21
|
]
|
|
20
22
|
)
|
|
@@ -29,6 +31,8 @@ module Telnyx
|
|
|
29
31
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
30
32
|
# page[before], page[limit], page[size], page[number]
|
|
31
33
|
page: nil,
|
|
34
|
+
page_number: nil,
|
|
35
|
+
page_size: nil,
|
|
32
36
|
request_options: {}
|
|
33
37
|
)
|
|
34
38
|
end
|
|
@@ -4,6 +4,40 @@ module Telnyx
|
|
|
4
4
|
module Resources
|
|
5
5
|
class Calls
|
|
6
6
|
class Actions
|
|
7
|
+
# Add messages to the conversation started by an AI assistant on the call.
|
|
8
|
+
sig do
|
|
9
|
+
params(
|
|
10
|
+
call_control_id: String,
|
|
11
|
+
client_state: String,
|
|
12
|
+
command_id: String,
|
|
13
|
+
messages:
|
|
14
|
+
T::Array[
|
|
15
|
+
T.any(
|
|
16
|
+
Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::User::OrHash,
|
|
17
|
+
Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Assistant::OrHash,
|
|
18
|
+
Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Tool::OrHash,
|
|
19
|
+
Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::System::OrHash,
|
|
20
|
+
Telnyx::Calls::ActionAddAIAssistantMessagesParams::Message::Developer::OrHash
|
|
21
|
+
)
|
|
22
|
+
],
|
|
23
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
24
|
+
).returns(Telnyx::Models::Calls::ActionAddAIAssistantMessagesResponse)
|
|
25
|
+
end
|
|
26
|
+
def add_ai_assistant_messages(
|
|
27
|
+
# Unique identifier and token for controlling the call
|
|
28
|
+
call_control_id,
|
|
29
|
+
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
30
|
+
# Base-64 encoded string.
|
|
31
|
+
client_state: nil,
|
|
32
|
+
# Use this field to avoid duplicate commands. Telnyx will ignore any command with
|
|
33
|
+
# the same `command_id` for the same `call_control_id`.
|
|
34
|
+
command_id: nil,
|
|
35
|
+
# The messages to add to the conversation.
|
|
36
|
+
messages: nil,
|
|
37
|
+
request_options: {}
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
7
41
|
# Answer an incoming call. You must issue this command before executing subsequent
|
|
8
42
|
# commands on an incoming call.
|
|
9
43
|
#
|
|
@@ -1138,8 +1172,9 @@ module Telnyx
|
|
|
1138
1172
|
command_id: nil,
|
|
1139
1173
|
# The direction of the audio stream to be noise suppressed.
|
|
1140
1174
|
direction: nil,
|
|
1141
|
-
# The engine to use for noise suppression. For backward compatibility, engines A
|
|
1142
|
-
# and
|
|
1175
|
+
# The engine to use for noise suppression. For backward compatibility, engines A,
|
|
1176
|
+
# B, and C are also supported, but are deprecated: A - Denoiser B - DeepFilterNet
|
|
1177
|
+
# C - Krisp
|
|
1143
1178
|
noise_suppression_engine: nil,
|
|
1144
1179
|
# Configuration parameters for noise suppression engines.
|
|
1145
1180
|
noise_suppression_engine_config: nil,
|
|
@@ -107,9 +107,11 @@ module Telnyx
|
|
|
107
107
|
params(
|
|
108
108
|
filter: Telnyx::ConferenceListParams::Filter::OrHash,
|
|
109
109
|
page: Telnyx::ConferenceListParams::Page::OrHash,
|
|
110
|
+
page_number: Integer,
|
|
111
|
+
page_size: Integer,
|
|
110
112
|
region: Telnyx::ConferenceListParams::Region::OrSymbol,
|
|
111
113
|
request_options: Telnyx::RequestOptions::OrHash
|
|
112
|
-
).returns(Telnyx::Internal::
|
|
114
|
+
).returns(Telnyx::Internal::DefaultFlatPagination[Telnyx::Conference])
|
|
113
115
|
end
|
|
114
116
|
def list(
|
|
115
117
|
# Consolidated filter parameter (deepObject style). Originally:
|
|
@@ -121,6 +123,8 @@ module Telnyx
|
|
|
121
123
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
122
124
|
# page[before], page[limit], page[size], page[number]
|
|
123
125
|
page: nil,
|
|
126
|
+
page_number: nil,
|
|
127
|
+
page_size: nil,
|
|
124
128
|
# Region where the conference data is located
|
|
125
129
|
region: nil,
|
|
126
130
|
request_options: {}
|
|
@@ -133,10 +137,12 @@ module Telnyx
|
|
|
133
137
|
conference_id: String,
|
|
134
138
|
filter: Telnyx::ConferenceListParticipantsParams::Filter::OrHash,
|
|
135
139
|
page: Telnyx::ConferenceListParticipantsParams::Page::OrHash,
|
|
140
|
+
page_number: Integer,
|
|
141
|
+
page_size: Integer,
|
|
136
142
|
region: Telnyx::ConferenceListParticipantsParams::Region::OrSymbol,
|
|
137
143
|
request_options: Telnyx::RequestOptions::OrHash
|
|
138
144
|
).returns(
|
|
139
|
-
Telnyx::Internal::
|
|
145
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
140
146
|
Telnyx::Models::ConferenceListParticipantsResponse
|
|
141
147
|
]
|
|
142
148
|
)
|
|
@@ -150,6 +156,8 @@ module Telnyx
|
|
|
150
156
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
151
157
|
# page[before], page[limit], page[size], page[number]
|
|
152
158
|
page: nil,
|
|
159
|
+
page_number: nil,
|
|
160
|
+
page_size: nil,
|
|
153
161
|
# Region where the conference data is located
|
|
154
162
|
region: nil,
|
|
155
163
|
request_options: {}
|
|
@@ -65,9 +65,11 @@ module Telnyx
|
|
|
65
65
|
params(
|
|
66
66
|
connection_id: String,
|
|
67
67
|
page: Telnyx::ConnectionListActiveCallsParams::Page::OrHash,
|
|
68
|
+
page_number: Integer,
|
|
69
|
+
page_size: Integer,
|
|
68
70
|
request_options: Telnyx::RequestOptions::OrHash
|
|
69
71
|
).returns(
|
|
70
|
-
Telnyx::Internal::
|
|
72
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
71
73
|
Telnyx::Models::ConnectionListActiveCallsResponse
|
|
72
74
|
]
|
|
73
75
|
)
|
|
@@ -78,6 +80,8 @@ module Telnyx
|
|
|
78
80
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
79
81
|
# page[before], page[limit], page[size], page[number]
|
|
80
82
|
page: nil,
|
|
83
|
+
page_number: nil,
|
|
84
|
+
page_size: nil,
|
|
81
85
|
request_options: {}
|
|
82
86
|
)
|
|
83
87
|
end
|
|
@@ -25,7 +25,7 @@ module Telnyx
|
|
|
25
25
|
noise_suppression:
|
|
26
26
|
Telnyx::CredentialConnectionCreateParams::NoiseSuppression::OrSymbol,
|
|
27
27
|
noise_suppression_details:
|
|
28
|
-
Telnyx::
|
|
28
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
29
29
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
30
30
|
outbound: Telnyx::CredentialOutbound::OrHash,
|
|
31
31
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -147,7 +147,7 @@ module Telnyx
|
|
|
147
147
|
noise_suppression:
|
|
148
148
|
Telnyx::CredentialConnectionUpdateParams::NoiseSuppression::OrSymbol,
|
|
149
149
|
noise_suppression_details:
|
|
150
|
-
Telnyx::
|
|
150
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
151
151
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
152
152
|
outbound: Telnyx::CredentialOutbound::OrHash,
|
|
153
153
|
password: String,
|
|
@@ -22,6 +22,7 @@ module Telnyx
|
|
|
22
22
|
connection_id: String,
|
|
23
23
|
from: String,
|
|
24
24
|
to: String,
|
|
25
|
+
black_threshold: Integer,
|
|
25
26
|
client_state: String,
|
|
26
27
|
from_display_name: String,
|
|
27
28
|
media_name: String,
|
|
@@ -43,6 +44,9 @@ module Telnyx
|
|
|
43
44
|
from:,
|
|
44
45
|
# The phone number, in E.164 format, the fax will be sent to or SIP URI
|
|
45
46
|
to:,
|
|
47
|
+
# The black threshold percentage for monochrome faxes. Only applicable if
|
|
48
|
+
# `monochrome` is set to `true`.
|
|
49
|
+
black_threshold: nil,
|
|
46
50
|
# Use this field to add state to every subsequent webhook. It must be a valid
|
|
47
51
|
# Base-64 encoded string.
|
|
48
52
|
client_state: nil,
|
|
@@ -21,7 +21,7 @@ module Telnyx
|
|
|
21
21
|
noise_suppression:
|
|
22
22
|
Telnyx::FqdnConnectionCreateParams::NoiseSuppression::OrSymbol,
|
|
23
23
|
noise_suppression_details:
|
|
24
|
-
Telnyx::
|
|
24
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
25
25
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
26
26
|
outbound: Telnyx::OutboundFqdn::OrHash,
|
|
27
27
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -133,7 +133,7 @@ module Telnyx
|
|
|
133
133
|
noise_suppression:
|
|
134
134
|
Telnyx::FqdnConnectionUpdateParams::NoiseSuppression::OrSymbol,
|
|
135
135
|
noise_suppression_details:
|
|
136
|
-
Telnyx::
|
|
136
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
137
137
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
138
138
|
outbound: Telnyx::OutboundFqdn::OrHash,
|
|
139
139
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -20,7 +20,7 @@ module Telnyx
|
|
|
20
20
|
noise_suppression:
|
|
21
21
|
Telnyx::IPConnectionCreateParams::NoiseSuppression::OrSymbol,
|
|
22
22
|
noise_suppression_details:
|
|
23
|
-
Telnyx::
|
|
23
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
24
24
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
25
25
|
outbound: Telnyx::OutboundIP::OrHash,
|
|
26
26
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -130,7 +130,7 @@ module Telnyx
|
|
|
130
130
|
noise_suppression:
|
|
131
131
|
Telnyx::IPConnectionUpdateParams::NoiseSuppression::OrSymbol,
|
|
132
132
|
noise_suppression_details:
|
|
133
|
-
Telnyx::
|
|
133
|
+
Telnyx::ConnectionNoiseSuppressionDetails::OrHash,
|
|
134
134
|
onnet_t38_passthrough_enabled: T::Boolean,
|
|
135
135
|
outbound: Telnyx::OutboundIP::OrHash,
|
|
136
136
|
rtcp_settings: Telnyx::ConnectionRtcpSettings::OrHash,
|
|
@@ -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
|
sig do
|
|
14
14
|
params(
|
|
15
15
|
id: String,
|
|
@@ -284,20 +284,19 @@ module Telnyx
|
|
|
284
284
|
end
|
|
285
285
|
|
|
286
286
|
# Query the status of an SMS OTP (One-Time Password) for Sole Proprietor brand
|
|
287
|
-
# verification.
|
|
287
|
+
# verification using the Brand ID.
|
|
288
288
|
#
|
|
289
289
|
# This endpoint allows you to check the delivery and verification status of an OTP
|
|
290
|
-
# sent during the Sole Proprietor brand verification process
|
|
291
|
-
#
|
|
292
|
-
#
|
|
293
|
-
# - `referenceId` - The reference ID returned when the OTP was initially triggered
|
|
294
|
-
# - `brandId` - Query parameter for portal users to look up OTP status by Brand ID
|
|
290
|
+
# sent during the Sole Proprietor brand verification process by looking it up with
|
|
291
|
+
# the brand ID.
|
|
295
292
|
#
|
|
296
293
|
# The response includes delivery status, verification dates, and detailed delivery
|
|
297
294
|
# information.
|
|
295
|
+
#
|
|
296
|
+
# **Note:** This is an alternative to the `/10dlc/brand/smsOtp/{referenceId}`
|
|
297
|
+
# endpoint when you have the Brand ID but not the reference ID.
|
|
298
298
|
sig do
|
|
299
299
|
params(
|
|
300
|
-
reference_id: String,
|
|
301
300
|
brand_id: String,
|
|
302
301
|
request_options: Telnyx::RequestOptions::OrHash
|
|
303
302
|
).returns(
|
|
@@ -305,10 +304,8 @@ module Telnyx
|
|
|
305
304
|
)
|
|
306
305
|
end
|
|
307
306
|
def retrieve_sms_otp_status(
|
|
308
|
-
# The
|
|
309
|
-
|
|
310
|
-
# Filter by Brand ID for easier lookup in portal applications
|
|
311
|
-
brand_id: nil,
|
|
307
|
+
# The Brand ID for which to query OTP status
|
|
308
|
+
brand_id,
|
|
312
309
|
request_options: {}
|
|
313
310
|
)
|
|
314
311
|
end
|
|
@@ -49,17 +49,17 @@ module Telnyx
|
|
|
49
49
|
).returns(Telnyx::MessagingProfiles::AutoRespConfigResponse)
|
|
50
50
|
end
|
|
51
51
|
def update(
|
|
52
|
-
# Path param
|
|
52
|
+
# Path param
|
|
53
53
|
autoresp_cfg_id,
|
|
54
|
-
# Path param
|
|
54
|
+
# Path param
|
|
55
55
|
profile_id:,
|
|
56
|
-
# Body param
|
|
56
|
+
# Body param
|
|
57
57
|
country_code:,
|
|
58
|
-
# Body param
|
|
58
|
+
# Body param
|
|
59
59
|
keywords:,
|
|
60
|
-
# Body param
|
|
60
|
+
# Body param
|
|
61
61
|
op:,
|
|
62
|
-
# Body param
|
|
62
|
+
# Body param
|
|
63
63
|
resp_text: nil,
|
|
64
64
|
request_options: {}
|
|
65
65
|
)
|
|
@@ -19,6 +19,7 @@ module Telnyx
|
|
|
19
19
|
mms_transcoding: T::Boolean,
|
|
20
20
|
mobile_only: T::Boolean,
|
|
21
21
|
number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
|
|
22
|
+
smart_encoding: T::Boolean,
|
|
22
23
|
url_shortener_settings:
|
|
23
24
|
T.nilable(Telnyx::URLShortenerSettings::OrHash),
|
|
24
25
|
webhook_api_version:
|
|
@@ -57,6 +58,10 @@ module Telnyx
|
|
|
57
58
|
#
|
|
58
59
|
# To disable this feature, set the object field to `null`.
|
|
59
60
|
number_pool_settings: nil,
|
|
61
|
+
# Enables automatic character encoding optimization for SMS messages. When
|
|
62
|
+
# enabled, the system automatically selects the most efficient encoding (GSM-7 or
|
|
63
|
+
# UCS-2) based on message content to maximize character limits and minimize costs.
|
|
64
|
+
smart_encoding: nil,
|
|
60
65
|
# The URL shortener feature allows automatic replacement of URLs that were
|
|
61
66
|
# generated using a public URL shortener service. Some examples include bit.do,
|
|
62
67
|
# bit.ly, goo.gl, ht.ly, is.gd, ow.ly, rebrand.ly, t.co, tiny.cc, and tinyurl.com.
|
|
@@ -104,6 +109,7 @@ module Telnyx
|
|
|
104
109
|
mobile_only: T::Boolean,
|
|
105
110
|
name: String,
|
|
106
111
|
number_pool_settings: T.nilable(Telnyx::NumberPoolSettings::OrHash),
|
|
112
|
+
smart_encoding: T::Boolean,
|
|
107
113
|
url_shortener_settings:
|
|
108
114
|
T.nilable(Telnyx::URLShortenerSettings::OrHash),
|
|
109
115
|
v1_secret: String,
|
|
@@ -142,6 +148,10 @@ module Telnyx
|
|
|
142
148
|
#
|
|
143
149
|
# To disable this feature, set the object field to `null`.
|
|
144
150
|
number_pool_settings: nil,
|
|
151
|
+
# Enables automatic character encoding optimization for SMS messages. When
|
|
152
|
+
# enabled, the system automatically selects the most efficient encoding (GSM-7 or
|
|
153
|
+
# UCS-2) based on message content to maximize character limits and minimize costs.
|
|
154
|
+
smart_encoding: nil,
|
|
145
155
|
# The URL shortener feature allows automatic replacement of URLs that were
|
|
146
156
|
# generated using a public URL shortener service. Some examples include bit.do,
|
|
147
157
|
# bit.ly, goo.gl, ht.ly, is.gd, ow.ly, rebrand.ly, t.co, tiny.cc, and tinyurl.com.
|
|
@@ -38,6 +38,7 @@ module Telnyx
|
|
|
38
38
|
business_registration_country: T.nilable(String),
|
|
39
39
|
business_registration_number: T.nilable(String),
|
|
40
40
|
business_registration_type: T.nilable(String),
|
|
41
|
+
campaign_verify_authorization_token: T.nilable(String),
|
|
41
42
|
doing_business_as: T.nilable(String),
|
|
42
43
|
entity_type:
|
|
43
44
|
T.nilable(
|
|
@@ -111,6 +112,10 @@ module Telnyx
|
|
|
111
112
|
business_registration_number: nil,
|
|
112
113
|
# Type of business registration being provided. Required from January 2026.
|
|
113
114
|
business_registration_type: nil,
|
|
115
|
+
# Campaign Verify Authorization Token required for Political use case submissions
|
|
116
|
+
# starting February 17, 2026. This token is validated by Zipwhip and must be
|
|
117
|
+
# provided for all Political use case verifications after the deadline.
|
|
118
|
+
campaign_verify_authorization_token: nil,
|
|
114
119
|
# Doing Business As (DBA) name if different from legal name
|
|
115
120
|
doing_business_as: nil,
|
|
116
121
|
# Business entity classification
|
|
@@ -180,6 +185,7 @@ module Telnyx
|
|
|
180
185
|
business_registration_country: T.nilable(String),
|
|
181
186
|
business_registration_number: T.nilable(String),
|
|
182
187
|
business_registration_type: T.nilable(String),
|
|
188
|
+
campaign_verify_authorization_token: T.nilable(String),
|
|
183
189
|
doing_business_as: T.nilable(String),
|
|
184
190
|
entity_type:
|
|
185
191
|
T.nilable(
|
|
@@ -254,6 +260,10 @@ module Telnyx
|
|
|
254
260
|
business_registration_number: nil,
|
|
255
261
|
# Type of business registration being provided. Required from January 2026.
|
|
256
262
|
business_registration_type: nil,
|
|
263
|
+
# Campaign Verify Authorization Token required for Political use case submissions
|
|
264
|
+
# starting February 17, 2026. This token is validated by Zipwhip and must be
|
|
265
|
+
# provided for all Political use case verifications after the deadline.
|
|
266
|
+
campaign_verify_authorization_token: nil,
|
|
257
267
|
# Doing Business As (DBA) name if different from legal name
|
|
258
268
|
doing_business_as: nil,
|
|
259
269
|
# 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
|
sig do
|
|
13
13
|
params(request_options: Telnyx::RequestOptions::OrHash).returns(
|
|
14
14
|
Telnyx::Models::OperatorConnect::ActionRefreshResponse
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Organizations
|
|
6
|
+
class Users
|
|
7
|
+
class Actions
|
|
8
|
+
# Deletes a user in your organization.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
id: String,
|
|
12
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
13
|
+
).returns(
|
|
14
|
+
Telnyx::Models::Organizations::Users::ActionRemoveResponse
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
def remove(
|
|
18
|
+
# Organization User ID
|
|
19
|
+
id,
|
|
20
|
+
request_options: {}
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# @api private
|
|
25
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
26
|
+
def self.new(client:)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|