telnyx 4.0.0 → 4.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 +15 -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/transcription_start_request.rb +444 -6
- 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/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/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.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/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/transcription_start_request.rbi +1473 -3
- 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/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/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.rbi +9 -1
- data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
- data/rbi/telnyx/resources/calls/actions.rbi +5 -1
- 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/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/transcription_start_request.rbs +585 -2
- 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/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/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.rbs +7 -1
- data/sig/telnyx/resources/advanced_orders.rbs +6 -6
- 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
- metadata +35 -8
- data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -10,110 +10,11 @@ module Telnyx
|
|
10
10
|
# @!attribute data
|
11
11
|
# Legacy V2 CDR usage report response
|
12
12
|
#
|
13
|
-
# @return [Telnyx::Models::Legacy::Reporting::UsageReports::
|
14
|
-
optional :data, -> { Telnyx::
|
13
|
+
# @return [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy, nil]
|
14
|
+
optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy }
|
15
15
|
|
16
16
|
# @!method initialize(data: nil)
|
17
|
-
# @param data [Telnyx::Models::Legacy::Reporting::UsageReports::
|
18
|
-
|
19
|
-
# @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse#data
|
20
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
21
|
-
# @!attribute id
|
22
|
-
# Identifies the resource
|
23
|
-
#
|
24
|
-
# @return [String, nil]
|
25
|
-
optional :id, String
|
26
|
-
|
27
|
-
# @!attribute aggregation_type
|
28
|
-
# Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
29
|
-
#
|
30
|
-
# @return [Integer, nil]
|
31
|
-
optional :aggregation_type, Integer
|
32
|
-
|
33
|
-
# @!attribute connections
|
34
|
-
#
|
35
|
-
# @return [Array<Integer>, nil]
|
36
|
-
optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
|
37
|
-
|
38
|
-
# @!attribute created_at
|
39
|
-
#
|
40
|
-
# @return [Time, nil]
|
41
|
-
optional :created_at, Time
|
42
|
-
|
43
|
-
# @!attribute end_time
|
44
|
-
#
|
45
|
-
# @return [Time, nil]
|
46
|
-
optional :end_time, Time
|
47
|
-
|
48
|
-
# @!attribute product_breakdown
|
49
|
-
# Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
50
|
-
# vs Toll-free per Country = 3
|
51
|
-
#
|
52
|
-
# @return [Integer, nil]
|
53
|
-
optional :product_breakdown, Integer
|
54
|
-
|
55
|
-
# @!attribute record_type
|
56
|
-
#
|
57
|
-
# @return [String, nil]
|
58
|
-
optional :record_type, String
|
59
|
-
|
60
|
-
# @!attribute report_url
|
61
|
-
#
|
62
|
-
# @return [String, nil]
|
63
|
-
optional :report_url, String
|
64
|
-
|
65
|
-
# @!attribute result
|
66
|
-
#
|
67
|
-
# @return [Object, nil]
|
68
|
-
optional :result, Telnyx::Internal::Type::Unknown
|
69
|
-
|
70
|
-
# @!attribute start_time
|
71
|
-
#
|
72
|
-
# @return [Time, nil]
|
73
|
-
optional :start_time, Time
|
74
|
-
|
75
|
-
# @!attribute status
|
76
|
-
# Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
77
|
-
#
|
78
|
-
# @return [Integer, nil]
|
79
|
-
optional :status, Integer
|
80
|
-
|
81
|
-
# @!attribute updated_at
|
82
|
-
#
|
83
|
-
# @return [Time, nil]
|
84
|
-
optional :updated_at, Time
|
85
|
-
|
86
|
-
# @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
|
87
|
-
# Some parameter documentations has been truncated, see
|
88
|
-
# {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceCreateResponse::Data} for
|
89
|
-
# more details.
|
90
|
-
#
|
91
|
-
# Legacy V2 CDR usage report response
|
92
|
-
#
|
93
|
-
# @param id [String] Identifies the resource
|
94
|
-
#
|
95
|
-
# @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
96
|
-
#
|
97
|
-
# @param connections [Array<Integer>]
|
98
|
-
#
|
99
|
-
# @param created_at [Time]
|
100
|
-
#
|
101
|
-
# @param end_time [Time]
|
102
|
-
#
|
103
|
-
# @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
104
|
-
#
|
105
|
-
# @param record_type [String]
|
106
|
-
#
|
107
|
-
# @param report_url [String]
|
108
|
-
#
|
109
|
-
# @param result [Object]
|
110
|
-
#
|
111
|
-
# @param start_time [Time]
|
112
|
-
#
|
113
|
-
# @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
114
|
-
#
|
115
|
-
# @param updated_at [Time]
|
116
|
-
end
|
17
|
+
# @param data [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] Legacy V2 CDR usage report response
|
117
18
|
end
|
118
19
|
end
|
119
20
|
end
|
@@ -10,110 +10,11 @@ module Telnyx
|
|
10
10
|
# @!attribute data
|
11
11
|
# Legacy V2 CDR usage report response
|
12
12
|
#
|
13
|
-
# @return [Telnyx::Models::Legacy::Reporting::UsageReports::
|
14
|
-
optional :data, -> { Telnyx::
|
13
|
+
# @return [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy, nil]
|
14
|
+
optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy }
|
15
15
|
|
16
16
|
# @!method initialize(data: nil)
|
17
|
-
# @param data [Telnyx::Models::Legacy::Reporting::UsageReports::
|
18
|
-
|
19
|
-
# @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse#data
|
20
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
21
|
-
# @!attribute id
|
22
|
-
# Identifies the resource
|
23
|
-
#
|
24
|
-
# @return [String, nil]
|
25
|
-
optional :id, String
|
26
|
-
|
27
|
-
# @!attribute aggregation_type
|
28
|
-
# Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
29
|
-
#
|
30
|
-
# @return [Integer, nil]
|
31
|
-
optional :aggregation_type, Integer
|
32
|
-
|
33
|
-
# @!attribute connections
|
34
|
-
#
|
35
|
-
# @return [Array<Integer>, nil]
|
36
|
-
optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
|
37
|
-
|
38
|
-
# @!attribute created_at
|
39
|
-
#
|
40
|
-
# @return [Time, nil]
|
41
|
-
optional :created_at, Time
|
42
|
-
|
43
|
-
# @!attribute end_time
|
44
|
-
#
|
45
|
-
# @return [Time, nil]
|
46
|
-
optional :end_time, Time
|
47
|
-
|
48
|
-
# @!attribute product_breakdown
|
49
|
-
# Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
50
|
-
# vs Toll-free per Country = 3
|
51
|
-
#
|
52
|
-
# @return [Integer, nil]
|
53
|
-
optional :product_breakdown, Integer
|
54
|
-
|
55
|
-
# @!attribute record_type
|
56
|
-
#
|
57
|
-
# @return [String, nil]
|
58
|
-
optional :record_type, String
|
59
|
-
|
60
|
-
# @!attribute report_url
|
61
|
-
#
|
62
|
-
# @return [String, nil]
|
63
|
-
optional :report_url, String
|
64
|
-
|
65
|
-
# @!attribute result
|
66
|
-
#
|
67
|
-
# @return [Object, nil]
|
68
|
-
optional :result, Telnyx::Internal::Type::Unknown
|
69
|
-
|
70
|
-
# @!attribute start_time
|
71
|
-
#
|
72
|
-
# @return [Time, nil]
|
73
|
-
optional :start_time, Time
|
74
|
-
|
75
|
-
# @!attribute status
|
76
|
-
# Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
77
|
-
#
|
78
|
-
# @return [Integer, nil]
|
79
|
-
optional :status, Integer
|
80
|
-
|
81
|
-
# @!attribute updated_at
|
82
|
-
#
|
83
|
-
# @return [Time, nil]
|
84
|
-
optional :updated_at, Time
|
85
|
-
|
86
|
-
# @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
|
87
|
-
# Some parameter documentations has been truncated, see
|
88
|
-
# {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceDeleteResponse::Data} for
|
89
|
-
# more details.
|
90
|
-
#
|
91
|
-
# Legacy V2 CDR usage report response
|
92
|
-
#
|
93
|
-
# @param id [String] Identifies the resource
|
94
|
-
#
|
95
|
-
# @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
96
|
-
#
|
97
|
-
# @param connections [Array<Integer>]
|
98
|
-
#
|
99
|
-
# @param created_at [Time]
|
100
|
-
#
|
101
|
-
# @param end_time [Time]
|
102
|
-
#
|
103
|
-
# @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
104
|
-
#
|
105
|
-
# @param record_type [String]
|
106
|
-
#
|
107
|
-
# @param report_url [String]
|
108
|
-
#
|
109
|
-
# @param result [Object]
|
110
|
-
#
|
111
|
-
# @param start_time [Time]
|
112
|
-
#
|
113
|
-
# @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
114
|
-
#
|
115
|
-
# @param updated_at [Time]
|
116
|
-
end
|
17
|
+
# @param data [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] Legacy V2 CDR usage report response
|
117
18
|
end
|
118
19
|
end
|
119
20
|
end
|
@@ -9,9 +9,9 @@ module Telnyx
|
|
9
9
|
class VoiceListResponse < Telnyx::Internal::Type::BaseModel
|
10
10
|
# @!attribute data
|
11
11
|
#
|
12
|
-
# @return [Array<Telnyx::Models::Legacy::Reporting::UsageReports::
|
12
|
+
# @return [Array<Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy>, nil]
|
13
13
|
optional :data,
|
14
|
-
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::
|
14
|
+
-> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] }
|
15
15
|
|
16
16
|
# @!attribute meta
|
17
17
|
#
|
@@ -19,107 +19,9 @@ module Telnyx
|
|
19
19
|
optional :meta, -> { Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Meta }
|
20
20
|
|
21
21
|
# @!method initialize(data: nil, meta: nil)
|
22
|
-
# @param data [Array<Telnyx::Models::Legacy::Reporting::UsageReports::
|
22
|
+
# @param data [Array<Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy>]
|
23
23
|
# @param meta [Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Meta]
|
24
24
|
|
25
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
26
|
-
# @!attribute id
|
27
|
-
# Identifies the resource
|
28
|
-
#
|
29
|
-
# @return [String, nil]
|
30
|
-
optional :id, String
|
31
|
-
|
32
|
-
# @!attribute aggregation_type
|
33
|
-
# Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
34
|
-
#
|
35
|
-
# @return [Integer, nil]
|
36
|
-
optional :aggregation_type, Integer
|
37
|
-
|
38
|
-
# @!attribute connections
|
39
|
-
#
|
40
|
-
# @return [Array<Integer>, nil]
|
41
|
-
optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
|
42
|
-
|
43
|
-
# @!attribute created_at
|
44
|
-
#
|
45
|
-
# @return [Time, nil]
|
46
|
-
optional :created_at, Time
|
47
|
-
|
48
|
-
# @!attribute end_time
|
49
|
-
#
|
50
|
-
# @return [Time, nil]
|
51
|
-
optional :end_time, Time
|
52
|
-
|
53
|
-
# @!attribute product_breakdown
|
54
|
-
# Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
55
|
-
# vs Toll-free per Country = 3
|
56
|
-
#
|
57
|
-
# @return [Integer, nil]
|
58
|
-
optional :product_breakdown, Integer
|
59
|
-
|
60
|
-
# @!attribute record_type
|
61
|
-
#
|
62
|
-
# @return [String, nil]
|
63
|
-
optional :record_type, String
|
64
|
-
|
65
|
-
# @!attribute report_url
|
66
|
-
#
|
67
|
-
# @return [String, nil]
|
68
|
-
optional :report_url, String
|
69
|
-
|
70
|
-
# @!attribute result
|
71
|
-
#
|
72
|
-
# @return [Object, nil]
|
73
|
-
optional :result, Telnyx::Internal::Type::Unknown
|
74
|
-
|
75
|
-
# @!attribute start_time
|
76
|
-
#
|
77
|
-
# @return [Time, nil]
|
78
|
-
optional :start_time, Time
|
79
|
-
|
80
|
-
# @!attribute status
|
81
|
-
# Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
82
|
-
#
|
83
|
-
# @return [Integer, nil]
|
84
|
-
optional :status, Integer
|
85
|
-
|
86
|
-
# @!attribute updated_at
|
87
|
-
#
|
88
|
-
# @return [Time, nil]
|
89
|
-
optional :updated_at, Time
|
90
|
-
|
91
|
-
# @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
|
92
|
-
# Some parameter documentations has been truncated, see
|
93
|
-
# {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse::Data} for
|
94
|
-
# more details.
|
95
|
-
#
|
96
|
-
# Legacy V2 CDR usage report response
|
97
|
-
#
|
98
|
-
# @param id [String] Identifies the resource
|
99
|
-
#
|
100
|
-
# @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
101
|
-
#
|
102
|
-
# @param connections [Array<Integer>]
|
103
|
-
#
|
104
|
-
# @param created_at [Time]
|
105
|
-
#
|
106
|
-
# @param end_time [Time]
|
107
|
-
#
|
108
|
-
# @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
109
|
-
#
|
110
|
-
# @param record_type [String]
|
111
|
-
#
|
112
|
-
# @param report_url [String]
|
113
|
-
#
|
114
|
-
# @param result [Object]
|
115
|
-
#
|
116
|
-
# @param start_time [Time]
|
117
|
-
#
|
118
|
-
# @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
119
|
-
#
|
120
|
-
# @param updated_at [Time]
|
121
|
-
end
|
122
|
-
|
123
25
|
# @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceListResponse#meta
|
124
26
|
class Meta < Telnyx::Internal::Type::BaseModel
|
125
27
|
# @!attribute page_number
|
@@ -10,110 +10,11 @@ module Telnyx
|
|
10
10
|
# @!attribute data
|
11
11
|
# Legacy V2 CDR usage report response
|
12
12
|
#
|
13
|
-
# @return [Telnyx::Models::Legacy::Reporting::UsageReports::
|
14
|
-
optional :data, -> { Telnyx::
|
13
|
+
# @return [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy, nil]
|
14
|
+
optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy }
|
15
15
|
|
16
16
|
# @!method initialize(data: nil)
|
17
|
-
# @param data [Telnyx::Models::Legacy::Reporting::UsageReports::
|
18
|
-
|
19
|
-
# @see Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse#data
|
20
|
-
class Data < Telnyx::Internal::Type::BaseModel
|
21
|
-
# @!attribute id
|
22
|
-
# Identifies the resource
|
23
|
-
#
|
24
|
-
# @return [String, nil]
|
25
|
-
optional :id, String
|
26
|
-
|
27
|
-
# @!attribute aggregation_type
|
28
|
-
# Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
29
|
-
#
|
30
|
-
# @return [Integer, nil]
|
31
|
-
optional :aggregation_type, Integer
|
32
|
-
|
33
|
-
# @!attribute connections
|
34
|
-
#
|
35
|
-
# @return [Array<Integer>, nil]
|
36
|
-
optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
|
37
|
-
|
38
|
-
# @!attribute created_at
|
39
|
-
#
|
40
|
-
# @return [Time, nil]
|
41
|
-
optional :created_at, Time
|
42
|
-
|
43
|
-
# @!attribute end_time
|
44
|
-
#
|
45
|
-
# @return [Time, nil]
|
46
|
-
optional :end_time, Time
|
47
|
-
|
48
|
-
# @!attribute product_breakdown
|
49
|
-
# Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
50
|
-
# vs Toll-free per Country = 3
|
51
|
-
#
|
52
|
-
# @return [Integer, nil]
|
53
|
-
optional :product_breakdown, Integer
|
54
|
-
|
55
|
-
# @!attribute record_type
|
56
|
-
#
|
57
|
-
# @return [String, nil]
|
58
|
-
optional :record_type, String
|
59
|
-
|
60
|
-
# @!attribute report_url
|
61
|
-
#
|
62
|
-
# @return [String, nil]
|
63
|
-
optional :report_url, String
|
64
|
-
|
65
|
-
# @!attribute result
|
66
|
-
#
|
67
|
-
# @return [Object, nil]
|
68
|
-
optional :result, Telnyx::Internal::Type::Unknown
|
69
|
-
|
70
|
-
# @!attribute start_time
|
71
|
-
#
|
72
|
-
# @return [Time, nil]
|
73
|
-
optional :start_time, Time
|
74
|
-
|
75
|
-
# @!attribute status
|
76
|
-
# Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
77
|
-
#
|
78
|
-
# @return [Integer, nil]
|
79
|
-
optional :status, Integer
|
80
|
-
|
81
|
-
# @!attribute updated_at
|
82
|
-
#
|
83
|
-
# @return [Time, nil]
|
84
|
-
optional :updated_at, Time
|
85
|
-
|
86
|
-
# @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, product_breakdown: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
|
87
|
-
# Some parameter documentations has been truncated, see
|
88
|
-
# {Telnyx::Models::Legacy::Reporting::UsageReports::VoiceRetrieveResponse::Data}
|
89
|
-
# for more details.
|
90
|
-
#
|
91
|
-
# Legacy V2 CDR usage report response
|
92
|
-
#
|
93
|
-
# @param id [String] Identifies the resource
|
94
|
-
#
|
95
|
-
# @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
|
96
|
-
#
|
97
|
-
# @param connections [Array<Integer>]
|
98
|
-
#
|
99
|
-
# @param created_at [Time]
|
100
|
-
#
|
101
|
-
# @param end_time [Time]
|
102
|
-
#
|
103
|
-
# @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
|
104
|
-
#
|
105
|
-
# @param record_type [String]
|
106
|
-
#
|
107
|
-
# @param report_url [String]
|
108
|
-
#
|
109
|
-
# @param result [Object]
|
110
|
-
#
|
111
|
-
# @param start_time [Time]
|
112
|
-
#
|
113
|
-
# @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
|
114
|
-
#
|
115
|
-
# @param updated_at [Time]
|
116
|
-
end
|
17
|
+
# @param data [Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy] Legacy V2 CDR usage report response
|
117
18
|
end
|
118
19
|
end
|
119
20
|
end
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Telnyx
|
4
|
+
module Models
|
5
|
+
class OAuthClient < Telnyx::Internal::Type::BaseModel
|
6
|
+
# @!attribute client_id
|
7
|
+
# OAuth client identifier
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :client_id, String
|
11
|
+
|
12
|
+
# @!attribute client_type
|
13
|
+
# OAuth client type
|
14
|
+
#
|
15
|
+
# @return [Symbol, Telnyx::Models::OAuthClient::ClientType]
|
16
|
+
required :client_type, enum: -> { Telnyx::OAuthClient::ClientType }
|
17
|
+
|
18
|
+
# @!attribute created_at
|
19
|
+
# Timestamp when the client was created
|
20
|
+
#
|
21
|
+
# @return [Time]
|
22
|
+
required :created_at, Time
|
23
|
+
|
24
|
+
# @!attribute name
|
25
|
+
# Human-readable name for the OAuth client
|
26
|
+
#
|
27
|
+
# @return [String]
|
28
|
+
required :name, String
|
29
|
+
|
30
|
+
# @!attribute org_id
|
31
|
+
# Organization ID that owns this OAuth client
|
32
|
+
#
|
33
|
+
# @return [String]
|
34
|
+
required :org_id, String
|
35
|
+
|
36
|
+
# @!attribute record_type
|
37
|
+
# Record type identifier
|
38
|
+
#
|
39
|
+
# @return [Symbol, Telnyx::Models::OAuthClient::RecordType]
|
40
|
+
required :record_type, enum: -> { Telnyx::OAuthClient::RecordType }
|
41
|
+
|
42
|
+
# @!attribute require_pkce
|
43
|
+
# Whether PKCE (Proof Key for Code Exchange) is required for this client
|
44
|
+
#
|
45
|
+
# @return [Boolean]
|
46
|
+
required :require_pkce, Telnyx::Internal::Type::Boolean
|
47
|
+
|
48
|
+
# @!attribute updated_at
|
49
|
+
# Timestamp when the client was last updated
|
50
|
+
#
|
51
|
+
# @return [Time]
|
52
|
+
required :updated_at, Time
|
53
|
+
|
54
|
+
# @!attribute user_id
|
55
|
+
# User ID that created this OAuth client
|
56
|
+
#
|
57
|
+
# @return [String]
|
58
|
+
required :user_id, String
|
59
|
+
|
60
|
+
# @!attribute allowed_grant_types
|
61
|
+
# List of allowed OAuth grant types
|
62
|
+
#
|
63
|
+
# @return [Array<Symbol, Telnyx::Models::OAuthClient::AllowedGrantType>, nil]
|
64
|
+
optional :allowed_grant_types,
|
65
|
+
-> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::OAuthClient::AllowedGrantType] }
|
66
|
+
|
67
|
+
# @!attribute allowed_scopes
|
68
|
+
# List of allowed OAuth scopes
|
69
|
+
#
|
70
|
+
# @return [Array<String>, nil]
|
71
|
+
optional :allowed_scopes, Telnyx::Internal::Type::ArrayOf[String]
|
72
|
+
|
73
|
+
# @!attribute client_secret
|
74
|
+
# Client secret (only included when available, for confidential clients)
|
75
|
+
#
|
76
|
+
# @return [String, nil]
|
77
|
+
optional :client_secret, String, nil?: true
|
78
|
+
|
79
|
+
# @!attribute logo_uri
|
80
|
+
# URL of the client logo
|
81
|
+
#
|
82
|
+
# @return [String, nil]
|
83
|
+
optional :logo_uri, String, nil?: true
|
84
|
+
|
85
|
+
# @!attribute policy_uri
|
86
|
+
# URL of the client's privacy policy
|
87
|
+
#
|
88
|
+
# @return [String, nil]
|
89
|
+
optional :policy_uri, String, nil?: true
|
90
|
+
|
91
|
+
# @!attribute redirect_uris
|
92
|
+
# List of allowed redirect URIs
|
93
|
+
#
|
94
|
+
# @return [Array<String>, nil]
|
95
|
+
optional :redirect_uris, Telnyx::Internal::Type::ArrayOf[String]
|
96
|
+
|
97
|
+
# @!attribute tos_uri
|
98
|
+
# URL of the client's terms of service
|
99
|
+
#
|
100
|
+
# @return [String, nil]
|
101
|
+
optional :tos_uri, String, nil?: true
|
102
|
+
|
103
|
+
# @!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)
|
104
|
+
# @param client_id [String] OAuth client identifier
|
105
|
+
#
|
106
|
+
# @param client_type [Symbol, Telnyx::Models::OAuthClient::ClientType] OAuth client type
|
107
|
+
#
|
108
|
+
# @param created_at [Time] Timestamp when the client was created
|
109
|
+
#
|
110
|
+
# @param name [String] Human-readable name for the OAuth client
|
111
|
+
#
|
112
|
+
# @param org_id [String] Organization ID that owns this OAuth client
|
113
|
+
#
|
114
|
+
# @param record_type [Symbol, Telnyx::Models::OAuthClient::RecordType] Record type identifier
|
115
|
+
#
|
116
|
+
# @param require_pkce [Boolean] Whether PKCE (Proof Key for Code Exchange) is required for this client
|
117
|
+
#
|
118
|
+
# @param updated_at [Time] Timestamp when the client was last updated
|
119
|
+
#
|
120
|
+
# @param user_id [String] User ID that created this OAuth client
|
121
|
+
#
|
122
|
+
# @param allowed_grant_types [Array<Symbol, Telnyx::Models::OAuthClient::AllowedGrantType>] List of allowed OAuth grant types
|
123
|
+
#
|
124
|
+
# @param allowed_scopes [Array<String>] List of allowed OAuth scopes
|
125
|
+
#
|
126
|
+
# @param client_secret [String, nil] Client secret (only included when available, for confidential clients)
|
127
|
+
#
|
128
|
+
# @param logo_uri [String, nil] URL of the client logo
|
129
|
+
#
|
130
|
+
# @param policy_uri [String, nil] URL of the client's privacy policy
|
131
|
+
#
|
132
|
+
# @param redirect_uris [Array<String>] List of allowed redirect URIs
|
133
|
+
#
|
134
|
+
# @param tos_uri [String, nil] URL of the client's terms of service
|
135
|
+
|
136
|
+
# OAuth client type
|
137
|
+
#
|
138
|
+
# @see Telnyx::Models::OAuthClient#client_type
|
139
|
+
module ClientType
|
140
|
+
extend Telnyx::Internal::Type::Enum
|
141
|
+
|
142
|
+
PUBLIC = :public
|
143
|
+
CONFIDENTIAL = :confidential
|
144
|
+
|
145
|
+
# @!method self.values
|
146
|
+
# @return [Array<Symbol>]
|
147
|
+
end
|
148
|
+
|
149
|
+
# Record type identifier
|
150
|
+
#
|
151
|
+
# @see Telnyx::Models::OAuthClient#record_type
|
152
|
+
module RecordType
|
153
|
+
extend Telnyx::Internal::Type::Enum
|
154
|
+
|
155
|
+
OAUTH_CLIENT = :oauth_client
|
156
|
+
|
157
|
+
# @!method self.values
|
158
|
+
# @return [Array<Symbol>]
|
159
|
+
end
|
160
|
+
|
161
|
+
module AllowedGrantType
|
162
|
+
extend Telnyx::Internal::Type::Enum
|
163
|
+
|
164
|
+
CLIENT_CREDENTIALS = :client_credentials
|
165
|
+
AUTHORIZATION_CODE = :authorization_code
|
166
|
+
REFRESH_TOKEN = :refresh_token
|
167
|
+
|
168
|
+
# @!method self.values
|
169
|
+
# @return [Array<Symbol>]
|
170
|
+
end
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|