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
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Organizations
|
|
6
|
+
class Users
|
|
7
|
+
sig { returns(Telnyx::Resources::Organizations::Users::Actions) }
|
|
8
|
+
attr_reader :actions
|
|
9
|
+
|
|
10
|
+
# Returns a user in your organization.
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
id: String,
|
|
14
|
+
include_groups: T::Boolean,
|
|
15
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
16
|
+
).returns(Telnyx::Models::Organizations::UserRetrieveResponse)
|
|
17
|
+
end
|
|
18
|
+
def retrieve(
|
|
19
|
+
# Organization User ID
|
|
20
|
+
id,
|
|
21
|
+
# When set to true, includes the groups array for each user in the response. The
|
|
22
|
+
# groups array contains objects with id and name for each group the user belongs
|
|
23
|
+
# to.
|
|
24
|
+
include_groups: nil,
|
|
25
|
+
request_options: {}
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Returns a list of the users in your organization.
|
|
30
|
+
sig do
|
|
31
|
+
params(
|
|
32
|
+
filter_email: String,
|
|
33
|
+
filter_user_status:
|
|
34
|
+
Telnyx::Organizations::UserListParams::FilterUserStatus::OrSymbol,
|
|
35
|
+
include_groups: T::Boolean,
|
|
36
|
+
page_number: Integer,
|
|
37
|
+
page_size: Integer,
|
|
38
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
39
|
+
).returns(
|
|
40
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
41
|
+
Telnyx::Models::Organizations::UserListResponse
|
|
42
|
+
]
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
def list(
|
|
46
|
+
# Filter by email address (partial match)
|
|
47
|
+
filter_email: nil,
|
|
48
|
+
# Filter by user status
|
|
49
|
+
filter_user_status: nil,
|
|
50
|
+
# When set to true, includes the groups array for each user in the response. The
|
|
51
|
+
# groups array contains objects with id and name for each group the user belongs
|
|
52
|
+
# to.
|
|
53
|
+
include_groups: nil,
|
|
54
|
+
# The page number to load
|
|
55
|
+
page_number: nil,
|
|
56
|
+
# The size of the page
|
|
57
|
+
page_size: nil,
|
|
58
|
+
request_options: {}
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Returns a report of all users in your organization with their group memberships.
|
|
63
|
+
# This endpoint returns all users without pagination and always includes group
|
|
64
|
+
# information. The report can be retrieved in JSON or CSV format by sending
|
|
65
|
+
# specific content-type headers.
|
|
66
|
+
sig do
|
|
67
|
+
params(
|
|
68
|
+
accept:
|
|
69
|
+
Telnyx::Organizations::UserGetGroupsReportParams::Accept::OrSymbol,
|
|
70
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
71
|
+
).returns(Telnyx::Models::Organizations::UserGetGroupsReportResponse)
|
|
72
|
+
end
|
|
73
|
+
def get_groups_report(
|
|
74
|
+
# Specify the response format. Use 'application/json' for JSON format or
|
|
75
|
+
# 'text/csv' for CSV format.
|
|
76
|
+
accept: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# @api private
|
|
82
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
83
|
+
def self.new(client:)
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Resources
|
|
5
|
+
class Organizations
|
|
6
|
+
sig { returns(Telnyx::Resources::Organizations::Users) }
|
|
7
|
+
attr_reader :users
|
|
8
|
+
|
|
9
|
+
# @api private
|
|
10
|
+
sig { params(client: Telnyx::Client).returns(T.attached_class) }
|
|
11
|
+
def self.new(client:)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -46,9 +46,11 @@ module Telnyx
|
|
|
46
46
|
params(
|
|
47
47
|
queue_name: String,
|
|
48
48
|
page: Telnyx::Queues::CallListParams::Page::OrHash,
|
|
49
|
+
page_number: Integer,
|
|
50
|
+
page_size: Integer,
|
|
49
51
|
request_options: Telnyx::RequestOptions::OrHash
|
|
50
52
|
).returns(
|
|
51
|
-
Telnyx::Internal::
|
|
53
|
+
Telnyx::Internal::DefaultFlatPagination[
|
|
52
54
|
Telnyx::Models::Queues::CallListResponse
|
|
53
55
|
]
|
|
54
56
|
)
|
|
@@ -59,6 +61,8 @@ module Telnyx
|
|
|
59
61
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
60
62
|
# page[before], page[limit], page[size], page[number]
|
|
61
63
|
page: nil,
|
|
64
|
+
page_number: nil,
|
|
65
|
+
page_size: nil,
|
|
62
66
|
request_options: {}
|
|
63
67
|
)
|
|
64
68
|
end
|
|
@@ -45,7 +45,7 @@ module Telnyx
|
|
|
45
45
|
# This API triggers an asynchronous operation to set a public IP for each of the
|
|
46
46
|
# specified SIM cards.<br/> For each SIM Card a SIM Card Action will be generated.
|
|
47
47
|
# The status of the SIM Card Action can be followed through the
|
|
48
|
-
# [List SIM Card Action](https://developers.telnyx.com/api/
|
|
48
|
+
# [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
49
49
|
# API.
|
|
50
50
|
sig do
|
|
51
51
|
params(
|
|
@@ -60,7 +60,7 @@ module Telnyx
|
|
|
60
60
|
# impossible to consume data.<br/> The API will trigger an asynchronous operation
|
|
61
61
|
# called a SIM Card Action. Transitioning to the disabled state may take a period
|
|
62
62
|
# of time. The status of the SIM Card Action can be followed through the
|
|
63
|
-
# [List SIM Card Action](https://developers.telnyx.com/api/
|
|
63
|
+
# [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
64
64
|
# API.
|
|
65
65
|
sig do
|
|
66
66
|
params(
|
|
@@ -80,7 +80,7 @@ module Telnyx
|
|
|
80
80
|
# card group.<br/> The API will trigger an asynchronous operation called a SIM
|
|
81
81
|
# Card Action. Transitioning to the enabled state may take a period of time. The
|
|
82
82
|
# status of the SIM Card Action can be followed through the
|
|
83
|
-
# [List SIM Card Action](https://developers.telnyx.com/api/
|
|
83
|
+
# [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
84
84
|
# API.
|
|
85
85
|
sig do
|
|
86
86
|
params(
|
|
@@ -98,7 +98,7 @@ module Telnyx
|
|
|
98
98
|
# This API removes an existing public IP from a SIM card. <br/><br/> The API will
|
|
99
99
|
# trigger an asynchronous operation called a SIM Card Action. The status of the
|
|
100
100
|
# SIM Card Action can be followed through the
|
|
101
|
-
# [List SIM Card Action](https://developers.telnyx.com/api/
|
|
101
|
+
# [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
102
102
|
# API.
|
|
103
103
|
sig do
|
|
104
104
|
params(
|
|
@@ -117,7 +117,7 @@ module Telnyx
|
|
|
117
117
|
# public IP to the SIM card. <br/><br/> The API will trigger an asynchronous
|
|
118
118
|
# operation called a SIM Card Action. The status of the SIM Card Action can be
|
|
119
119
|
# followed through the
|
|
120
|
-
# [List SIM Card Action](https://developers.telnyx.com/api/
|
|
120
|
+
# [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
121
121
|
# API. <br/><br/> Setting a Public IP to a SIM Card incurs a charge and will only
|
|
122
122
|
# succeed if the account has sufficient funds.
|
|
123
123
|
sig do
|
|
@@ -143,7 +143,7 @@ module Telnyx
|
|
|
143
143
|
# API will trigger an asynchronous operation called a SIM Card Action.
|
|
144
144
|
# Transitioning to the standby state may take a period of time. The status of the
|
|
145
145
|
# SIM Card Action can be followed through the
|
|
146
|
-
# [List SIM Card Action](https://developers.telnyx.com/api/
|
|
146
|
+
# [List SIM Card Action](https://developers.telnyx.com/api-reference/sim-card-actions/list-sim-card-actions)
|
|
147
147
|
# API.
|
|
148
148
|
sig do
|
|
149
149
|
params(
|
|
@@ -70,7 +70,7 @@ module Telnyx
|
|
|
70
70
|
end
|
|
71
71
|
def list(
|
|
72
72
|
# Consolidated filter parameter for SIM cards (deepObject style). Originally:
|
|
73
|
-
# filter[
|
|
73
|
+
# filter[iccid], filter[msisdn], filter[status], filter[tags]
|
|
74
74
|
filter: nil,
|
|
75
75
|
# A valid SIM card group ID.
|
|
76
76
|
filter_sim_card_group_id: nil,
|
|
@@ -62,6 +62,38 @@ module Telnyx
|
|
|
62
62
|
)
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
+
# Lists queue resources.
|
|
66
|
+
sig do
|
|
67
|
+
params(
|
|
68
|
+
account_sid: String,
|
|
69
|
+
date_created: String,
|
|
70
|
+
date_updated: String,
|
|
71
|
+
page: Integer,
|
|
72
|
+
page_size: Integer,
|
|
73
|
+
page_token: String,
|
|
74
|
+
request_options: Telnyx::RequestOptions::OrHash
|
|
75
|
+
).returns(Telnyx::Models::Texml::Accounts::QueueListResponse)
|
|
76
|
+
end
|
|
77
|
+
def list(
|
|
78
|
+
# The id of the account the resource belongs to.
|
|
79
|
+
account_sid,
|
|
80
|
+
# Filters conferences by the creation date. Expected format is YYYY-MM-DD. Also
|
|
81
|
+
# accepts inequality operators, e.g. DateCreated>=2023-05-22.
|
|
82
|
+
date_created: nil,
|
|
83
|
+
# Filters conferences by the time they were last updated. Expected format is
|
|
84
|
+
# YYYY-MM-DD. Also accepts inequality operators, e.g. DateUpdated>=2023-05-22.
|
|
85
|
+
date_updated: nil,
|
|
86
|
+
# The number of the page to be displayed, zero-indexed, should be used in
|
|
87
|
+
# conjuction with PageToken.
|
|
88
|
+
page: nil,
|
|
89
|
+
# The number of records to be displayed on a page
|
|
90
|
+
page_size: nil,
|
|
91
|
+
# Used to request the next page of results.
|
|
92
|
+
page_token: nil,
|
|
93
|
+
request_options: {}
|
|
94
|
+
)
|
|
95
|
+
end
|
|
96
|
+
|
|
65
97
|
# Delete a queue resource.
|
|
66
98
|
sig do
|
|
67
99
|
params(
|
|
@@ -45,9 +45,9 @@ module Telnyx
|
|
|
45
45
|
# Query param: Return the aggregations for all Managed Accounts under the user
|
|
46
46
|
# making the request.
|
|
47
47
|
managed_accounts: nil,
|
|
48
|
-
# Query param
|
|
48
|
+
# Query param
|
|
49
49
|
page_number: nil,
|
|
50
|
-
# Query param
|
|
50
|
+
# Query param
|
|
51
51
|
page_size: nil,
|
|
52
52
|
# Query param: Specifies the sort order for results
|
|
53
53
|
sort: nil,
|
|
@@ -65,9 +65,6 @@ module Telnyx
|
|
|
65
65
|
Telnyx::InboundMessageWebhookEvent,
|
|
66
66
|
Telnyx::NumberOrderStatusUpdateWebhookEvent,
|
|
67
67
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
68
|
-
Telnyx::StreamingFailedWebhookEvent,
|
|
69
|
-
Telnyx::StreamingStartedWebhookEvent,
|
|
70
|
-
Telnyx::StreamingStoppedWebhookEvent,
|
|
71
68
|
Telnyx::TranscriptionWebhookEvent
|
|
72
69
|
)
|
|
73
70
|
)
|
|
@@ -140,9 +137,6 @@ module Telnyx
|
|
|
140
137
|
Telnyx::InboundMessageWebhookEvent,
|
|
141
138
|
Telnyx::NumberOrderStatusUpdateWebhookEvent,
|
|
142
139
|
Telnyx::ReplacedLinkClickWebhookEvent,
|
|
143
|
-
Telnyx::StreamingFailedWebhookEvent,
|
|
144
|
-
Telnyx::StreamingStartedWebhookEvent,
|
|
145
|
-
Telnyx::StreamingStoppedWebhookEvent,
|
|
146
140
|
Telnyx::TranscriptionWebhookEvent
|
|
147
141
|
)
|
|
148
142
|
)
|
data/sig/telnyx/client.rbs
CHANGED
|
@@ -316,6 +316,8 @@ module Telnyx
|
|
|
316
316
|
|
|
317
317
|
attr_reader speech_to_text: Telnyx::Resources::SpeechToText
|
|
318
318
|
|
|
319
|
+
attr_reader organizations: Telnyx::Resources::Organizations
|
|
320
|
+
|
|
319
321
|
private def auth_headers: -> ::Hash[String, String]
|
|
320
322
|
|
|
321
323
|
private def bearer_auth: -> ::Hash[String, String]
|
|
@@ -48,7 +48,7 @@ module Telnyx
|
|
|
48
48
|
| Telnyx::AI::WebhookTool
|
|
49
49
|
| Telnyx::AI::HangupTool
|
|
50
50
|
| Telnyx::AI::TransferTool
|
|
51
|
-
| Telnyx::AI::
|
|
51
|
+
| Telnyx::AI::Assistant::Tool::Retrieval
|
|
52
52
|
|
|
53
53
|
module Tool
|
|
54
54
|
extend Telnyx::Internal::Type::Union
|
|
@@ -149,6 +149,49 @@ module Telnyx
|
|
|
149
149
|
end
|
|
150
150
|
end
|
|
151
151
|
|
|
152
|
+
type retrieval =
|
|
153
|
+
{
|
|
154
|
+
retrieval: Telnyx::AI::Assistant::Tool::Retrieval::Retrieval,
|
|
155
|
+
type: :retrieval
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
class Retrieval < Telnyx::Internal::Type::BaseModel
|
|
159
|
+
attr_accessor retrieval: Telnyx::AI::Assistant::Tool::Retrieval::Retrieval
|
|
160
|
+
|
|
161
|
+
attr_accessor type: :retrieval
|
|
162
|
+
|
|
163
|
+
def initialize: (
|
|
164
|
+
retrieval: Telnyx::AI::Assistant::Tool::Retrieval::Retrieval,
|
|
165
|
+
?type: :retrieval
|
|
166
|
+
) -> void
|
|
167
|
+
|
|
168
|
+
def to_hash: -> {
|
|
169
|
+
retrieval: Telnyx::AI::Assistant::Tool::Retrieval::Retrieval,
|
|
170
|
+
type: :retrieval
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
type retrieval =
|
|
174
|
+
{ bucket_ids: ::Array[String], max_num_results: Integer }
|
|
175
|
+
|
|
176
|
+
class Retrieval < Telnyx::Internal::Type::BaseModel
|
|
177
|
+
attr_accessor bucket_ids: ::Array[String]
|
|
178
|
+
|
|
179
|
+
attr_reader max_num_results: Integer?
|
|
180
|
+
|
|
181
|
+
def max_num_results=: (Integer) -> Integer
|
|
182
|
+
|
|
183
|
+
def initialize: (
|
|
184
|
+
bucket_ids: ::Array[String],
|
|
185
|
+
?max_num_results: Integer
|
|
186
|
+
) -> void
|
|
187
|
+
|
|
188
|
+
def to_hash: -> {
|
|
189
|
+
bucket_ids: ::Array[String],
|
|
190
|
+
max_num_results: Integer
|
|
191
|
+
}
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
152
195
|
def self?.variants: -> ::Array[Telnyx::Models::AI::Assistant::tool]
|
|
153
196
|
end
|
|
154
197
|
end
|
|
@@ -18,7 +18,8 @@ module Telnyx
|
|
|
18
18
|
telephony_settings: Telnyx::AI::TelephonySettings,
|
|
19
19
|
tools: ::Array[Telnyx::Models::AI::assistant_tool],
|
|
20
20
|
transcription: Telnyx::AI::TranscriptionSettings,
|
|
21
|
-
voice_settings: Telnyx::AI::VoiceSettings
|
|
21
|
+
voice_settings: Telnyx::AI::VoiceSettings,
|
|
22
|
+
widget_settings: Telnyx::AI::WidgetSettings
|
|
22
23
|
}
|
|
23
24
|
& Telnyx::Internal::Type::request_parameters
|
|
24
25
|
|
|
@@ -100,6 +101,12 @@ module Telnyx
|
|
|
100
101
|
Telnyx::AI::VoiceSettings
|
|
101
102
|
) -> Telnyx::AI::VoiceSettings
|
|
102
103
|
|
|
104
|
+
attr_reader widget_settings: Telnyx::AI::WidgetSettings?
|
|
105
|
+
|
|
106
|
+
def widget_settings=: (
|
|
107
|
+
Telnyx::AI::WidgetSettings
|
|
108
|
+
) -> Telnyx::AI::WidgetSettings
|
|
109
|
+
|
|
103
110
|
def initialize: (
|
|
104
111
|
instructions: String,
|
|
105
112
|
model: String,
|
|
@@ -117,6 +124,7 @@ module Telnyx
|
|
|
117
124
|
?tools: ::Array[Telnyx::Models::AI::assistant_tool],
|
|
118
125
|
?transcription: Telnyx::AI::TranscriptionSettings,
|
|
119
126
|
?voice_settings: Telnyx::AI::VoiceSettings,
|
|
127
|
+
?widget_settings: Telnyx::AI::WidgetSettings,
|
|
120
128
|
?request_options: Telnyx::request_opts
|
|
121
129
|
) -> void
|
|
122
130
|
|
|
@@ -137,6 +145,7 @@ module Telnyx
|
|
|
137
145
|
tools: ::Array[Telnyx::Models::AI::assistant_tool],
|
|
138
146
|
transcription: Telnyx::AI::TranscriptionSettings,
|
|
139
147
|
voice_settings: Telnyx::AI::VoiceSettings,
|
|
148
|
+
widget_settings: Telnyx::AI::WidgetSettings,
|
|
140
149
|
request_options: Telnyx::RequestOptions
|
|
141
150
|
}
|
|
142
151
|
end
|
|
@@ -4,7 +4,8 @@ module Telnyx
|
|
|
4
4
|
type assistant_imports_params =
|
|
5
5
|
{
|
|
6
6
|
api_key_ref: String,
|
|
7
|
-
provider: Telnyx::Models::AI::AssistantImportsParams::provider
|
|
7
|
+
provider: Telnyx::Models::AI::AssistantImportsParams::provider,
|
|
8
|
+
import_ids: ::Array[String]
|
|
8
9
|
}
|
|
9
10
|
& Telnyx::Internal::Type::request_parameters
|
|
10
11
|
|
|
@@ -16,15 +17,21 @@ module Telnyx
|
|
|
16
17
|
|
|
17
18
|
attr_accessor provider: Telnyx::Models::AI::AssistantImportsParams::provider
|
|
18
19
|
|
|
20
|
+
attr_reader import_ids: ::Array[String]?
|
|
21
|
+
|
|
22
|
+
def import_ids=: (::Array[String]) -> ::Array[String]
|
|
23
|
+
|
|
19
24
|
def initialize: (
|
|
20
25
|
api_key_ref: String,
|
|
21
26
|
provider: Telnyx::Models::AI::AssistantImportsParams::provider,
|
|
27
|
+
?import_ids: ::Array[String],
|
|
22
28
|
?request_options: Telnyx::request_opts
|
|
23
29
|
) -> void
|
|
24
30
|
|
|
25
31
|
def to_hash: -> {
|
|
26
32
|
api_key_ref: String,
|
|
27
33
|
provider: Telnyx::Models::AI::AssistantImportsParams::provider,
|
|
34
|
+
import_ids: ::Array[String],
|
|
28
35
|
request_options: Telnyx::RequestOptions
|
|
29
36
|
}
|
|
30
37
|
|