telnyx 4.0.0 → 4.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 +30 -0
- data/README.md +1 -1
- data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
- data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
- data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
- data/lib/telnyx/models/calls/action_start_transcription_params.rb +3 -3
- data/lib/telnyx/models/calls/transcription_start_request.rb +448 -10
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
- data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
- data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
- data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
- data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
- data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
- data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
- data/lib/telnyx/models/messaging_profile.rb +9 -1
- data/lib/telnyx/models/messaging_profile_create_params.rb +9 -1
- data/lib/telnyx/models/messaging_profile_update_params.rb +9 -1
- data/lib/telnyx/models/network_list_interfaces_response.rb +114 -0
- data/lib/telnyx/models/oauth_client.rb +173 -0
- data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
- data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
- data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
- data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
- data/lib/telnyx/models/oauth_grant.rb +68 -0
- data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
- data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
- data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
- data/lib/telnyx/models/public_internet_gateway_create_response.rb +115 -0
- data/lib/telnyx/models/public_internet_gateway_delete_response.rb +115 -0
- data/lib/telnyx/models/public_internet_gateway_list_response.rb +114 -0
- data/lib/telnyx/models/public_internet_gateway_retrieve_response.rb +115 -0
- data/lib/telnyx/models/texml/accounts/call_calls_params.rb +33 -1
- data/lib/telnyx/models/texml/accounts/conferences/participant_participants_params.rb +33 -1
- data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
- data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
- data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
- data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
- data/lib/telnyx/models/virtual_cross_connect_create_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_delete_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_list_response.rb +274 -0
- data/lib/telnyx/models/virtual_cross_connect_retrieve_response.rb +275 -0
- data/lib/telnyx/models/virtual_cross_connect_update_response.rb +275 -0
- data/lib/telnyx/models/wireguard_interface_create_response.rb +131 -0
- data/lib/telnyx/models/wireguard_interface_delete_response.rb +131 -0
- data/lib/telnyx/models/wireguard_interface_list_response.rb +130 -0
- data/lib/telnyx/models/wireguard_interface_retrieve_response.rb +131 -0
- data/lib/telnyx/models/wireguard_peer_create_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_delete_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_list_response.rb +77 -0
- data/lib/telnyx/models/wireguard_peer_retrieve_response.rb +78 -0
- data/lib/telnyx/models/wireguard_peer_update_response.rb +78 -0
- data/lib/telnyx/models.rb +7 -1
- data/lib/telnyx/resources/advanced_orders.rb +26 -26
- data/lib/telnyx/resources/calls/actions.rb +2 -2
- data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
- data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
- data/lib/telnyx/resources/messaging_profiles.rb +6 -2
- data/lib/telnyx/resources/texml/accounts/calls.rb +3 -1
- data/lib/telnyx/resources/texml/accounts/conferences/participants.rb +3 -1
- data/lib/telnyx/version.rb +1 -1
- data/lib/telnyx.rb +11 -2
- data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
- data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
- data/rbi/telnyx/models/calls/action_start_transcription_params.rbi +6 -6
- data/rbi/telnyx/models/calls/transcription_start_request.rbi +1488 -15
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
- data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
- data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
- data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
- data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
- data/rbi/telnyx/models/messaging_profile.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile_create_params.rbi +11 -0
- data/rbi/telnyx/models/messaging_profile_update_params.rbi +11 -0
- data/rbi/telnyx/models/network_list_interfaces_response.rbi +202 -0
- data/rbi/telnyx/models/oauth_client.rbi +250 -0
- data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
- data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
- data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
- data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
- data/rbi/telnyx/models/oauth_grant.rbi +95 -0
- data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
- data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
- data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
- data/rbi/telnyx/models/public_internet_gateway_create_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_delete_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_list_response.rbi +202 -0
- data/rbi/telnyx/models/public_internet_gateway_retrieve_response.rbi +202 -0
- data/rbi/telnyx/models/texml/accounts/call_calls_params.rbi +65 -0
- data/rbi/telnyx/models/texml/accounts/conferences/participant_participants_params.rbi +67 -0
- data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
- data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
- data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
- data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
- data/rbi/telnyx/models/virtual_cross_connect_create_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_delete_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_list_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_retrieve_response.rbi +444 -0
- data/rbi/telnyx/models/virtual_cross_connect_update_response.rbi +444 -0
- data/rbi/telnyx/models/wireguard_interface_create_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_delete_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_list_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_interface_retrieve_response.rbi +224 -0
- data/rbi/telnyx/models/wireguard_peer_create_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_delete_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_list_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_retrieve_response.rbi +125 -0
- data/rbi/telnyx/models/wireguard_peer_update_response.rbi +125 -0
- data/rbi/telnyx/models.rbi +9 -1
- data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
- data/rbi/telnyx/resources/calls/actions.rbi +7 -3
- data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
- data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
- data/rbi/telnyx/resources/messaging_profiles.rbi +6 -0
- data/rbi/telnyx/resources/texml/accounts/calls.rbi +7 -0
- data/rbi/telnyx/resources/texml/accounts/conferences/participants.rbi +7 -0
- data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
- data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
- data/sig/telnyx/models/calls/action_start_transcription_params.rbs +5 -5
- data/sig/telnyx/models/calls/transcription_start_request.rbs +594 -11
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
- data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
- data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
- data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
- data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
- 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/network_list_interfaces_response.rbs +110 -0
- data/sig/telnyx/models/oauth_client.rbs +137 -0
- data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
- data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
- data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
- data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
- data/sig/telnyx/models/oauth_grant.rbs +55 -0
- data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
- data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
- data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
- data/sig/telnyx/models/public_internet_gateway_create_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_delete_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_list_response.rbs +110 -0
- data/sig/telnyx/models/public_internet_gateway_retrieve_response.rbs +110 -0
- data/sig/telnyx/models/texml/accounts/call_calls_params.rbs +21 -0
- data/sig/telnyx/models/texml/accounts/conferences/participant_participants_params.rbs +21 -0
- data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
- data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
- data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
- data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
- data/sig/telnyx/models/virtual_cross_connect_create_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_delete_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_list_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_retrieve_response.rbs +219 -0
- data/sig/telnyx/models/virtual_cross_connect_update_response.rbs +219 -0
- data/sig/telnyx/models/wireguard_interface_create_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_delete_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_list_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_interface_retrieve_response.rbs +124 -0
- data/sig/telnyx/models/wireguard_peer_create_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_delete_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_list_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_retrieve_response.rbs +68 -0
- data/sig/telnyx/models/wireguard_peer_update_response.rbs +68 -0
- data/sig/telnyx/models.rbs +7 -1
- data/sig/telnyx/resources/advanced_orders.rbs +6 -6
- data/sig/telnyx/resources/calls/actions.rbs +1 -1
- data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
- data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
- data/sig/telnyx/resources/messaging_profiles.rbs +2 -0
- data/sig/telnyx/resources/texml/accounts/calls.rbs +1 -0
- data/sig/telnyx/resources/texml/accounts/conferences/participants.rbs +1 -0
- metadata +35 -8
- data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -6,180 +6,11 @@ module Telnyx
|
|
6
6
|
class OAuthClientRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
7
7
|
# @!attribute data
|
8
8
|
#
|
9
|
-
# @return [Telnyx::Models::
|
10
|
-
optional :data, -> { Telnyx::
|
9
|
+
# @return [Telnyx::Models::OAuthClient, nil]
|
10
|
+
optional :data, -> { Telnyx::OAuthClient }
|
11
11
|
|
12
12
|
# @!method initialize(data: nil)
|
13
|
-
# @param data [Telnyx::Models::
|
14
|
-
|
15
|
-
# @see Telnyx::Models::OAuthClientRetrieveResponse#data
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
17
|
-
# @!attribute client_id
|
18
|
-
# OAuth client identifier
|
19
|
-
#
|
20
|
-
# @return [String]
|
21
|
-
required :client_id, String
|
22
|
-
|
23
|
-
# @!attribute client_type
|
24
|
-
# OAuth client type
|
25
|
-
#
|
26
|
-
# @return [Symbol, Telnyx::Models::OAuthClientRetrieveResponse::Data::ClientType]
|
27
|
-
required :client_type, enum: -> { Telnyx::Models::OAuthClientRetrieveResponse::Data::ClientType }
|
28
|
-
|
29
|
-
# @!attribute created_at
|
30
|
-
# Timestamp when the client was created
|
31
|
-
#
|
32
|
-
# @return [Time]
|
33
|
-
required :created_at, Time
|
34
|
-
|
35
|
-
# @!attribute name
|
36
|
-
# Human-readable name for the OAuth client
|
37
|
-
#
|
38
|
-
# @return [String]
|
39
|
-
required :name, String
|
40
|
-
|
41
|
-
# @!attribute org_id
|
42
|
-
# Organization ID that owns this OAuth client
|
43
|
-
#
|
44
|
-
# @return [String]
|
45
|
-
required :org_id, String
|
46
|
-
|
47
|
-
# @!attribute record_type
|
48
|
-
# Record type identifier
|
49
|
-
#
|
50
|
-
# @return [Symbol, Telnyx::Models::OAuthClientRetrieveResponse::Data::RecordType]
|
51
|
-
required :record_type, enum: -> { Telnyx::Models::OAuthClientRetrieveResponse::Data::RecordType }
|
52
|
-
|
53
|
-
# @!attribute require_pkce
|
54
|
-
# Whether PKCE (Proof Key for Code Exchange) is required for this client
|
55
|
-
#
|
56
|
-
# @return [Boolean]
|
57
|
-
required :require_pkce, Telnyx::Internal::Type::Boolean
|
58
|
-
|
59
|
-
# @!attribute updated_at
|
60
|
-
# Timestamp when the client was last updated
|
61
|
-
#
|
62
|
-
# @return [Time]
|
63
|
-
required :updated_at, Time
|
64
|
-
|
65
|
-
# @!attribute user_id
|
66
|
-
# User ID that created this OAuth client
|
67
|
-
#
|
68
|
-
# @return [String]
|
69
|
-
required :user_id, String
|
70
|
-
|
71
|
-
# @!attribute allowed_grant_types
|
72
|
-
# List of allowed OAuth grant types
|
73
|
-
#
|
74
|
-
# @return [Array<Symbol, Telnyx::Models::OAuthClientRetrieveResponse::Data::AllowedGrantType>, nil]
|
75
|
-
optional :allowed_grant_types,
|
76
|
-
-> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::Models::OAuthClientRetrieveResponse::Data::AllowedGrantType] }
|
77
|
-
|
78
|
-
# @!attribute allowed_scopes
|
79
|
-
# List of allowed OAuth scopes
|
80
|
-
#
|
81
|
-
# @return [Array<String>, nil]
|
82
|
-
optional :allowed_scopes, Telnyx::Internal::Type::ArrayOf[String]
|
83
|
-
|
84
|
-
# @!attribute client_secret
|
85
|
-
# Client secret (only included when available, for confidential clients)
|
86
|
-
#
|
87
|
-
# @return [String, nil]
|
88
|
-
optional :client_secret, String, nil?: true
|
89
|
-
|
90
|
-
# @!attribute logo_uri
|
91
|
-
# URL of the client logo
|
92
|
-
#
|
93
|
-
# @return [String, nil]
|
94
|
-
optional :logo_uri, String, nil?: true
|
95
|
-
|
96
|
-
# @!attribute policy_uri
|
97
|
-
# URL of the client's privacy policy
|
98
|
-
#
|
99
|
-
# @return [String, nil]
|
100
|
-
optional :policy_uri, String, nil?: true
|
101
|
-
|
102
|
-
# @!attribute redirect_uris
|
103
|
-
# List of allowed redirect URIs
|
104
|
-
#
|
105
|
-
# @return [Array<String>, nil]
|
106
|
-
optional :redirect_uris, Telnyx::Internal::Type::ArrayOf[String]
|
107
|
-
|
108
|
-
# @!attribute tos_uri
|
109
|
-
# URL of the client's terms of service
|
110
|
-
#
|
111
|
-
# @return [String, nil]
|
112
|
-
optional :tos_uri, String, nil?: true
|
113
|
-
|
114
|
-
# @!method initialize(client_id:, client_type:, created_at:, name:, org_id:, record_type:, require_pkce:, updated_at:, user_id:, allowed_grant_types: nil, allowed_scopes: nil, client_secret: nil, logo_uri: nil, policy_uri: nil, redirect_uris: nil, tos_uri: nil)
|
115
|
-
# @param client_id [String] OAuth client identifier
|
116
|
-
#
|
117
|
-
# @param client_type [Symbol, Telnyx::Models::OAuthClientRetrieveResponse::Data::ClientType] OAuth client type
|
118
|
-
#
|
119
|
-
# @param created_at [Time] Timestamp when the client was created
|
120
|
-
#
|
121
|
-
# @param name [String] Human-readable name for the OAuth client
|
122
|
-
#
|
123
|
-
# @param org_id [String] Organization ID that owns this OAuth client
|
124
|
-
#
|
125
|
-
# @param record_type [Symbol, Telnyx::Models::OAuthClientRetrieveResponse::Data::RecordType] Record type identifier
|
126
|
-
#
|
127
|
-
# @param require_pkce [Boolean] Whether PKCE (Proof Key for Code Exchange) is required for this client
|
128
|
-
#
|
129
|
-
# @param updated_at [Time] Timestamp when the client was last updated
|
130
|
-
#
|
131
|
-
# @param user_id [String] User ID that created this OAuth client
|
132
|
-
#
|
133
|
-
# @param allowed_grant_types [Array<Symbol, Telnyx::Models::OAuthClientRetrieveResponse::Data::AllowedGrantType>] List of allowed OAuth grant types
|
134
|
-
#
|
135
|
-
# @param allowed_scopes [Array<String>] List of allowed OAuth scopes
|
136
|
-
#
|
137
|
-
# @param client_secret [String, nil] Client secret (only included when available, for confidential clients)
|
138
|
-
#
|
139
|
-
# @param logo_uri [String, nil] URL of the client logo
|
140
|
-
#
|
141
|
-
# @param policy_uri [String, nil] URL of the client's privacy policy
|
142
|
-
#
|
143
|
-
# @param redirect_uris [Array<String>] List of allowed redirect URIs
|
144
|
-
#
|
145
|
-
# @param tos_uri [String, nil] URL of the client's terms of service
|
146
|
-
|
147
|
-
# OAuth client type
|
148
|
-
#
|
149
|
-
# @see Telnyx::Models::OAuthClientRetrieveResponse::Data#client_type
|
150
|
-
module ClientType
|
151
|
-
extend Telnyx::Internal::Type::Enum
|
152
|
-
|
153
|
-
PUBLIC = :public
|
154
|
-
CONFIDENTIAL = :confidential
|
155
|
-
|
156
|
-
# @!method self.values
|
157
|
-
# @return [Array<Symbol>]
|
158
|
-
end
|
159
|
-
|
160
|
-
# Record type identifier
|
161
|
-
#
|
162
|
-
# @see Telnyx::Models::OAuthClientRetrieveResponse::Data#record_type
|
163
|
-
module RecordType
|
164
|
-
extend Telnyx::Internal::Type::Enum
|
165
|
-
|
166
|
-
OAUTH_CLIENT = :oauth_client
|
167
|
-
|
168
|
-
# @!method self.values
|
169
|
-
# @return [Array<Symbol>]
|
170
|
-
end
|
171
|
-
|
172
|
-
module AllowedGrantType
|
173
|
-
extend Telnyx::Internal::Type::Enum
|
174
|
-
|
175
|
-
CLIENT_CREDENTIALS = :client_credentials
|
176
|
-
AUTHORIZATION_CODE = :authorization_code
|
177
|
-
REFRESH_TOKEN = :refresh_token
|
178
|
-
|
179
|
-
# @!method self.values
|
180
|
-
# @return [Array<Symbol>]
|
181
|
-
end
|
182
|
-
end
|
13
|
+
# @param data [Telnyx::Models::OAuthClient]
|
183
14
|
end
|
184
15
|
end
|
185
16
|
end
|
@@ -6,180 +6,11 @@ module Telnyx
|
|
6
6
|
class OAuthClientUpdateResponse < Telnyx::Internal::Type::BaseModel
|
7
7
|
# @!attribute data
|
8
8
|
#
|
9
|
-
# @return [Telnyx::Models::
|
10
|
-
optional :data, -> { Telnyx::
|
9
|
+
# @return [Telnyx::Models::OAuthClient, nil]
|
10
|
+
optional :data, -> { Telnyx::OAuthClient }
|
11
11
|
|
12
12
|
# @!method initialize(data: nil)
|
13
|
-
# @param data [Telnyx::Models::
|
14
|
-
|
15
|
-
# @see Telnyx::Models::OAuthClientUpdateResponse#data
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
17
|
-
# @!attribute client_id
|
18
|
-
# OAuth client identifier
|
19
|
-
#
|
20
|
-
# @return [String]
|
21
|
-
required :client_id, String
|
22
|
-
|
23
|
-
# @!attribute client_type
|
24
|
-
# OAuth client type
|
25
|
-
#
|
26
|
-
# @return [Symbol, Telnyx::Models::OAuthClientUpdateResponse::Data::ClientType]
|
27
|
-
required :client_type, enum: -> { Telnyx::Models::OAuthClientUpdateResponse::Data::ClientType }
|
28
|
-
|
29
|
-
# @!attribute created_at
|
30
|
-
# Timestamp when the client was created
|
31
|
-
#
|
32
|
-
# @return [Time]
|
33
|
-
required :created_at, Time
|
34
|
-
|
35
|
-
# @!attribute name
|
36
|
-
# Human-readable name for the OAuth client
|
37
|
-
#
|
38
|
-
# @return [String]
|
39
|
-
required :name, String
|
40
|
-
|
41
|
-
# @!attribute org_id
|
42
|
-
# Organization ID that owns this OAuth client
|
43
|
-
#
|
44
|
-
# @return [String]
|
45
|
-
required :org_id, String
|
46
|
-
|
47
|
-
# @!attribute record_type
|
48
|
-
# Record type identifier
|
49
|
-
#
|
50
|
-
# @return [Symbol, Telnyx::Models::OAuthClientUpdateResponse::Data::RecordType]
|
51
|
-
required :record_type, enum: -> { Telnyx::Models::OAuthClientUpdateResponse::Data::RecordType }
|
52
|
-
|
53
|
-
# @!attribute require_pkce
|
54
|
-
# Whether PKCE (Proof Key for Code Exchange) is required for this client
|
55
|
-
#
|
56
|
-
# @return [Boolean]
|
57
|
-
required :require_pkce, Telnyx::Internal::Type::Boolean
|
58
|
-
|
59
|
-
# @!attribute updated_at
|
60
|
-
# Timestamp when the client was last updated
|
61
|
-
#
|
62
|
-
# @return [Time]
|
63
|
-
required :updated_at, Time
|
64
|
-
|
65
|
-
# @!attribute user_id
|
66
|
-
# User ID that created this OAuth client
|
67
|
-
#
|
68
|
-
# @return [String]
|
69
|
-
required :user_id, String
|
70
|
-
|
71
|
-
# @!attribute allowed_grant_types
|
72
|
-
# List of allowed OAuth grant types
|
73
|
-
#
|
74
|
-
# @return [Array<Symbol, Telnyx::Models::OAuthClientUpdateResponse::Data::AllowedGrantType>, nil]
|
75
|
-
optional :allowed_grant_types,
|
76
|
-
-> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::Models::OAuthClientUpdateResponse::Data::AllowedGrantType] }
|
77
|
-
|
78
|
-
# @!attribute allowed_scopes
|
79
|
-
# List of allowed OAuth scopes
|
80
|
-
#
|
81
|
-
# @return [Array<String>, nil]
|
82
|
-
optional :allowed_scopes, Telnyx::Internal::Type::ArrayOf[String]
|
83
|
-
|
84
|
-
# @!attribute client_secret
|
85
|
-
# Client secret (only included when available, for confidential clients)
|
86
|
-
#
|
87
|
-
# @return [String, nil]
|
88
|
-
optional :client_secret, String, nil?: true
|
89
|
-
|
90
|
-
# @!attribute logo_uri
|
91
|
-
# URL of the client logo
|
92
|
-
#
|
93
|
-
# @return [String, nil]
|
94
|
-
optional :logo_uri, String, nil?: true
|
95
|
-
|
96
|
-
# @!attribute policy_uri
|
97
|
-
# URL of the client's privacy policy
|
98
|
-
#
|
99
|
-
# @return [String, nil]
|
100
|
-
optional :policy_uri, String, nil?: true
|
101
|
-
|
102
|
-
# @!attribute redirect_uris
|
103
|
-
# List of allowed redirect URIs
|
104
|
-
#
|
105
|
-
# @return [Array<String>, nil]
|
106
|
-
optional :redirect_uris, Telnyx::Internal::Type::ArrayOf[String]
|
107
|
-
|
108
|
-
# @!attribute tos_uri
|
109
|
-
# URL of the client's terms of service
|
110
|
-
#
|
111
|
-
# @return [String, nil]
|
112
|
-
optional :tos_uri, String, nil?: true
|
113
|
-
|
114
|
-
# @!method initialize(client_id:, client_type:, created_at:, name:, org_id:, record_type:, require_pkce:, updated_at:, user_id:, allowed_grant_types: nil, allowed_scopes: nil, client_secret: nil, logo_uri: nil, policy_uri: nil, redirect_uris: nil, tos_uri: nil)
|
115
|
-
# @param client_id [String] OAuth client identifier
|
116
|
-
#
|
117
|
-
# @param client_type [Symbol, Telnyx::Models::OAuthClientUpdateResponse::Data::ClientType] OAuth client type
|
118
|
-
#
|
119
|
-
# @param created_at [Time] Timestamp when the client was created
|
120
|
-
#
|
121
|
-
# @param name [String] Human-readable name for the OAuth client
|
122
|
-
#
|
123
|
-
# @param org_id [String] Organization ID that owns this OAuth client
|
124
|
-
#
|
125
|
-
# @param record_type [Symbol, Telnyx::Models::OAuthClientUpdateResponse::Data::RecordType] Record type identifier
|
126
|
-
#
|
127
|
-
# @param require_pkce [Boolean] Whether PKCE (Proof Key for Code Exchange) is required for this client
|
128
|
-
#
|
129
|
-
# @param updated_at [Time] Timestamp when the client was last updated
|
130
|
-
#
|
131
|
-
# @param user_id [String] User ID that created this OAuth client
|
132
|
-
#
|
133
|
-
# @param allowed_grant_types [Array<Symbol, Telnyx::Models::OAuthClientUpdateResponse::Data::AllowedGrantType>] List of allowed OAuth grant types
|
134
|
-
#
|
135
|
-
# @param allowed_scopes [Array<String>] List of allowed OAuth scopes
|
136
|
-
#
|
137
|
-
# @param client_secret [String, nil] Client secret (only included when available, for confidential clients)
|
138
|
-
#
|
139
|
-
# @param logo_uri [String, nil] URL of the client logo
|
140
|
-
#
|
141
|
-
# @param policy_uri [String, nil] URL of the client's privacy policy
|
142
|
-
#
|
143
|
-
# @param redirect_uris [Array<String>] List of allowed redirect URIs
|
144
|
-
#
|
145
|
-
# @param tos_uri [String, nil] URL of the client's terms of service
|
146
|
-
|
147
|
-
# OAuth client type
|
148
|
-
#
|
149
|
-
# @see Telnyx::Models::OAuthClientUpdateResponse::Data#client_type
|
150
|
-
module ClientType
|
151
|
-
extend Telnyx::Internal::Type::Enum
|
152
|
-
|
153
|
-
PUBLIC = :public
|
154
|
-
CONFIDENTIAL = :confidential
|
155
|
-
|
156
|
-
# @!method self.values
|
157
|
-
# @return [Array<Symbol>]
|
158
|
-
end
|
159
|
-
|
160
|
-
# Record type identifier
|
161
|
-
#
|
162
|
-
# @see Telnyx::Models::OAuthClientUpdateResponse::Data#record_type
|
163
|
-
module RecordType
|
164
|
-
extend Telnyx::Internal::Type::Enum
|
165
|
-
|
166
|
-
OAUTH_CLIENT = :oauth_client
|
167
|
-
|
168
|
-
# @!method self.values
|
169
|
-
# @return [Array<Symbol>]
|
170
|
-
end
|
171
|
-
|
172
|
-
module AllowedGrantType
|
173
|
-
extend Telnyx::Internal::Type::Enum
|
174
|
-
|
175
|
-
CLIENT_CREDENTIALS = :client_credentials
|
176
|
-
AUTHORIZATION_CODE = :authorization_code
|
177
|
-
REFRESH_TOKEN = :refresh_token
|
178
|
-
|
179
|
-
# @!method self.values
|
180
|
-
# @return [Array<Symbol>]
|
181
|
-
end
|
182
|
-
end
|
13
|
+
# @param data [Telnyx::Models::OAuthClient]
|
183
14
|
end
|
184
15
|
end
|
185
16
|
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telnyx
|
4
|
+
module Models
|
5
|
+
class OAuthGrant < Telnyx::Internal::Type::BaseModel
|
6
|
+
# @!attribute id
|
7
|
+
# Unique identifier for the OAuth grant
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :id, String
|
11
|
+
|
12
|
+
# @!attribute client_id
|
13
|
+
# OAuth client identifier
|
14
|
+
#
|
15
|
+
# @return [String]
|
16
|
+
required :client_id, String
|
17
|
+
|
18
|
+
# @!attribute created_at
|
19
|
+
# Timestamp when the grant was created
|
20
|
+
#
|
21
|
+
# @return [Time]
|
22
|
+
required :created_at, Time
|
23
|
+
|
24
|
+
# @!attribute record_type
|
25
|
+
# Record type identifier
|
26
|
+
#
|
27
|
+
# @return [Symbol, Telnyx::Models::OAuthGrant::RecordType]
|
28
|
+
required :record_type, enum: -> { Telnyx::OAuthGrant::RecordType }
|
29
|
+
|
30
|
+
# @!attribute scopes
|
31
|
+
# List of granted OAuth scopes
|
32
|
+
#
|
33
|
+
# @return [Array<String>]
|
34
|
+
required :scopes, Telnyx::Internal::Type::ArrayOf[String]
|
35
|
+
|
36
|
+
# @!attribute last_used_at
|
37
|
+
# Timestamp when the grant was last used
|
38
|
+
#
|
39
|
+
# @return [Time, nil]
|
40
|
+
optional :last_used_at, Time, nil?: true
|
41
|
+
|
42
|
+
# @!method initialize(id:, client_id:, created_at:, record_type:, scopes:, last_used_at: nil)
|
43
|
+
# @param id [String] Unique identifier for the OAuth grant
|
44
|
+
#
|
45
|
+
# @param client_id [String] OAuth client identifier
|
46
|
+
#
|
47
|
+
# @param created_at [Time] Timestamp when the grant was created
|
48
|
+
#
|
49
|
+
# @param record_type [Symbol, Telnyx::Models::OAuthGrant::RecordType] Record type identifier
|
50
|
+
#
|
51
|
+
# @param scopes [Array<String>] List of granted OAuth scopes
|
52
|
+
#
|
53
|
+
# @param last_used_at [Time, nil] Timestamp when the grant was last used
|
54
|
+
|
55
|
+
# Record type identifier
|
56
|
+
#
|
57
|
+
# @see Telnyx::Models::OAuthGrant#record_type
|
58
|
+
module RecordType
|
59
|
+
extend Telnyx::Internal::Type::Enum
|
60
|
+
|
61
|
+
OAUTH_GRANT = :oauth_grant
|
62
|
+
|
63
|
+
# @!method self.values
|
64
|
+
# @return [Array<Symbol>]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -6,75 +6,11 @@ module Telnyx
|
|
6
6
|
class OAuthGrantDeleteResponse < Telnyx::Internal::Type::BaseModel
|
7
7
|
# @!attribute data
|
8
8
|
#
|
9
|
-
# @return [Telnyx::Models::
|
10
|
-
optional :data, -> { Telnyx::
|
9
|
+
# @return [Telnyx::Models::OAuthGrant, nil]
|
10
|
+
optional :data, -> { Telnyx::OAuthGrant }
|
11
11
|
|
12
12
|
# @!method initialize(data: nil)
|
13
|
-
# @param data [Telnyx::Models::
|
14
|
-
|
15
|
-
# @see Telnyx::Models::OAuthGrantDeleteResponse#data
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
17
|
-
# @!attribute id
|
18
|
-
# Unique identifier for the OAuth grant
|
19
|
-
#
|
20
|
-
# @return [String]
|
21
|
-
required :id, String
|
22
|
-
|
23
|
-
# @!attribute client_id
|
24
|
-
# OAuth client identifier
|
25
|
-
#
|
26
|
-
# @return [String]
|
27
|
-
required :client_id, String
|
28
|
-
|
29
|
-
# @!attribute created_at
|
30
|
-
# Timestamp when the grant was created
|
31
|
-
#
|
32
|
-
# @return [Time]
|
33
|
-
required :created_at, Time
|
34
|
-
|
35
|
-
# @!attribute record_type
|
36
|
-
# Record type identifier
|
37
|
-
#
|
38
|
-
# @return [Symbol, Telnyx::Models::OAuthGrantDeleteResponse::Data::RecordType]
|
39
|
-
required :record_type, enum: -> { Telnyx::Models::OAuthGrantDeleteResponse::Data::RecordType }
|
40
|
-
|
41
|
-
# @!attribute scopes
|
42
|
-
# List of granted OAuth scopes
|
43
|
-
#
|
44
|
-
# @return [Array<String>]
|
45
|
-
required :scopes, Telnyx::Internal::Type::ArrayOf[String]
|
46
|
-
|
47
|
-
# @!attribute last_used_at
|
48
|
-
# Timestamp when the grant was last used
|
49
|
-
#
|
50
|
-
# @return [Time, nil]
|
51
|
-
optional :last_used_at, Time, nil?: true
|
52
|
-
|
53
|
-
# @!method initialize(id:, client_id:, created_at:, record_type:, scopes:, last_used_at: nil)
|
54
|
-
# @param id [String] Unique identifier for the OAuth grant
|
55
|
-
#
|
56
|
-
# @param client_id [String] OAuth client identifier
|
57
|
-
#
|
58
|
-
# @param created_at [Time] Timestamp when the grant was created
|
59
|
-
#
|
60
|
-
# @param record_type [Symbol, Telnyx::Models::OAuthGrantDeleteResponse::Data::RecordType] Record type identifier
|
61
|
-
#
|
62
|
-
# @param scopes [Array<String>] List of granted OAuth scopes
|
63
|
-
#
|
64
|
-
# @param last_used_at [Time, nil] Timestamp when the grant was last used
|
65
|
-
|
66
|
-
# Record type identifier
|
67
|
-
#
|
68
|
-
# @see Telnyx::Models::OAuthGrantDeleteResponse::Data#record_type
|
69
|
-
module RecordType
|
70
|
-
extend Telnyx::Internal::Type::Enum
|
71
|
-
|
72
|
-
OAUTH_GRANT = :oauth_grant
|
73
|
-
|
74
|
-
# @!method self.values
|
75
|
-
# @return [Array<Symbol>]
|
76
|
-
end
|
77
|
-
end
|
13
|
+
# @param data [Telnyx::Models::OAuthGrant]
|
78
14
|
end
|
79
15
|
end
|
80
16
|
end
|
@@ -6,8 +6,8 @@ module Telnyx
|
|
6
6
|
class OAuthGrantListResponse < Telnyx::Internal::Type::BaseModel
|
7
7
|
# @!attribute data
|
8
8
|
#
|
9
|
-
# @return [Array<Telnyx::Models::
|
10
|
-
optional :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::
|
9
|
+
# @return [Array<Telnyx::Models::OAuthGrant>, nil]
|
10
|
+
optional :data, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::OAuthGrant] }
|
11
11
|
|
12
12
|
# @!attribute meta
|
13
13
|
#
|
@@ -15,72 +15,9 @@ module Telnyx
|
|
15
15
|
optional :meta, -> { Telnyx::Models::OAuthGrantListResponse::Meta }
|
16
16
|
|
17
17
|
# @!method initialize(data: nil, meta: nil)
|
18
|
-
# @param data [Array<Telnyx::Models::
|
18
|
+
# @param data [Array<Telnyx::Models::OAuthGrant>]
|
19
19
|
# @param meta [Telnyx::Models::OAuthGrantListResponse::Meta]
|
20
20
|
|
21
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
22
|
-
# @!attribute id
|
23
|
-
# Unique identifier for the OAuth grant
|
24
|
-
#
|
25
|
-
# @return [String]
|
26
|
-
required :id, String
|
27
|
-
|
28
|
-
# @!attribute client_id
|
29
|
-
# OAuth client identifier
|
30
|
-
#
|
31
|
-
# @return [String]
|
32
|
-
required :client_id, String
|
33
|
-
|
34
|
-
# @!attribute created_at
|
35
|
-
# Timestamp when the grant was created
|
36
|
-
#
|
37
|
-
# @return [Time]
|
38
|
-
required :created_at, Time
|
39
|
-
|
40
|
-
# @!attribute record_type
|
41
|
-
# Record type identifier
|
42
|
-
#
|
43
|
-
# @return [Symbol, Telnyx::Models::OAuthGrantListResponse::Data::RecordType]
|
44
|
-
required :record_type, enum: -> { Telnyx::Models::OAuthGrantListResponse::Data::RecordType }
|
45
|
-
|
46
|
-
# @!attribute scopes
|
47
|
-
# List of granted OAuth scopes
|
48
|
-
#
|
49
|
-
# @return [Array<String>]
|
50
|
-
required :scopes, Telnyx::Internal::Type::ArrayOf[String]
|
51
|
-
|
52
|
-
# @!attribute last_used_at
|
53
|
-
# Timestamp when the grant was last used
|
54
|
-
#
|
55
|
-
# @return [Time, nil]
|
56
|
-
optional :last_used_at, Time, nil?: true
|
57
|
-
|
58
|
-
# @!method initialize(id:, client_id:, created_at:, record_type:, scopes:, last_used_at: nil)
|
59
|
-
# @param id [String] Unique identifier for the OAuth grant
|
60
|
-
#
|
61
|
-
# @param client_id [String] OAuth client identifier
|
62
|
-
#
|
63
|
-
# @param created_at [Time] Timestamp when the grant was created
|
64
|
-
#
|
65
|
-
# @param record_type [Symbol, Telnyx::Models::OAuthGrantListResponse::Data::RecordType] Record type identifier
|
66
|
-
#
|
67
|
-
# @param scopes [Array<String>] List of granted OAuth scopes
|
68
|
-
#
|
69
|
-
# @param last_used_at [Time, nil] Timestamp when the grant was last used
|
70
|
-
|
71
|
-
# Record type identifier
|
72
|
-
#
|
73
|
-
# @see Telnyx::Models::OAuthGrantListResponse::Data#record_type
|
74
|
-
module RecordType
|
75
|
-
extend Telnyx::Internal::Type::Enum
|
76
|
-
|
77
|
-
OAUTH_GRANT = :oauth_grant
|
78
|
-
|
79
|
-
# @!method self.values
|
80
|
-
# @return [Array<Symbol>]
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
21
|
# @see Telnyx::Models::OAuthGrantListResponse#meta
|
85
22
|
class Meta < Telnyx::Internal::Type::BaseModel
|
86
23
|
# @!attribute page_number
|
@@ -6,75 +6,11 @@ module Telnyx
|
|
6
6
|
class OAuthGrantRetrieveResponse < Telnyx::Internal::Type::BaseModel
|
7
7
|
# @!attribute data
|
8
8
|
#
|
9
|
-
# @return [Telnyx::Models::
|
10
|
-
optional :data, -> { Telnyx::
|
9
|
+
# @return [Telnyx::Models::OAuthGrant, nil]
|
10
|
+
optional :data, -> { Telnyx::OAuthGrant }
|
11
11
|
|
12
12
|
# @!method initialize(data: nil)
|
13
|
-
# @param data [Telnyx::Models::
|
14
|
-
|
15
|
-
# @see Telnyx::Models::OAuthGrantRetrieveResponse#data
|
16
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
17
|
-
# @!attribute id
|
18
|
-
# Unique identifier for the OAuth grant
|
19
|
-
#
|
20
|
-
# @return [String]
|
21
|
-
required :id, String
|
22
|
-
|
23
|
-
# @!attribute client_id
|
24
|
-
# OAuth client identifier
|
25
|
-
#
|
26
|
-
# @return [String]
|
27
|
-
required :client_id, String
|
28
|
-
|
29
|
-
# @!attribute created_at
|
30
|
-
# Timestamp when the grant was created
|
31
|
-
#
|
32
|
-
# @return [Time]
|
33
|
-
required :created_at, Time
|
34
|
-
|
35
|
-
# @!attribute record_type
|
36
|
-
# Record type identifier
|
37
|
-
#
|
38
|
-
# @return [Symbol, Telnyx::Models::OAuthGrantRetrieveResponse::Data::RecordType]
|
39
|
-
required :record_type, enum: -> { Telnyx::Models::OAuthGrantRetrieveResponse::Data::RecordType }
|
40
|
-
|
41
|
-
# @!attribute scopes
|
42
|
-
# List of granted OAuth scopes
|
43
|
-
#
|
44
|
-
# @return [Array<String>]
|
45
|
-
required :scopes, Telnyx::Internal::Type::ArrayOf[String]
|
46
|
-
|
47
|
-
# @!attribute last_used_at
|
48
|
-
# Timestamp when the grant was last used
|
49
|
-
#
|
50
|
-
# @return [Time, nil]
|
51
|
-
optional :last_used_at, Time, nil?: true
|
52
|
-
|
53
|
-
# @!method initialize(id:, client_id:, created_at:, record_type:, scopes:, last_used_at: nil)
|
54
|
-
# @param id [String] Unique identifier for the OAuth grant
|
55
|
-
#
|
56
|
-
# @param client_id [String] OAuth client identifier
|
57
|
-
#
|
58
|
-
# @param created_at [Time] Timestamp when the grant was created
|
59
|
-
#
|
60
|
-
# @param record_type [Symbol, Telnyx::Models::OAuthGrantRetrieveResponse::Data::RecordType] Record type identifier
|
61
|
-
#
|
62
|
-
# @param scopes [Array<String>] List of granted OAuth scopes
|
63
|
-
#
|
64
|
-
# @param last_used_at [Time, nil] Timestamp when the grant was last used
|
65
|
-
|
66
|
-
# Record type identifier
|
67
|
-
#
|
68
|
-
# @see Telnyx::Models::OAuthGrantRetrieveResponse::Data#record_type
|
69
|
-
module RecordType
|
70
|
-
extend Telnyx::Internal::Type::Enum
|
71
|
-
|
72
|
-
OAUTH_GRANT = :oauth_grant
|
73
|
-
|
74
|
-
# @!method self.values
|
75
|
-
# @return [Array<Symbol>]
|
76
|
-
end
|
77
|
-
end
|
13
|
+
# @param data [Telnyx::Models::OAuthGrant]
|
78
14
|
end
|
79
15
|
end
|
80
16
|
end
|