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,110 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Telnyx::Resources::Organizations::Users#get_groups_report
|
|
7
|
+
class UserGetGroupsReportResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Array<Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data>, nil]
|
|
11
|
+
optional :data,
|
|
12
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data] }
|
|
13
|
+
|
|
14
|
+
# @!method initialize(data: nil)
|
|
15
|
+
# @param data [Array<Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data>]
|
|
16
|
+
|
|
17
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute id
|
|
19
|
+
# Identifies the specific resource.
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# ISO 8601 formatted date indicating when the resource was created.
|
|
26
|
+
#
|
|
27
|
+
# @return [String]
|
|
28
|
+
required :created_at, String
|
|
29
|
+
|
|
30
|
+
# @!attribute email
|
|
31
|
+
# The email address of the user.
|
|
32
|
+
#
|
|
33
|
+
# @return [String]
|
|
34
|
+
required :email, String
|
|
35
|
+
|
|
36
|
+
# @!attribute groups
|
|
37
|
+
# The groups the user belongs to.
|
|
38
|
+
#
|
|
39
|
+
# @return [Array<Telnyx::Models::Organizations::UserGroupReference>]
|
|
40
|
+
required :groups, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Organizations::UserGroupReference] }
|
|
41
|
+
|
|
42
|
+
# @!attribute record_type
|
|
43
|
+
# Identifies the type of the resource. Can be 'organization_owner' or
|
|
44
|
+
# 'organization_sub_user'.
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
required :record_type, String
|
|
48
|
+
|
|
49
|
+
# @!attribute user_status
|
|
50
|
+
# The status of the account.
|
|
51
|
+
#
|
|
52
|
+
# @return [Symbol, Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::UserStatus]
|
|
53
|
+
required :user_status,
|
|
54
|
+
enum: -> { Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::UserStatus }
|
|
55
|
+
|
|
56
|
+
# @!attribute last_sign_in_at
|
|
57
|
+
# ISO 8601 formatted date indicating when the resource last signed into the
|
|
58
|
+
# portal. Null if the user has never signed in.
|
|
59
|
+
#
|
|
60
|
+
# @return [String, nil]
|
|
61
|
+
optional :last_sign_in_at, String, nil?: true
|
|
62
|
+
|
|
63
|
+
# @!attribute organization_user_bypasses_sso
|
|
64
|
+
# Indicates whether this user is allowed to bypass SSO and use password
|
|
65
|
+
# authentication.
|
|
66
|
+
#
|
|
67
|
+
# @return [Boolean, nil]
|
|
68
|
+
optional :organization_user_bypasses_sso, Telnyx::Internal::Type::Boolean
|
|
69
|
+
|
|
70
|
+
# @!method initialize(id:, created_at:, email:, groups:, record_type:, user_status:, last_sign_in_at: nil, organization_user_bypasses_sso: nil)
|
|
71
|
+
# Some parameter documentations has been truncated, see
|
|
72
|
+
# {Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data} for more
|
|
73
|
+
# details.
|
|
74
|
+
#
|
|
75
|
+
# An organization user with their group memberships always included.
|
|
76
|
+
#
|
|
77
|
+
# @param id [String] Identifies the specific resource.
|
|
78
|
+
#
|
|
79
|
+
# @param created_at [String] ISO 8601 formatted date indicating when the resource was created.
|
|
80
|
+
#
|
|
81
|
+
# @param email [String] The email address of the user.
|
|
82
|
+
#
|
|
83
|
+
# @param groups [Array<Telnyx::Models::Organizations::UserGroupReference>] The groups the user belongs to.
|
|
84
|
+
#
|
|
85
|
+
# @param record_type [String] Identifies the type of the resource. Can be 'organization_owner' or 'organizatio
|
|
86
|
+
#
|
|
87
|
+
# @param user_status [Symbol, Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::UserStatus] The status of the account.
|
|
88
|
+
#
|
|
89
|
+
# @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
|
|
90
|
+
#
|
|
91
|
+
# @param organization_user_bypasses_sso [Boolean] Indicates whether this user is allowed to bypass SSO and use password authentica
|
|
92
|
+
|
|
93
|
+
# The status of the account.
|
|
94
|
+
#
|
|
95
|
+
# @see Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data#user_status
|
|
96
|
+
module UserStatus
|
|
97
|
+
extend Telnyx::Internal::Type::Enum
|
|
98
|
+
|
|
99
|
+
ENABLED = :enabled
|
|
100
|
+
DISABLED = :disabled
|
|
101
|
+
BLOCKED = :blocked
|
|
102
|
+
|
|
103
|
+
# @!method self.values
|
|
104
|
+
# @return [Array<Symbol>]
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
class UserGroupReference < Telnyx::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# The unique identifier of the group.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute name
|
|
14
|
+
# The name of the group.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :name, String
|
|
18
|
+
|
|
19
|
+
# @!method initialize(id:, name:)
|
|
20
|
+
# A reference to a group that a user belongs to.
|
|
21
|
+
#
|
|
22
|
+
# @param id [String] The unique identifier of the group.
|
|
23
|
+
#
|
|
24
|
+
# @param name [String] The name of the group.
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Telnyx::Resources::Organizations::Users#list
|
|
7
|
+
class UserListParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute filter_email
|
|
12
|
+
# Filter by email address (partial match)
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :filter_email, String
|
|
16
|
+
|
|
17
|
+
# @!attribute filter_user_status
|
|
18
|
+
# Filter by user status
|
|
19
|
+
#
|
|
20
|
+
# @return [Symbol, Telnyx::Models::Organizations::UserListParams::FilterUserStatus, nil]
|
|
21
|
+
optional :filter_user_status, enum: -> { Telnyx::Organizations::UserListParams::FilterUserStatus }
|
|
22
|
+
|
|
23
|
+
# @!attribute include_groups
|
|
24
|
+
# When set to true, includes the groups array for each user in the response. The
|
|
25
|
+
# groups array contains objects with id and name for each group the user belongs
|
|
26
|
+
# to.
|
|
27
|
+
#
|
|
28
|
+
# @return [Boolean, nil]
|
|
29
|
+
optional :include_groups, Telnyx::Internal::Type::Boolean
|
|
30
|
+
|
|
31
|
+
# @!attribute page_number
|
|
32
|
+
# The page number to load
|
|
33
|
+
#
|
|
34
|
+
# @return [Integer, nil]
|
|
35
|
+
optional :page_number, Integer
|
|
36
|
+
|
|
37
|
+
# @!attribute page_size
|
|
38
|
+
# The size of the page
|
|
39
|
+
#
|
|
40
|
+
# @return [Integer, nil]
|
|
41
|
+
optional :page_size, Integer
|
|
42
|
+
|
|
43
|
+
# @!method initialize(filter_email: nil, filter_user_status: nil, include_groups: nil, page_number: nil, page_size: nil, request_options: {})
|
|
44
|
+
# Some parameter documentations has been truncated, see
|
|
45
|
+
# {Telnyx::Models::Organizations::UserListParams} for more details.
|
|
46
|
+
#
|
|
47
|
+
# @param filter_email [String] Filter by email address (partial match)
|
|
48
|
+
#
|
|
49
|
+
# @param filter_user_status [Symbol, Telnyx::Models::Organizations::UserListParams::FilterUserStatus] Filter by user status
|
|
50
|
+
#
|
|
51
|
+
# @param include_groups [Boolean] When set to true, includes the groups array for each user in the response. The g
|
|
52
|
+
#
|
|
53
|
+
# @param page_number [Integer] The page number to load
|
|
54
|
+
#
|
|
55
|
+
# @param page_size [Integer] The size of the page
|
|
56
|
+
#
|
|
57
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
58
|
+
|
|
59
|
+
# Filter by user status
|
|
60
|
+
module FilterUserStatus
|
|
61
|
+
extend Telnyx::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
ENABLED = :enabled
|
|
64
|
+
DISABLED = :disabled
|
|
65
|
+
BLOCKED = :blocked
|
|
66
|
+
|
|
67
|
+
# @!method self.values
|
|
68
|
+
# @return [Array<Symbol>]
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Telnyx::Resources::Organizations::Users#list
|
|
7
|
+
class UserListResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Identifies the specific resource.
|
|
10
|
+
#
|
|
11
|
+
# @return [String, nil]
|
|
12
|
+
optional :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute created_at
|
|
15
|
+
# ISO 8601 formatted date indicating when the resource was created.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
optional :created_at, String
|
|
19
|
+
|
|
20
|
+
# @!attribute email
|
|
21
|
+
# The email address of the user.
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :email, String
|
|
25
|
+
|
|
26
|
+
# @!attribute groups
|
|
27
|
+
# The groups the user belongs to. Only included when include_groups parameter is
|
|
28
|
+
# true.
|
|
29
|
+
#
|
|
30
|
+
# @return [Array<Telnyx::Models::Organizations::UserGroupReference>, nil]
|
|
31
|
+
optional :groups, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Organizations::UserGroupReference] }
|
|
32
|
+
|
|
33
|
+
# @!attribute last_sign_in_at
|
|
34
|
+
# ISO 8601 formatted date indicating when the resource last signed into the
|
|
35
|
+
# portal. Null if the user has never signed in.
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :last_sign_in_at, String, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute organization_user_bypasses_sso
|
|
41
|
+
# Indicates whether this user is allowed to bypass SSO and use password
|
|
42
|
+
# authentication.
|
|
43
|
+
#
|
|
44
|
+
# @return [Boolean, nil]
|
|
45
|
+
optional :organization_user_bypasses_sso, Telnyx::Internal::Type::Boolean
|
|
46
|
+
|
|
47
|
+
# @!attribute record_type
|
|
48
|
+
# Identifies the type of the resource. Can be 'organization_owner' or
|
|
49
|
+
# 'organization_sub_user'.
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
optional :record_type, String
|
|
53
|
+
|
|
54
|
+
# @!attribute user_status
|
|
55
|
+
# The status of the account.
|
|
56
|
+
#
|
|
57
|
+
# @return [Symbol, Telnyx::Models::Organizations::UserListResponse::UserStatus, nil]
|
|
58
|
+
optional :user_status, enum: -> { Telnyx::Models::Organizations::UserListResponse::UserStatus }
|
|
59
|
+
|
|
60
|
+
# @!method initialize(id: nil, created_at: nil, email: nil, groups: nil, last_sign_in_at: nil, organization_user_bypasses_sso: nil, record_type: nil, user_status: nil)
|
|
61
|
+
# Some parameter documentations has been truncated, see
|
|
62
|
+
# {Telnyx::Models::Organizations::UserListResponse} for more details.
|
|
63
|
+
#
|
|
64
|
+
# @param id [String] Identifies the specific resource.
|
|
65
|
+
#
|
|
66
|
+
# @param created_at [String] ISO 8601 formatted date indicating when the resource was created.
|
|
67
|
+
#
|
|
68
|
+
# @param email [String] The email address of the user.
|
|
69
|
+
#
|
|
70
|
+
# @param groups [Array<Telnyx::Models::Organizations::UserGroupReference>] The groups the user belongs to. Only included when include_groups parameter is t
|
|
71
|
+
#
|
|
72
|
+
# @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
|
|
73
|
+
#
|
|
74
|
+
# @param organization_user_bypasses_sso [Boolean] Indicates whether this user is allowed to bypass SSO and use password authentica
|
|
75
|
+
#
|
|
76
|
+
# @param record_type [String] Identifies the type of the resource. Can be 'organization_owner' or 'organizatio
|
|
77
|
+
#
|
|
78
|
+
# @param user_status [Symbol, Telnyx::Models::Organizations::UserListResponse::UserStatus] The status of the account.
|
|
79
|
+
|
|
80
|
+
# The status of the account.
|
|
81
|
+
#
|
|
82
|
+
# @see Telnyx::Models::Organizations::UserListResponse#user_status
|
|
83
|
+
module UserStatus
|
|
84
|
+
extend Telnyx::Internal::Type::Enum
|
|
85
|
+
|
|
86
|
+
ENABLED = :enabled
|
|
87
|
+
DISABLED = :disabled
|
|
88
|
+
BLOCKED = :blocked
|
|
89
|
+
|
|
90
|
+
# @!method self.values
|
|
91
|
+
# @return [Array<Symbol>]
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Telnyx::Resources::Organizations::Users#retrieve
|
|
7
|
+
class UserRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute include_groups
|
|
12
|
+
# When set to true, includes the groups array for each user in the response. The
|
|
13
|
+
# groups array contains objects with id and name for each group the user belongs
|
|
14
|
+
# to.
|
|
15
|
+
#
|
|
16
|
+
# @return [Boolean, nil]
|
|
17
|
+
optional :include_groups, Telnyx::Internal::Type::Boolean
|
|
18
|
+
|
|
19
|
+
# @!method initialize(include_groups: nil, request_options: {})
|
|
20
|
+
# Some parameter documentations has been truncated, see
|
|
21
|
+
# {Telnyx::Models::Organizations::UserRetrieveParams} for more details.
|
|
22
|
+
#
|
|
23
|
+
# @param include_groups [Boolean] When set to true, includes the groups array for each user in the response. The g
|
|
24
|
+
#
|
|
25
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
# @see Telnyx::Resources::Organizations::Users#retrieve
|
|
7
|
+
class UserRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Telnyx::Models::Organizations::UserRetrieveResponse::Data, nil]
|
|
11
|
+
optional :data, -> { Telnyx::Models::Organizations::UserRetrieveResponse::Data }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(data: nil)
|
|
14
|
+
# @param data [Telnyx::Models::Organizations::UserRetrieveResponse::Data]
|
|
15
|
+
|
|
16
|
+
# @see Telnyx::Models::Organizations::UserRetrieveResponse#data
|
|
17
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
18
|
+
# @!attribute id
|
|
19
|
+
# Identifies the specific resource.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :id, String
|
|
23
|
+
|
|
24
|
+
# @!attribute created_at
|
|
25
|
+
# ISO 8601 formatted date indicating when the resource was created.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :created_at, String
|
|
29
|
+
|
|
30
|
+
# @!attribute email
|
|
31
|
+
# The email address of the user.
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :email, String
|
|
35
|
+
|
|
36
|
+
# @!attribute groups
|
|
37
|
+
# The groups the user belongs to. Only included when include_groups parameter is
|
|
38
|
+
# true.
|
|
39
|
+
#
|
|
40
|
+
# @return [Array<Telnyx::Models::Organizations::UserGroupReference>, nil]
|
|
41
|
+
optional :groups, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Organizations::UserGroupReference] }
|
|
42
|
+
|
|
43
|
+
# @!attribute last_sign_in_at
|
|
44
|
+
# ISO 8601 formatted date indicating when the resource last signed into the
|
|
45
|
+
# portal. Null if the user has never signed in.
|
|
46
|
+
#
|
|
47
|
+
# @return [String, nil]
|
|
48
|
+
optional :last_sign_in_at, String, nil?: true
|
|
49
|
+
|
|
50
|
+
# @!attribute organization_user_bypasses_sso
|
|
51
|
+
# Indicates whether this user is allowed to bypass SSO and use password
|
|
52
|
+
# authentication.
|
|
53
|
+
#
|
|
54
|
+
# @return [Boolean, nil]
|
|
55
|
+
optional :organization_user_bypasses_sso, Telnyx::Internal::Type::Boolean
|
|
56
|
+
|
|
57
|
+
# @!attribute record_type
|
|
58
|
+
# Identifies the type of the resource. Can be 'organization_owner' or
|
|
59
|
+
# 'organization_sub_user'.
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :record_type, String
|
|
63
|
+
|
|
64
|
+
# @!attribute user_status
|
|
65
|
+
# The status of the account.
|
|
66
|
+
#
|
|
67
|
+
# @return [Symbol, Telnyx::Models::Organizations::UserRetrieveResponse::Data::UserStatus, nil]
|
|
68
|
+
optional :user_status, enum: -> { Telnyx::Models::Organizations::UserRetrieveResponse::Data::UserStatus }
|
|
69
|
+
|
|
70
|
+
# @!method initialize(id: nil, created_at: nil, email: nil, groups: nil, last_sign_in_at: nil, organization_user_bypasses_sso: nil, record_type: nil, user_status: nil)
|
|
71
|
+
# Some parameter documentations has been truncated, see
|
|
72
|
+
# {Telnyx::Models::Organizations::UserRetrieveResponse::Data} for more details.
|
|
73
|
+
#
|
|
74
|
+
# @param id [String] Identifies the specific resource.
|
|
75
|
+
#
|
|
76
|
+
# @param created_at [String] ISO 8601 formatted date indicating when the resource was created.
|
|
77
|
+
#
|
|
78
|
+
# @param email [String] The email address of the user.
|
|
79
|
+
#
|
|
80
|
+
# @param groups [Array<Telnyx::Models::Organizations::UserGroupReference>] The groups the user belongs to. Only included when include_groups parameter is t
|
|
81
|
+
#
|
|
82
|
+
# @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
|
|
83
|
+
#
|
|
84
|
+
# @param organization_user_bypasses_sso [Boolean] Indicates whether this user is allowed to bypass SSO and use password authentica
|
|
85
|
+
#
|
|
86
|
+
# @param record_type [String] Identifies the type of the resource. Can be 'organization_owner' or 'organizatio
|
|
87
|
+
#
|
|
88
|
+
# @param user_status [Symbol, Telnyx::Models::Organizations::UserRetrieveResponse::Data::UserStatus] The status of the account.
|
|
89
|
+
|
|
90
|
+
# The status of the account.
|
|
91
|
+
#
|
|
92
|
+
# @see Telnyx::Models::Organizations::UserRetrieveResponse::Data#user_status
|
|
93
|
+
module UserStatus
|
|
94
|
+
extend Telnyx::Internal::Type::Enum
|
|
95
|
+
|
|
96
|
+
ENABLED = :enabled
|
|
97
|
+
DISABLED = :disabled
|
|
98
|
+
BLOCKED = :blocked
|
|
99
|
+
|
|
100
|
+
# @!method self.values
|
|
101
|
+
# @return [Array<Symbol>]
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
module Users
|
|
7
|
+
# @see Telnyx::Resources::Organizations::Users::Actions#remove
|
|
8
|
+
class ActionRemoveParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
# @!method initialize(request_options: {})
|
|
13
|
+
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Telnyx
|
|
4
|
+
module Models
|
|
5
|
+
module Organizations
|
|
6
|
+
module Users
|
|
7
|
+
# @see Telnyx::Resources::Organizations::Users::Actions#remove
|
|
8
|
+
class ActionRemoveResponse < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
# @!attribute data
|
|
10
|
+
#
|
|
11
|
+
# @return [Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data, nil]
|
|
12
|
+
optional :data, -> { Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data }
|
|
13
|
+
|
|
14
|
+
# @!method initialize(data: nil)
|
|
15
|
+
# @param data [Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data]
|
|
16
|
+
|
|
17
|
+
# @see Telnyx::Models::Organizations::Users::ActionRemoveResponse#data
|
|
18
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
19
|
+
# @!attribute id
|
|
20
|
+
# Identifies the specific resource.
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :id, String
|
|
24
|
+
|
|
25
|
+
# @!attribute created_at
|
|
26
|
+
# ISO 8601 formatted date indicating when the resource was created.
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :created_at, String
|
|
30
|
+
|
|
31
|
+
# @!attribute email
|
|
32
|
+
# The email address of the user.
|
|
33
|
+
#
|
|
34
|
+
# @return [String, nil]
|
|
35
|
+
optional :email, String
|
|
36
|
+
|
|
37
|
+
# @!attribute groups
|
|
38
|
+
# The groups the user belongs to. Only included when include_groups parameter is
|
|
39
|
+
# true.
|
|
40
|
+
#
|
|
41
|
+
# @return [Array<Telnyx::Models::Organizations::UserGroupReference>, nil]
|
|
42
|
+
optional :groups, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Organizations::UserGroupReference] }
|
|
43
|
+
|
|
44
|
+
# @!attribute last_sign_in_at
|
|
45
|
+
# ISO 8601 formatted date indicating when the resource last signed into the
|
|
46
|
+
# portal. Null if the user has never signed in.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
optional :last_sign_in_at, String, nil?: true
|
|
50
|
+
|
|
51
|
+
# @!attribute organization_user_bypasses_sso
|
|
52
|
+
# Indicates whether this user is allowed to bypass SSO and use password
|
|
53
|
+
# authentication.
|
|
54
|
+
#
|
|
55
|
+
# @return [Boolean, nil]
|
|
56
|
+
optional :organization_user_bypasses_sso, Telnyx::Internal::Type::Boolean
|
|
57
|
+
|
|
58
|
+
# @!attribute record_type
|
|
59
|
+
# Identifies the type of the resource. Can be 'organization_owner' or
|
|
60
|
+
# 'organization_sub_user'.
|
|
61
|
+
#
|
|
62
|
+
# @return [String, nil]
|
|
63
|
+
optional :record_type, String
|
|
64
|
+
|
|
65
|
+
# @!attribute user_status
|
|
66
|
+
# The status of the account.
|
|
67
|
+
#
|
|
68
|
+
# @return [Symbol, Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus, nil]
|
|
69
|
+
optional :user_status,
|
|
70
|
+
enum: -> { Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus }
|
|
71
|
+
|
|
72
|
+
# @!method initialize(id: nil, created_at: nil, email: nil, groups: nil, last_sign_in_at: nil, organization_user_bypasses_sso: nil, record_type: nil, user_status: nil)
|
|
73
|
+
# Some parameter documentations has been truncated, see
|
|
74
|
+
# {Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data} for more
|
|
75
|
+
# details.
|
|
76
|
+
#
|
|
77
|
+
# @param id [String] Identifies the specific resource.
|
|
78
|
+
#
|
|
79
|
+
# @param created_at [String] ISO 8601 formatted date indicating when the resource was created.
|
|
80
|
+
#
|
|
81
|
+
# @param email [String] The email address of the user.
|
|
82
|
+
#
|
|
83
|
+
# @param groups [Array<Telnyx::Models::Organizations::UserGroupReference>] The groups the user belongs to. Only included when include_groups parameter is t
|
|
84
|
+
#
|
|
85
|
+
# @param last_sign_in_at [String, nil] ISO 8601 formatted date indicating when the resource last signed into the portal
|
|
86
|
+
#
|
|
87
|
+
# @param organization_user_bypasses_sso [Boolean] Indicates whether this user is allowed to bypass SSO and use password authentica
|
|
88
|
+
#
|
|
89
|
+
# @param record_type [String] Identifies the type of the resource. Can be 'organization_owner' or 'organizatio
|
|
90
|
+
#
|
|
91
|
+
# @param user_status [Symbol, Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data::UserStatus] The status of the account.
|
|
92
|
+
|
|
93
|
+
# The status of the account.
|
|
94
|
+
#
|
|
95
|
+
# @see Telnyx::Models::Organizations::Users::ActionRemoveResponse::Data#user_status
|
|
96
|
+
module UserStatus
|
|
97
|
+
extend Telnyx::Internal::Type::Enum
|
|
98
|
+
|
|
99
|
+
ENABLED = :enabled
|
|
100
|
+
DISABLED = :disabled
|
|
101
|
+
BLOCKED = :blocked
|
|
102
|
+
|
|
103
|
+
# @!method self.values
|
|
104
|
+
# @return [Array<Symbol>]
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
@@ -5,7 +5,8 @@ module Telnyx
|
|
|
5
5
|
class PrivateWirelessGatewayStatus < Telnyx::Internal::Type::BaseModel
|
|
6
6
|
response_only do
|
|
7
7
|
# @!attribute error_code
|
|
8
|
-
# This attribute is an
|
|
8
|
+
# This attribute is an
|
|
9
|
+
# [error code](https://developers.telnyx.com/development/api-fundamentals/api-errors)
|
|
9
10
|
# related to the failure reason.
|
|
10
11
|
#
|
|
11
12
|
# @return [String, nil]
|
|
@@ -37,7 +38,7 @@ module Telnyx
|
|
|
37
38
|
#
|
|
38
39
|
# The current status or failure details of the Private Wireless Gateway.
|
|
39
40
|
#
|
|
40
|
-
# @param error_code [String, nil] This attribute is an [error code](https://developers.telnyx.com/api
|
|
41
|
+
# @param error_code [String, nil] This attribute is an [error code](https://developers.telnyx.com/development/api-
|
|
41
42
|
#
|
|
42
43
|
# @param error_description [String, nil] This attribute provides a human-readable explanation of why a failure happened.
|
|
43
44
|
#
|
|
@@ -15,12 +15,26 @@ module Telnyx
|
|
|
15
15
|
# @return [Telnyx::Models::Queues::CallListParams::Page, nil]
|
|
16
16
|
optional :page, -> { Telnyx::Queues::CallListParams::Page }
|
|
17
17
|
|
|
18
|
-
# @!
|
|
18
|
+
# @!attribute page_number
|
|
19
|
+
#
|
|
20
|
+
# @return [Integer, nil]
|
|
21
|
+
optional :page_number, Integer
|
|
22
|
+
|
|
23
|
+
# @!attribute page_size
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :page_size, Integer
|
|
27
|
+
|
|
28
|
+
# @!method initialize(page: nil, page_number: nil, page_size: nil, request_options: {})
|
|
19
29
|
# Some parameter documentations has been truncated, see
|
|
20
30
|
# {Telnyx::Models::Queues::CallListParams} for more details.
|
|
21
31
|
#
|
|
22
32
|
# @param page [Telnyx::Models::Queues::CallListParams::Page] Consolidated page parameter (deepObject style). Originally: page[after], page[be
|
|
23
33
|
#
|
|
34
|
+
# @param page_number [Integer]
|
|
35
|
+
#
|
|
36
|
+
# @param page_size [Integer]
|
|
37
|
+
#
|
|
24
38
|
# @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
|
|
25
39
|
|
|
26
40
|
class Page < Telnyx::Internal::Type::BaseModel
|
|
@@ -42,19 +56,7 @@ module Telnyx
|
|
|
42
56
|
# @return [Integer, nil]
|
|
43
57
|
optional :limit, Integer
|
|
44
58
|
|
|
45
|
-
# @!
|
|
46
|
-
# The page number to load
|
|
47
|
-
#
|
|
48
|
-
# @return [Integer, nil]
|
|
49
|
-
optional :number, Integer
|
|
50
|
-
|
|
51
|
-
# @!attribute size
|
|
52
|
-
# The size of the page
|
|
53
|
-
#
|
|
54
|
-
# @return [Integer, nil]
|
|
55
|
-
optional :size, Integer
|
|
56
|
-
|
|
57
|
-
# @!method initialize(after: nil, before: nil, limit: nil, number: nil, size: nil)
|
|
59
|
+
# @!method initialize(after: nil, before: nil, limit: nil)
|
|
58
60
|
# Consolidated page parameter (deepObject style). Originally: page[after],
|
|
59
61
|
# page[before], page[limit], page[size], page[number]
|
|
60
62
|
#
|
|
@@ -63,10 +65,6 @@ module Telnyx
|
|
|
63
65
|
# @param before [String] Opaque identifier of previous page
|
|
64
66
|
#
|
|
65
67
|
# @param limit [Integer] Limit of records per single page
|
|
66
|
-
#
|
|
67
|
-
# @param number [Integer] The page number to load
|
|
68
|
-
#
|
|
69
|
-
# @param size [Integer] The size of the page
|
|
70
68
|
end
|
|
71
69
|
end
|
|
72
70
|
end
|