telnyx 5.0.0 → 5.1.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 +38 -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 +187 -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 +187 -6
- data/lib/telnyx/models/ai/assistants/update_assistant.rb +189 -6
- 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 +187 -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/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/fax_create_params.rb +10 -1
- 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 +132 -0
- data/lib/telnyx/models/organizations/user_list_params.rb +73 -0
- data/lib/telnyx/models/organizations/user_list_response.rb +118 -0
- data/lib/telnyx/models/organizations/user_retrieve_params.rb +29 -0
- data/lib/telnyx/models/organizations/user_retrieve_response.rb +129 -0
- data/lib/telnyx/models/organizations/users/action_remove_params.rb +18 -0
- data/lib/telnyx/models/organizations/users/action_remove_response.rb +133 -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 +2 -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/faxes.rb +3 -1
- 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 +15 -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 +449 -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 +449 -14
- data/rbi/telnyx/models/ai/assistants/update_assistant.rbi +454 -17
- 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 +447 -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/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/fax_create_params.rbi +13 -0
- 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 +253 -0
- data/rbi/telnyx/models/organizations/user_list_params.rbi +152 -0
- data/rbi/telnyx/models/organizations/user_list_response.rbi +231 -0
- data/rbi/telnyx/models/organizations/user_retrieve_params.rbi +55 -0
- data/rbi/telnyx/models/organizations/user_retrieve_response.rbi +275 -0
- data/rbi/telnyx/models/organizations/users/action_remove_params.rbi +34 -0
- data/rbi/telnyx/models/organizations/users/action_remove_response.rbi +282 -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 +2 -6
- data/rbi/telnyx/resources/ai/assistants/tools.rbi +2 -2
- data/rbi/telnyx/resources/ai/assistants/versions.rbi +26 -19
- data/rbi/telnyx/resources/ai/assistants.rbi +32 -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/faxes.rbi +4 -0
- 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 +176 -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 +176 -1
- data/sig/telnyx/models/ai/assistants/update_assistant.rbs +178 -3
- data/sig/telnyx/models/ai/chat_create_completion_params.rbs +4 -7
- data/sig/telnyx/models/ai/inference_embedding.rbs +178 -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/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/fax_create_params.rbs +7 -0
- 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 +104 -0
- data/sig/telnyx/models/organizations/user_list_params.rbs +72 -0
- data/sig/telnyx/models/organizations/user_list_response.rbs +99 -0
- data/sig/telnyx/models/organizations/user_retrieve_params.rbs +27 -0
- data/sig/telnyx/models/organizations/user_retrieve_response.rbs +118 -0
- data/sig/telnyx/models/organizations/users/action_remove_params.rbs +19 -0
- data/sig/telnyx/models/organizations/users/action_remove_response.rbs +122 -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 +2 -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/faxes.rbs +1 -0
- 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 +47 -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
|
@@ -17,6 +17,7 @@ module Telnyx
|
|
|
17
17
|
record_type: Telnyx::Models::MessagingProfile::record_type,
|
|
18
18
|
redaction_enabled: bool,
|
|
19
19
|
redaction_level: Integer,
|
|
20
|
+
smart_encoding: bool,
|
|
20
21
|
updated_at: Time,
|
|
21
22
|
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
22
23
|
:v1_secret => String,
|
|
@@ -69,6 +70,10 @@ module Telnyx
|
|
|
69
70
|
|
|
70
71
|
def redaction_level=: (Integer) -> Integer
|
|
71
72
|
|
|
73
|
+
attr_reader smart_encoding: bool?
|
|
74
|
+
|
|
75
|
+
def smart_encoding=: (bool) -> bool
|
|
76
|
+
|
|
72
77
|
attr_accessor url_shortener_settings: Telnyx::URLShortenerSettings?
|
|
73
78
|
|
|
74
79
|
attr_reader v1_secret: String?
|
|
@@ -123,6 +128,7 @@ module Telnyx
|
|
|
123
128
|
?record_type: Telnyx::Models::MessagingProfile::record_type,
|
|
124
129
|
?redaction_enabled: bool,
|
|
125
130
|
?redaction_level: Integer,
|
|
131
|
+
?smart_encoding: bool,
|
|
126
132
|
?updated_at: Time,
|
|
127
133
|
?url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
128
134
|
?v1_secret: String,
|
|
@@ -148,6 +154,7 @@ module Telnyx
|
|
|
148
154
|
record_type: Telnyx::Models::MessagingProfile::record_type,
|
|
149
155
|
redaction_enabled: bool,
|
|
150
156
|
redaction_level: Integer,
|
|
157
|
+
smart_encoding: bool,
|
|
151
158
|
updated_at: Time,
|
|
152
159
|
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
153
160
|
:v1_secret => String,
|
|
@@ -12,6 +12,7 @@ module Telnyx
|
|
|
12
12
|
mms_transcoding: bool,
|
|
13
13
|
mobile_only: bool,
|
|
14
14
|
number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
15
|
+
smart_encoding: bool,
|
|
15
16
|
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
16
17
|
webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
|
|
17
18
|
webhook_failover_url: String?,
|
|
@@ -55,6 +56,10 @@ module Telnyx
|
|
|
55
56
|
|
|
56
57
|
attr_accessor number_pool_settings: Telnyx::NumberPoolSettings?
|
|
57
58
|
|
|
59
|
+
attr_reader smart_encoding: bool?
|
|
60
|
+
|
|
61
|
+
def smart_encoding=: (bool) -> bool
|
|
62
|
+
|
|
58
63
|
attr_accessor url_shortener_settings: Telnyx::URLShortenerSettings?
|
|
59
64
|
|
|
60
65
|
attr_reader webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version?
|
|
@@ -78,6 +83,7 @@ module Telnyx
|
|
|
78
83
|
?mms_transcoding: bool,
|
|
79
84
|
?mobile_only: bool,
|
|
80
85
|
?number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
86
|
+
?smart_encoding: bool,
|
|
81
87
|
?url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
82
88
|
?webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
|
|
83
89
|
?webhook_failover_url: String?,
|
|
@@ -96,6 +102,7 @@ module Telnyx
|
|
|
96
102
|
mms_transcoding: bool,
|
|
97
103
|
mobile_only: bool,
|
|
98
104
|
number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
105
|
+
smart_encoding: bool,
|
|
99
106
|
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
100
107
|
webhook_api_version: Telnyx::Models::MessagingProfileCreateParams::webhook_api_version,
|
|
101
108
|
webhook_failover_url: String?,
|
|
@@ -11,6 +11,7 @@ module Telnyx
|
|
|
11
11
|
mobile_only: bool,
|
|
12
12
|
name: String,
|
|
13
13
|
number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
14
|
+
smart_encoding: bool,
|
|
14
15
|
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
15
16
|
:v1_secret => String,
|
|
16
17
|
webhook_api_version: Telnyx::Models::MessagingProfileUpdateParams::webhook_api_version,
|
|
@@ -56,6 +57,10 @@ module Telnyx
|
|
|
56
57
|
|
|
57
58
|
attr_accessor number_pool_settings: Telnyx::NumberPoolSettings?
|
|
58
59
|
|
|
60
|
+
attr_reader smart_encoding: bool?
|
|
61
|
+
|
|
62
|
+
def smart_encoding=: (bool) -> bool
|
|
63
|
+
|
|
59
64
|
attr_accessor url_shortener_settings: Telnyx::URLShortenerSettings?
|
|
60
65
|
|
|
61
66
|
attr_reader v1_secret: String?
|
|
@@ -86,6 +91,7 @@ module Telnyx
|
|
|
86
91
|
?mobile_only: bool,
|
|
87
92
|
?name: String,
|
|
88
93
|
?number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
94
|
+
?smart_encoding: bool,
|
|
89
95
|
?url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
90
96
|
?v1_secret: String,
|
|
91
97
|
?webhook_api_version: Telnyx::Models::MessagingProfileUpdateParams::webhook_api_version,
|
|
@@ -105,6 +111,7 @@ module Telnyx
|
|
|
105
111
|
mobile_only: bool,
|
|
106
112
|
name: String,
|
|
107
113
|
number_pool_settings: Telnyx::NumberPoolSettings?,
|
|
114
|
+
smart_encoding: bool,
|
|
108
115
|
url_shortener_settings: Telnyx::URLShortenerSettings?,
|
|
109
116
|
:v1_secret => String,
|
|
110
117
|
webhook_api_version: Telnyx::Models::MessagingProfileUpdateParams::webhook_api_version,
|
|
@@ -28,6 +28,7 @@ module Telnyx
|
|
|
28
28
|
business_registration_country: String?,
|
|
29
29
|
business_registration_number: String?,
|
|
30
30
|
business_registration_type: String?,
|
|
31
|
+
campaign_verify_authorization_token: String?,
|
|
31
32
|
doing_business_as: String?,
|
|
32
33
|
entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type?,
|
|
33
34
|
help_message_response: String?,
|
|
@@ -91,6 +92,8 @@ module Telnyx
|
|
|
91
92
|
|
|
92
93
|
attr_accessor business_registration_type: String?
|
|
93
94
|
|
|
95
|
+
attr_accessor campaign_verify_authorization_token: String?
|
|
96
|
+
|
|
94
97
|
attr_accessor doing_business_as: String?
|
|
95
98
|
|
|
96
99
|
attr_accessor entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type?
|
|
@@ -134,6 +137,7 @@ module Telnyx
|
|
|
134
137
|
?business_registration_country: String?,
|
|
135
138
|
?business_registration_number: String?,
|
|
136
139
|
?business_registration_type: String?,
|
|
140
|
+
?campaign_verify_authorization_token: String?,
|
|
137
141
|
?doing_business_as: String?,
|
|
138
142
|
?entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type?,
|
|
139
143
|
?help_message_response: String?,
|
|
@@ -169,6 +173,7 @@ module Telnyx
|
|
|
169
173
|
business_registration_country: String?,
|
|
170
174
|
business_registration_number: String?,
|
|
171
175
|
business_registration_type: String?,
|
|
176
|
+
campaign_verify_authorization_token: String?,
|
|
172
177
|
doing_business_as: String?,
|
|
173
178
|
entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type?,
|
|
174
179
|
help_message_response: String?,
|
|
@@ -32,6 +32,7 @@ module Telnyx
|
|
|
32
32
|
business_registration_country: String,
|
|
33
33
|
business_registration_number: String,
|
|
34
34
|
business_registration_type: String,
|
|
35
|
+
campaign_verify_authorization_token: String?,
|
|
35
36
|
doing_business_as: String,
|
|
36
37
|
entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type,
|
|
37
38
|
help_message_response: String,
|
|
@@ -106,6 +107,8 @@ module Telnyx
|
|
|
106
107
|
|
|
107
108
|
def business_registration_type=: (String) -> String
|
|
108
109
|
|
|
110
|
+
attr_accessor campaign_verify_authorization_token: String?
|
|
111
|
+
|
|
109
112
|
attr_reader doing_business_as: String?
|
|
110
113
|
|
|
111
114
|
def doing_business_as=: (String) -> String
|
|
@@ -173,6 +176,7 @@ module Telnyx
|
|
|
173
176
|
?business_registration_country: String,
|
|
174
177
|
?business_registration_number: String,
|
|
175
178
|
?business_registration_type: String,
|
|
179
|
+
?campaign_verify_authorization_token: String?,
|
|
176
180
|
?doing_business_as: String,
|
|
177
181
|
?entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type,
|
|
178
182
|
?help_message_response: String,
|
|
@@ -211,6 +215,7 @@ module Telnyx
|
|
|
211
215
|
business_registration_country: String,
|
|
212
216
|
business_registration_number: String,
|
|
213
217
|
business_registration_type: String,
|
|
218
|
+
campaign_verify_authorization_token: String?,
|
|
214
219
|
doing_business_as: String,
|
|
215
220
|
entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type,
|
|
216
221
|
help_message_response: String,
|
|
@@ -32,6 +32,7 @@ module Telnyx
|
|
|
32
32
|
business_registration_country: String,
|
|
33
33
|
business_registration_number: String,
|
|
34
34
|
business_registration_type: String,
|
|
35
|
+
campaign_verify_authorization_token: String?,
|
|
35
36
|
created_at: Time,
|
|
36
37
|
doing_business_as: String,
|
|
37
38
|
entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type,
|
|
@@ -108,6 +109,8 @@ module Telnyx
|
|
|
108
109
|
|
|
109
110
|
def business_registration_type=: (String) -> String
|
|
110
111
|
|
|
112
|
+
attr_accessor campaign_verify_authorization_token: String?
|
|
113
|
+
|
|
111
114
|
attr_reader created_at: Time?
|
|
112
115
|
|
|
113
116
|
def created_at=: (Time) -> Time
|
|
@@ -181,6 +184,7 @@ module Telnyx
|
|
|
181
184
|
?business_registration_country: String,
|
|
182
185
|
?business_registration_number: String,
|
|
183
186
|
?business_registration_type: String,
|
|
187
|
+
?campaign_verify_authorization_token: String?,
|
|
184
188
|
?created_at: Time,
|
|
185
189
|
?doing_business_as: String,
|
|
186
190
|
?entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type,
|
|
@@ -221,6 +225,7 @@ module Telnyx
|
|
|
221
225
|
business_registration_country: String,
|
|
222
226
|
business_registration_number: String,
|
|
223
227
|
business_registration_type: String,
|
|
228
|
+
campaign_verify_authorization_token: String?,
|
|
224
229
|
created_at: Time,
|
|
225
230
|
doing_business_as: String,
|
|
226
231
|
entity_type: Telnyx::Models::MessagingTollfree::Verification::toll_free_verification_entity_type,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
type user_get_groups_report_params =
|
|
5
|
+
{
|
|
6
|
+
accept: Telnyx::Models::Organizations::UserGetGroupsReportParams::accept
|
|
7
|
+
}
|
|
8
|
+
& Telnyx::Internal::Type::request_parameters
|
|
9
|
+
|
|
10
|
+
class UserGetGroupsReportParams < Telnyx::Internal::Type::BaseModel
|
|
11
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
12
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
13
|
+
|
|
14
|
+
attr_reader accept: Telnyx::Models::Organizations::UserGetGroupsReportParams::accept?
|
|
15
|
+
|
|
16
|
+
def accept=: (
|
|
17
|
+
Telnyx::Models::Organizations::UserGetGroupsReportParams::accept
|
|
18
|
+
) -> Telnyx::Models::Organizations::UserGetGroupsReportParams::accept
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
?accept: Telnyx::Models::Organizations::UserGetGroupsReportParams::accept,
|
|
22
|
+
?request_options: Telnyx::request_opts
|
|
23
|
+
) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> {
|
|
26
|
+
accept: Telnyx::Models::Organizations::UserGetGroupsReportParams::accept,
|
|
27
|
+
request_options: Telnyx::RequestOptions
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type accept = :"application/json" | :"text/csv"
|
|
31
|
+
|
|
32
|
+
module Accept
|
|
33
|
+
extend Telnyx::Internal::Type::Enum
|
|
34
|
+
|
|
35
|
+
APPLICATION_JSON: :"application/json"
|
|
36
|
+
TEXT_CSV: :"text/csv"
|
|
37
|
+
|
|
38
|
+
def self?.values: -> ::Array[Telnyx::Models::Organizations::UserGetGroupsReportParams::accept]
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
type user_get_groups_report_response =
|
|
5
|
+
{
|
|
6
|
+
data: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
class UserGetGroupsReportResponse < Telnyx::Internal::Type::BaseModel
|
|
10
|
+
attr_reader data: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data]?
|
|
11
|
+
|
|
12
|
+
def data=: (
|
|
13
|
+
::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data]
|
|
14
|
+
) -> ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data]
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
?data: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data]
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
data: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type data =
|
|
25
|
+
{
|
|
26
|
+
id: String,
|
|
27
|
+
created_at: String,
|
|
28
|
+
email: String,
|
|
29
|
+
groups: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::Group],
|
|
30
|
+
record_type: String,
|
|
31
|
+
user_status: Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::user_status,
|
|
32
|
+
last_sign_in_at: String?,
|
|
33
|
+
organization_user_bypasses_sso: bool
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
37
|
+
attr_accessor id: String
|
|
38
|
+
|
|
39
|
+
attr_accessor created_at: String
|
|
40
|
+
|
|
41
|
+
attr_accessor email: String
|
|
42
|
+
|
|
43
|
+
attr_accessor groups: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::Group]
|
|
44
|
+
|
|
45
|
+
attr_accessor record_type: String
|
|
46
|
+
|
|
47
|
+
attr_accessor user_status: Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::user_status
|
|
48
|
+
|
|
49
|
+
attr_accessor last_sign_in_at: String?
|
|
50
|
+
|
|
51
|
+
attr_reader organization_user_bypasses_sso: bool?
|
|
52
|
+
|
|
53
|
+
def organization_user_bypasses_sso=: (bool) -> bool
|
|
54
|
+
|
|
55
|
+
def initialize: (
|
|
56
|
+
id: String,
|
|
57
|
+
created_at: String,
|
|
58
|
+
email: String,
|
|
59
|
+
groups: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::Group],
|
|
60
|
+
record_type: String,
|
|
61
|
+
user_status: Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::user_status,
|
|
62
|
+
?last_sign_in_at: String?,
|
|
63
|
+
?organization_user_bypasses_sso: bool
|
|
64
|
+
) -> void
|
|
65
|
+
|
|
66
|
+
def to_hash: -> {
|
|
67
|
+
id: String,
|
|
68
|
+
created_at: String,
|
|
69
|
+
email: String,
|
|
70
|
+
groups: ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::Group],
|
|
71
|
+
record_type: String,
|
|
72
|
+
user_status: Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::user_status,
|
|
73
|
+
last_sign_in_at: String?,
|
|
74
|
+
organization_user_bypasses_sso: bool
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type group = { id: String, name: String }
|
|
78
|
+
|
|
79
|
+
class Group < Telnyx::Internal::Type::BaseModel
|
|
80
|
+
attr_accessor id: String
|
|
81
|
+
|
|
82
|
+
attr_accessor name: String
|
|
83
|
+
|
|
84
|
+
def initialize: (id: String, name: String) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> { id: String, name: String }
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
type user_status = :enabled | :disabled | :blocked
|
|
90
|
+
|
|
91
|
+
module UserStatus
|
|
92
|
+
extend Telnyx::Internal::Type::Enum
|
|
93
|
+
|
|
94
|
+
ENABLED: :enabled
|
|
95
|
+
DISABLED: :disabled
|
|
96
|
+
BLOCKED: :blocked
|
|
97
|
+
|
|
98
|
+
def self?.values: -> ::Array[Telnyx::Models::Organizations::UserGetGroupsReportResponse::Data::user_status]
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
type user_list_params =
|
|
5
|
+
{
|
|
6
|
+
filter_email: String,
|
|
7
|
+
filter_user_status: Telnyx::Models::Organizations::UserListParams::filter_user_status,
|
|
8
|
+
include_groups: bool,
|
|
9
|
+
page_number: Integer,
|
|
10
|
+
page_size: Integer
|
|
11
|
+
}
|
|
12
|
+
& Telnyx::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class UserListParams < Telnyx::Internal::Type::BaseModel
|
|
15
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_reader filter_email: String?
|
|
19
|
+
|
|
20
|
+
def filter_email=: (String) -> String
|
|
21
|
+
|
|
22
|
+
attr_reader filter_user_status: Telnyx::Models::Organizations::UserListParams::filter_user_status?
|
|
23
|
+
|
|
24
|
+
def filter_user_status=: (
|
|
25
|
+
Telnyx::Models::Organizations::UserListParams::filter_user_status
|
|
26
|
+
) -> Telnyx::Models::Organizations::UserListParams::filter_user_status
|
|
27
|
+
|
|
28
|
+
attr_reader include_groups: bool?
|
|
29
|
+
|
|
30
|
+
def include_groups=: (bool) -> bool
|
|
31
|
+
|
|
32
|
+
attr_reader page_number: Integer?
|
|
33
|
+
|
|
34
|
+
def page_number=: (Integer) -> Integer
|
|
35
|
+
|
|
36
|
+
attr_reader page_size: Integer?
|
|
37
|
+
|
|
38
|
+
def page_size=: (Integer) -> Integer
|
|
39
|
+
|
|
40
|
+
def initialize: (
|
|
41
|
+
?filter_email: String,
|
|
42
|
+
?filter_user_status: Telnyx::Models::Organizations::UserListParams::filter_user_status,
|
|
43
|
+
?include_groups: bool,
|
|
44
|
+
?page_number: Integer,
|
|
45
|
+
?page_size: Integer,
|
|
46
|
+
?request_options: Telnyx::request_opts
|
|
47
|
+
) -> void
|
|
48
|
+
|
|
49
|
+
def to_hash: -> {
|
|
50
|
+
filter_email: String,
|
|
51
|
+
filter_user_status: Telnyx::Models::Organizations::UserListParams::filter_user_status,
|
|
52
|
+
include_groups: bool,
|
|
53
|
+
page_number: Integer,
|
|
54
|
+
page_size: Integer,
|
|
55
|
+
request_options: Telnyx::RequestOptions
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type filter_user_status = :enabled | :disabled | :blocked
|
|
59
|
+
|
|
60
|
+
module FilterUserStatus
|
|
61
|
+
extend Telnyx::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
ENABLED: :enabled
|
|
64
|
+
DISABLED: :disabled
|
|
65
|
+
BLOCKED: :blocked
|
|
66
|
+
|
|
67
|
+
def self?.values: -> ::Array[Telnyx::Models::Organizations::UserListParams::filter_user_status]
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
type user_list_response =
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
created_at: String,
|
|
8
|
+
email: String,
|
|
9
|
+
groups: ::Array[Telnyx::Models::Organizations::UserListResponse::Group],
|
|
10
|
+
last_sign_in_at: String?,
|
|
11
|
+
organization_user_bypasses_sso: bool,
|
|
12
|
+
record_type: String,
|
|
13
|
+
user_status: Telnyx::Models::Organizations::UserListResponse::user_status
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class UserListResponse < Telnyx::Internal::Type::BaseModel
|
|
17
|
+
attr_reader id: String?
|
|
18
|
+
|
|
19
|
+
def id=: (String) -> String
|
|
20
|
+
|
|
21
|
+
attr_reader created_at: String?
|
|
22
|
+
|
|
23
|
+
def created_at=: (String) -> String
|
|
24
|
+
|
|
25
|
+
attr_reader email: String?
|
|
26
|
+
|
|
27
|
+
def email=: (String) -> String
|
|
28
|
+
|
|
29
|
+
attr_reader groups: ::Array[Telnyx::Models::Organizations::UserListResponse::Group]?
|
|
30
|
+
|
|
31
|
+
def groups=: (
|
|
32
|
+
::Array[Telnyx::Models::Organizations::UserListResponse::Group]
|
|
33
|
+
) -> ::Array[Telnyx::Models::Organizations::UserListResponse::Group]
|
|
34
|
+
|
|
35
|
+
attr_accessor last_sign_in_at: String?
|
|
36
|
+
|
|
37
|
+
attr_reader organization_user_bypasses_sso: bool?
|
|
38
|
+
|
|
39
|
+
def organization_user_bypasses_sso=: (bool) -> bool
|
|
40
|
+
|
|
41
|
+
attr_reader record_type: String?
|
|
42
|
+
|
|
43
|
+
def record_type=: (String) -> String
|
|
44
|
+
|
|
45
|
+
attr_reader user_status: Telnyx::Models::Organizations::UserListResponse::user_status?
|
|
46
|
+
|
|
47
|
+
def user_status=: (
|
|
48
|
+
Telnyx::Models::Organizations::UserListResponse::user_status
|
|
49
|
+
) -> Telnyx::Models::Organizations::UserListResponse::user_status
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
?id: String,
|
|
53
|
+
?created_at: String,
|
|
54
|
+
?email: String,
|
|
55
|
+
?groups: ::Array[Telnyx::Models::Organizations::UserListResponse::Group],
|
|
56
|
+
?last_sign_in_at: String?,
|
|
57
|
+
?organization_user_bypasses_sso: bool,
|
|
58
|
+
?record_type: String,
|
|
59
|
+
?user_status: Telnyx::Models::Organizations::UserListResponse::user_status
|
|
60
|
+
) -> void
|
|
61
|
+
|
|
62
|
+
def to_hash: -> {
|
|
63
|
+
id: String,
|
|
64
|
+
created_at: String,
|
|
65
|
+
email: String,
|
|
66
|
+
groups: ::Array[Telnyx::Models::Organizations::UserListResponse::Group],
|
|
67
|
+
last_sign_in_at: String?,
|
|
68
|
+
organization_user_bypasses_sso: bool,
|
|
69
|
+
record_type: String,
|
|
70
|
+
user_status: Telnyx::Models::Organizations::UserListResponse::user_status
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
type group = { id: String, name: String }
|
|
74
|
+
|
|
75
|
+
class Group < Telnyx::Internal::Type::BaseModel
|
|
76
|
+
attr_accessor id: String
|
|
77
|
+
|
|
78
|
+
attr_accessor name: String
|
|
79
|
+
|
|
80
|
+
def initialize: (id: String, name: String) -> void
|
|
81
|
+
|
|
82
|
+
def to_hash: -> { id: String, name: String }
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
type user_status = :enabled | :disabled | :blocked
|
|
86
|
+
|
|
87
|
+
module UserStatus
|
|
88
|
+
extend Telnyx::Internal::Type::Enum
|
|
89
|
+
|
|
90
|
+
ENABLED: :enabled
|
|
91
|
+
DISABLED: :disabled
|
|
92
|
+
BLOCKED: :blocked
|
|
93
|
+
|
|
94
|
+
def self?.values: -> ::Array[Telnyx::Models::Organizations::UserListResponse::user_status]
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
type user_retrieve_params =
|
|
5
|
+
{ include_groups: bool } & Telnyx::Internal::Type::request_parameters
|
|
6
|
+
|
|
7
|
+
class UserRetrieveParams < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
attr_reader include_groups: bool?
|
|
12
|
+
|
|
13
|
+
def include_groups=: (bool) -> bool
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
?include_groups: bool,
|
|
17
|
+
?request_options: Telnyx::request_opts
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> {
|
|
21
|
+
include_groups: bool,
|
|
22
|
+
request_options: Telnyx::RequestOptions
|
|
23
|
+
}
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
type user_retrieve_response =
|
|
5
|
+
{ data: Telnyx::Models::Organizations::UserRetrieveResponse::Data }
|
|
6
|
+
|
|
7
|
+
class UserRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
|
8
|
+
attr_reader data: Telnyx::Models::Organizations::UserRetrieveResponse::Data?
|
|
9
|
+
|
|
10
|
+
def data=: (
|
|
11
|
+
Telnyx::Models::Organizations::UserRetrieveResponse::Data
|
|
12
|
+
) -> Telnyx::Models::Organizations::UserRetrieveResponse::Data
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
?data: Telnyx::Models::Organizations::UserRetrieveResponse::Data
|
|
16
|
+
) -> void
|
|
17
|
+
|
|
18
|
+
def to_hash: -> {
|
|
19
|
+
data: Telnyx::Models::Organizations::UserRetrieveResponse::Data
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
type data =
|
|
23
|
+
{
|
|
24
|
+
id: String,
|
|
25
|
+
created_at: String,
|
|
26
|
+
email: String,
|
|
27
|
+
groups: ::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group],
|
|
28
|
+
last_sign_in_at: String?,
|
|
29
|
+
organization_user_bypasses_sso: bool,
|
|
30
|
+
record_type: String,
|
|
31
|
+
user_status: Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class Data < Telnyx::Internal::Type::BaseModel
|
|
35
|
+
attr_reader id: String?
|
|
36
|
+
|
|
37
|
+
def id=: (String) -> String
|
|
38
|
+
|
|
39
|
+
attr_reader created_at: String?
|
|
40
|
+
|
|
41
|
+
def created_at=: (String) -> String
|
|
42
|
+
|
|
43
|
+
attr_reader email: String?
|
|
44
|
+
|
|
45
|
+
def email=: (String) -> String
|
|
46
|
+
|
|
47
|
+
attr_reader groups: ::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group]?
|
|
48
|
+
|
|
49
|
+
def groups=: (
|
|
50
|
+
::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group]
|
|
51
|
+
) -> ::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group]
|
|
52
|
+
|
|
53
|
+
attr_accessor last_sign_in_at: String?
|
|
54
|
+
|
|
55
|
+
attr_reader organization_user_bypasses_sso: bool?
|
|
56
|
+
|
|
57
|
+
def organization_user_bypasses_sso=: (bool) -> bool
|
|
58
|
+
|
|
59
|
+
attr_reader record_type: String?
|
|
60
|
+
|
|
61
|
+
def record_type=: (String) -> String
|
|
62
|
+
|
|
63
|
+
attr_reader user_status: Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status?
|
|
64
|
+
|
|
65
|
+
def user_status=: (
|
|
66
|
+
Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status
|
|
67
|
+
) -> Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status
|
|
68
|
+
|
|
69
|
+
def initialize: (
|
|
70
|
+
?id: String,
|
|
71
|
+
?created_at: String,
|
|
72
|
+
?email: String,
|
|
73
|
+
?groups: ::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group],
|
|
74
|
+
?last_sign_in_at: String?,
|
|
75
|
+
?organization_user_bypasses_sso: bool,
|
|
76
|
+
?record_type: String,
|
|
77
|
+
?user_status: Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status
|
|
78
|
+
) -> void
|
|
79
|
+
|
|
80
|
+
def to_hash: -> {
|
|
81
|
+
id: String,
|
|
82
|
+
created_at: String,
|
|
83
|
+
email: String,
|
|
84
|
+
groups: ::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::Group],
|
|
85
|
+
last_sign_in_at: String?,
|
|
86
|
+
organization_user_bypasses_sso: bool,
|
|
87
|
+
record_type: String,
|
|
88
|
+
user_status: Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
type group = { id: String, name: String }
|
|
92
|
+
|
|
93
|
+
class Group < Telnyx::Internal::Type::BaseModel
|
|
94
|
+
attr_accessor id: String
|
|
95
|
+
|
|
96
|
+
attr_accessor name: String
|
|
97
|
+
|
|
98
|
+
def initialize: (id: String, name: String) -> void
|
|
99
|
+
|
|
100
|
+
def to_hash: -> { id: String, name: String }
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
type user_status = :enabled | :disabled | :blocked
|
|
104
|
+
|
|
105
|
+
module UserStatus
|
|
106
|
+
extend Telnyx::Internal::Type::Enum
|
|
107
|
+
|
|
108
|
+
ENABLED: :enabled
|
|
109
|
+
DISABLED: :disabled
|
|
110
|
+
BLOCKED: :blocked
|
|
111
|
+
|
|
112
|
+
def self?.values: -> ::Array[Telnyx::Models::Organizations::UserRetrieveResponse::Data::user_status]
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module Telnyx
|
|
2
|
+
module Models
|
|
3
|
+
module Organizations
|
|
4
|
+
module Users
|
|
5
|
+
type action_remove_params =
|
|
6
|
+
{ } & Telnyx::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class ActionRemoveParams < Telnyx::Internal::Type::BaseModel
|
|
9
|
+
extend Telnyx::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Telnyx::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
def initialize: (?request_options: Telnyx::request_opts) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { request_options: Telnyx::RequestOptions }
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|