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.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/telnyx/internal/transport/pooled_net_requester.rb +7 -10
  5. data/lib/telnyx/models/{advanced_order_update_params.rb → advanced_order_update_requirement_group_params.rb} +9 -8
  6. data/lib/telnyx/models/{advanced_order_update_response.rb → advanced_order_update_requirement_group_response.rb} +1 -1
  7. data/lib/telnyx/models/calls/transcription_start_request.rb +444 -6
  8. data/lib/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rb +156 -0
  9. data/lib/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rb +151 -0
  10. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rb +3 -110
  11. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rb +3 -252
  12. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rb +3 -252
  13. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rb +3 -250
  14. data/lib/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rb +3 -252
  15. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rb +3 -73
  16. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rb +3 -73
  17. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rb +3 -71
  18. data/lib/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rb +3 -73
  19. data/lib/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rb +79 -0
  20. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rb +3 -110
  21. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rb +3 -256
  22. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rb +3 -256
  23. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rb +3 -255
  24. data/lib/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rb +3 -256
  25. data/lib/telnyx/models/legacy/reporting/filter.rb +112 -0
  26. data/lib/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rb +109 -0
  27. data/lib/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rb +104 -0
  28. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rb +3 -97
  29. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rb +3 -97
  30. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rb +3 -96
  31. data/lib/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rb +3 -97
  32. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rb +3 -102
  33. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rb +3 -102
  34. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rb +3 -101
  35. data/lib/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rb +3 -102
  36. data/lib/telnyx/models/oauth_client.rb +173 -0
  37. data/lib/telnyx/models/oauth_client_create_response.rb +3 -172
  38. data/lib/telnyx/models/oauth_client_list_response.rb +3 -171
  39. data/lib/telnyx/models/oauth_client_retrieve_response.rb +3 -172
  40. data/lib/telnyx/models/oauth_client_update_response.rb +3 -172
  41. data/lib/telnyx/models/oauth_grant.rb +68 -0
  42. data/lib/telnyx/models/oauth_grant_delete_response.rb +3 -67
  43. data/lib/telnyx/models/oauth_grant_list_response.rb +3 -66
  44. data/lib/telnyx/models/oauth_grant_retrieve_response.rb +3 -67
  45. data/lib/telnyx/models/verify_profile_create_template_response.rb +3 -20
  46. data/lib/telnyx/models/verify_profile_message_template_response.rb +21 -0
  47. data/lib/telnyx/models/verify_profile_retrieve_templates_response.rb +3 -20
  48. data/lib/telnyx/models/verify_profile_update_template_response.rb +3 -20
  49. data/lib/telnyx/models.rb +7 -1
  50. data/lib/telnyx/resources/advanced_orders.rb +26 -26
  51. data/lib/telnyx/resources/calls/actions.rb +2 -2
  52. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rb +1 -1
  53. data/lib/telnyx/resources/legacy/reporting/batch_detail_records/voice.rb +1 -1
  54. data/lib/telnyx/version.rb +1 -1
  55. data/lib/telnyx.rb +11 -2
  56. data/rbi/telnyx/models/{advanced_order_update_params.rbi → advanced_order_update_requirement_group_params.rbi} +53 -25
  57. data/rbi/telnyx/models/{advanced_order_update_response.rbi → advanced_order_update_requirement_group_response.rbi} +1 -1
  58. data/rbi/telnyx/models/calls/transcription_start_request.rbi +1473 -3
  59. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbi +232 -0
  60. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbi +346 -0
  61. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbi +4 -279
  62. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbi +4 -614
  63. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbi +4 -614
  64. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbi +4 -614
  65. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbi +4 -614
  66. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbi +4 -155
  67. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbi +4 -155
  68. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbi +4 -155
  69. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbi +4 -155
  70. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbi +162 -0
  71. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbi +4 -279
  72. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbi +4 -500
  73. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbi +4 -500
  74. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbi +4 -500
  75. data/rbi/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbi +4 -500
  76. data/rbi/telnyx/models/legacy/reporting/filter.rbi +252 -0
  77. data/rbi/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbi +157 -0
  78. data/rbi/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbi +155 -0
  79. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbi +4 -148
  80. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbi +4 -148
  81. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbi +4 -148
  82. data/rbi/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbi +4 -148
  83. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbi +4 -150
  84. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbi +4 -150
  85. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbi +4 -150
  86. data/rbi/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbi +4 -150
  87. data/rbi/telnyx/models/oauth_client.rbi +250 -0
  88. data/rbi/telnyx/models/oauth_client_create_response.rbi +4 -317
  89. data/rbi/telnyx/models/oauth_client_list_response.rbi +4 -313
  90. data/rbi/telnyx/models/oauth_client_retrieve_response.rbi +4 -317
  91. data/rbi/telnyx/models/oauth_client_update_response.rbi +4 -317
  92. data/rbi/telnyx/models/oauth_grant.rbi +95 -0
  93. data/rbi/telnyx/models/oauth_grant_delete_response.rbi +4 -127
  94. data/rbi/telnyx/models/oauth_grant_list_response.rbi +4 -123
  95. data/rbi/telnyx/models/oauth_grant_retrieve_response.rbi +4 -129
  96. data/rbi/telnyx/models/verify_profile_create_template_response.rbi +4 -44
  97. data/rbi/telnyx/models/verify_profile_message_template_response.rbi +35 -0
  98. data/rbi/telnyx/models/verify_profile_retrieve_templates_response.rbi +3 -45
  99. data/rbi/telnyx/models/verify_profile_update_template_response.rbi +4 -44
  100. data/rbi/telnyx/models.rbi +9 -1
  101. data/rbi/telnyx/resources/advanced_orders.rbi +16 -14
  102. data/rbi/telnyx/resources/calls/actions.rbi +5 -1
  103. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbi +1 -4
  104. data/rbi/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbi +1 -4
  105. data/sig/telnyx/models/{advanced_order_update_params.rbs → advanced_order_update_requirement_group_params.rbs} +16 -16
  106. data/sig/telnyx/models/advanced_order_update_requirement_group_response.rbs +5 -0
  107. data/sig/telnyx/models/calls/transcription_start_request.rbs +585 -2
  108. data/sig/telnyx/models/legacy/reporting/batch_detail_records/cdr_detailed_req_response.rbs +142 -0
  109. data/sig/telnyx/models/legacy/reporting/batch_detail_records/mdr_detail_report_response.rbs +163 -0
  110. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_params.rbs +6 -108
  111. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_create_response.rbs +6 -262
  112. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_delete_response.rbs +6 -262
  113. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_list_response.rbs +6 -262
  114. data/sig/telnyx/models/legacy/reporting/batch_detail_records/messaging_retrieve_response.rbs +6 -262
  115. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_create_response.rbs +6 -82
  116. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_delete_response.rbs +6 -82
  117. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_list_response.rbs +6 -82
  118. data/sig/telnyx/models/legacy/reporting/batch_detail_records/speech_to_text_retrieve_response.rbs +6 -82
  119. data/sig/telnyx/models/legacy/reporting/batch_detail_records/stt_detail_report_response.rbs +85 -0
  120. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_params.rbs +6 -108
  121. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_create_response.rbs +6 -241
  122. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_delete_response.rbs +6 -241
  123. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_list_response.rbs +6 -241
  124. data/sig/telnyx/models/legacy/reporting/batch_detail_records/voice_retrieve_response.rbs +6 -241
  125. data/sig/telnyx/models/legacy/reporting/filter.rbs +109 -0
  126. data/sig/telnyx/models/legacy/reporting/usage_reports/cdr_usage_report_response_legacy.rbs +105 -0
  127. data/sig/telnyx/models/legacy/reporting/usage_reports/mdr_usage_report_response_legacy.rbs +105 -0
  128. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_create_response.rbs +6 -102
  129. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_delete_response.rbs +6 -102
  130. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_list_response.rbs +6 -102
  131. data/sig/telnyx/models/legacy/reporting/usage_reports/messaging_retrieve_response.rbs +6 -102
  132. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_create_response.rbs +6 -102
  133. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_delete_response.rbs +6 -102
  134. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_list_response.rbs +6 -102
  135. data/sig/telnyx/models/legacy/reporting/usage_reports/voice_retrieve_response.rbs +6 -102
  136. data/sig/telnyx/models/oauth_client.rbs +137 -0
  137. data/sig/telnyx/models/oauth_client_create_response.rbs +5 -144
  138. data/sig/telnyx/models/oauth_client_list_response.rbs +5 -141
  139. data/sig/telnyx/models/oauth_client_retrieve_response.rbs +5 -146
  140. data/sig/telnyx/models/oauth_client_update_response.rbs +5 -144
  141. data/sig/telnyx/models/oauth_grant.rbs +55 -0
  142. data/sig/telnyx/models/oauth_grant_delete_response.rbs +5 -62
  143. data/sig/telnyx/models/oauth_grant_list_response.rbs +5 -59
  144. data/sig/telnyx/models/oauth_grant_retrieve_response.rbs +5 -62
  145. data/sig/telnyx/models/verify_profile_create_template_response.rbs +6 -24
  146. data/sig/telnyx/models/verify_profile_message_template_response.rbs +19 -0
  147. data/sig/telnyx/models/verify_profile_retrieve_templates_response.rbs +4 -22
  148. data/sig/telnyx/models/verify_profile_update_template_response.rbs +6 -24
  149. data/sig/telnyx/models.rbs +7 -1
  150. data/sig/telnyx/resources/advanced_orders.rbs +6 -6
  151. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/messaging.rbs +1 -1
  152. data/sig/telnyx/resources/legacy/reporting/batch_detail_records/voice.rbs +1 -1
  153. metadata +35 -8
  154. data/sig/telnyx/models/advanced_order_update_response.rbs +0 -5
@@ -0,0 +1,109 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Legacy
6
+ module Reporting
7
+ module UsageReports
8
+ class CdrUsageReportResponseLegacy < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute id
10
+ # Identifies the resource
11
+ #
12
+ # @return [String, nil]
13
+ optional :id, String
14
+
15
+ # @!attribute aggregation_type
16
+ # Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
17
+ #
18
+ # @return [Integer, nil]
19
+ optional :aggregation_type, Integer
20
+
21
+ # @!attribute connections
22
+ #
23
+ # @return [Array<Integer>, nil]
24
+ optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
25
+
26
+ # @!attribute created_at
27
+ #
28
+ # @return [Time, nil]
29
+ optional :created_at, Time
30
+
31
+ # @!attribute end_time
32
+ #
33
+ # @return [Time, nil]
34
+ optional :end_time, Time
35
+
36
+ # @!attribute product_breakdown
37
+ # Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
38
+ # vs Toll-free per Country = 3
39
+ #
40
+ # @return [Integer, nil]
41
+ optional :product_breakdown, Integer
42
+
43
+ # @!attribute record_type
44
+ #
45
+ # @return [String, nil]
46
+ optional :record_type, String
47
+
48
+ # @!attribute report_url
49
+ #
50
+ # @return [String, nil]
51
+ optional :report_url, String
52
+
53
+ # @!attribute result
54
+ #
55
+ # @return [Object, nil]
56
+ optional :result, Telnyx::Internal::Type::Unknown
57
+
58
+ # @!attribute start_time
59
+ #
60
+ # @return [Time, nil]
61
+ optional :start_time, Time
62
+
63
+ # @!attribute status
64
+ # Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
65
+ #
66
+ # @return [Integer, nil]
67
+ optional :status, Integer
68
+
69
+ # @!attribute updated_at
70
+ #
71
+ # @return [Time, nil]
72
+ optional :updated_at, Time
73
+
74
+ # @!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)
75
+ # Some parameter documentations has been truncated, see
76
+ # {Telnyx::Models::Legacy::Reporting::UsageReports::CdrUsageReportResponseLegacy}
77
+ # for more details.
78
+ #
79
+ # Legacy V2 CDR usage report response
80
+ #
81
+ # @param id [String] Identifies the resource
82
+ #
83
+ # @param aggregation_type [Integer] Aggregation type: All = 0, By Connections = 1, By Tags = 2, By Billing Group = 3
84
+ #
85
+ # @param connections [Array<Integer>]
86
+ #
87
+ # @param created_at [Time]
88
+ #
89
+ # @param end_time [Time]
90
+ #
91
+ # @param product_breakdown [Integer] Product breakdown type: No breakdown = 0, DID vs Toll-free = 1, Country = 2, DID
92
+ #
93
+ # @param record_type [String]
94
+ #
95
+ # @param report_url [String]
96
+ #
97
+ # @param result [Object]
98
+ #
99
+ # @param start_time [Time]
100
+ #
101
+ # @param status [Integer] Status of the report: Pending = 1, Complete = 2, Failed = 3, Expired = 4
102
+ #
103
+ # @param updated_at [Time]
104
+ end
105
+ end
106
+ end
107
+ end
108
+ end
109
+ end
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Legacy
6
+ module Reporting
7
+ module UsageReports
8
+ class MdrUsageReportResponseLegacy < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute id
10
+ # Identifies the resource
11
+ #
12
+ # @return [String, nil]
13
+ optional :id, String
14
+
15
+ # @!attribute aggregation_type
16
+ # Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
17
+ #
18
+ # @return [Integer, nil]
19
+ optional :aggregation_type, Integer
20
+
21
+ # @!attribute connections
22
+ #
23
+ # @return [Array<Integer>, nil]
24
+ optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
25
+
26
+ # @!attribute created_at
27
+ #
28
+ # @return [Time, nil]
29
+ optional :created_at, Time
30
+
31
+ # @!attribute end_time
32
+ #
33
+ # @return [Time, nil]
34
+ optional :end_time, Time
35
+
36
+ # @!attribute profiles
37
+ # List of messaging profile IDs
38
+ #
39
+ # @return [Array<String>, nil]
40
+ optional :profiles, Telnyx::Internal::Type::ArrayOf[String]
41
+
42
+ # @!attribute record_type
43
+ #
44
+ # @return [String, nil]
45
+ optional :record_type, String
46
+
47
+ # @!attribute report_url
48
+ #
49
+ # @return [String, nil]
50
+ optional :report_url, String
51
+
52
+ # @!attribute result
53
+ #
54
+ # @return [Object, nil]
55
+ optional :result, Telnyx::Internal::Type::Unknown
56
+
57
+ # @!attribute start_time
58
+ #
59
+ # @return [Time, nil]
60
+ optional :start_time, Time
61
+
62
+ # @!attribute status
63
+ # Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
64
+ #
65
+ # @return [Integer, nil]
66
+ optional :status, Integer
67
+
68
+ # @!attribute updated_at
69
+ #
70
+ # @return [Time, nil]
71
+ optional :updated_at, Time
72
+
73
+ # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, profiles: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
74
+ # Legacy V2 MDR usage report response
75
+ #
76
+ # @param id [String] Identifies the resource
77
+ #
78
+ # @param aggregation_type [Integer] Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
79
+ #
80
+ # @param connections [Array<Integer>]
81
+ #
82
+ # @param created_at [Time]
83
+ #
84
+ # @param end_time [Time]
85
+ #
86
+ # @param profiles [Array<String>] List of messaging profile IDs
87
+ #
88
+ # @param record_type [String]
89
+ #
90
+ # @param report_url [String]
91
+ #
92
+ # @param result [Object]
93
+ #
94
+ # @param start_time [Time]
95
+ #
96
+ # @param status [Integer] Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
97
+ #
98
+ # @param updated_at [Time]
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -10,105 +10,11 @@ module Telnyx
10
10
  # @!attribute data
11
11
  # Legacy V2 MDR usage report response
12
12
  #
13
- # @return [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingCreateResponse::Data, nil]
14
- optional :data, -> { Telnyx::Models::Legacy::Reporting::UsageReports::MessagingCreateResponse::Data }
13
+ # @return [Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy, nil]
14
+ optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingCreateResponse::Data] Legacy V2 MDR usage report response
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::UsageReports::MessagingCreateResponse#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: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
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 profiles
49
- # List of messaging profile IDs
50
- #
51
- # @return [Array<String>, nil]
52
- optional :profiles, Telnyx::Internal::Type::ArrayOf[String]
53
-
54
- # @!attribute record_type
55
- #
56
- # @return [String, nil]
57
- optional :record_type, String
58
-
59
- # @!attribute report_url
60
- #
61
- # @return [String, nil]
62
- optional :report_url, String
63
-
64
- # @!attribute result
65
- #
66
- # @return [Object, nil]
67
- optional :result, Telnyx::Internal::Type::Unknown
68
-
69
- # @!attribute start_time
70
- #
71
- # @return [Time, nil]
72
- optional :start_time, Time
73
-
74
- # @!attribute status
75
- # Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
76
- #
77
- # @return [Integer, nil]
78
- optional :status, Integer
79
-
80
- # @!attribute updated_at
81
- #
82
- # @return [Time, nil]
83
- optional :updated_at, Time
84
-
85
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, profiles: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
86
- # Legacy V2 MDR usage report response
87
- #
88
- # @param id [String] Identifies the resource
89
- #
90
- # @param aggregation_type [Integer] Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
91
- #
92
- # @param connections [Array<Integer>]
93
- #
94
- # @param created_at [Time]
95
- #
96
- # @param end_time [Time]
97
- #
98
- # @param profiles [Array<String>] List of messaging profile IDs
99
- #
100
- # @param record_type [String]
101
- #
102
- # @param report_url [String]
103
- #
104
- # @param result [Object]
105
- #
106
- # @param start_time [Time]
107
- #
108
- # @param status [Integer] Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
109
- #
110
- # @param updated_at [Time]
111
- end
17
+ # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy] Legacy V2 MDR usage report response
112
18
  end
113
19
  end
114
20
  end
@@ -10,105 +10,11 @@ module Telnyx
10
10
  # @!attribute data
11
11
  # Legacy V2 MDR usage report response
12
12
  #
13
- # @return [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingDeleteResponse::Data, nil]
14
- optional :data, -> { Telnyx::Models::Legacy::Reporting::UsageReports::MessagingDeleteResponse::Data }
13
+ # @return [Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy, nil]
14
+ optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingDeleteResponse::Data] Legacy V2 MDR usage report response
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::UsageReports::MessagingDeleteResponse#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: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
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 profiles
49
- # List of messaging profile IDs
50
- #
51
- # @return [Array<String>, nil]
52
- optional :profiles, Telnyx::Internal::Type::ArrayOf[String]
53
-
54
- # @!attribute record_type
55
- #
56
- # @return [String, nil]
57
- optional :record_type, String
58
-
59
- # @!attribute report_url
60
- #
61
- # @return [String, nil]
62
- optional :report_url, String
63
-
64
- # @!attribute result
65
- #
66
- # @return [Object, nil]
67
- optional :result, Telnyx::Internal::Type::Unknown
68
-
69
- # @!attribute start_time
70
- #
71
- # @return [Time, nil]
72
- optional :start_time, Time
73
-
74
- # @!attribute status
75
- # Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
76
- #
77
- # @return [Integer, nil]
78
- optional :status, Integer
79
-
80
- # @!attribute updated_at
81
- #
82
- # @return [Time, nil]
83
- optional :updated_at, Time
84
-
85
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, profiles: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
86
- # Legacy V2 MDR usage report response
87
- #
88
- # @param id [String] Identifies the resource
89
- #
90
- # @param aggregation_type [Integer] Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
91
- #
92
- # @param connections [Array<Integer>]
93
- #
94
- # @param created_at [Time]
95
- #
96
- # @param end_time [Time]
97
- #
98
- # @param profiles [Array<String>] List of messaging profile IDs
99
- #
100
- # @param record_type [String]
101
- #
102
- # @param report_url [String]
103
- #
104
- # @param result [Object]
105
- #
106
- # @param start_time [Time]
107
- #
108
- # @param status [Integer] Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
109
- #
110
- # @param updated_at [Time]
111
- end
17
+ # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy] Legacy V2 MDR usage report response
112
18
  end
113
19
  end
114
20
  end
@@ -9,9 +9,9 @@ module Telnyx
9
9
  class MessagingListResponse < Telnyx::Internal::Type::BaseModel
10
10
  # @!attribute data
11
11
  #
12
- # @return [Array<Telnyx::Models::Legacy::Reporting::UsageReports::MessagingListResponse::Data>, nil]
12
+ # @return [Array<Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy>, nil]
13
13
  optional :data,
14
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Legacy::Reporting::UsageReports::MessagingListResponse::Data] }
14
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy] }
15
15
 
16
16
  # @!attribute meta
17
17
  #
@@ -19,102 +19,9 @@ module Telnyx
19
19
  optional :meta, -> { Telnyx::Models::Legacy::Reporting::UsageReports::MessagingListResponse::Meta }
20
20
 
21
21
  # @!method initialize(data: nil, meta: nil)
22
- # @param data [Array<Telnyx::Models::Legacy::Reporting::UsageReports::MessagingListResponse::Data>]
22
+ # @param data [Array<Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy>]
23
23
  # @param meta [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingListResponse::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: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
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 profiles
54
- # List of messaging profile IDs
55
- #
56
- # @return [Array<String>, nil]
57
- optional :profiles, Telnyx::Internal::Type::ArrayOf[String]
58
-
59
- # @!attribute record_type
60
- #
61
- # @return [String, nil]
62
- optional :record_type, String
63
-
64
- # @!attribute report_url
65
- #
66
- # @return [String, nil]
67
- optional :report_url, String
68
-
69
- # @!attribute result
70
- #
71
- # @return [Object, nil]
72
- optional :result, Telnyx::Internal::Type::Unknown
73
-
74
- # @!attribute start_time
75
- #
76
- # @return [Time, nil]
77
- optional :start_time, Time
78
-
79
- # @!attribute status
80
- # Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
81
- #
82
- # @return [Integer, nil]
83
- optional :status, Integer
84
-
85
- # @!attribute updated_at
86
- #
87
- # @return [Time, nil]
88
- optional :updated_at, Time
89
-
90
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, profiles: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
91
- # Legacy V2 MDR usage report response
92
- #
93
- # @param id [String] Identifies the resource
94
- #
95
- # @param aggregation_type [Integer] Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
96
- #
97
- # @param connections [Array<Integer>]
98
- #
99
- # @param created_at [Time]
100
- #
101
- # @param end_time [Time]
102
- #
103
- # @param profiles [Array<String>] List of messaging profile IDs
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
117
-
118
25
  # @see Telnyx::Models::Legacy::Reporting::UsageReports::MessagingListResponse#meta
119
26
  class Meta < Telnyx::Internal::Type::BaseModel
120
27
  # @!attribute page_number
@@ -10,105 +10,11 @@ module Telnyx
10
10
  # @!attribute data
11
11
  # Legacy V2 MDR usage report response
12
12
  #
13
- # @return [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingRetrieveResponse::Data, nil]
14
- optional :data, -> { Telnyx::Models::Legacy::Reporting::UsageReports::MessagingRetrieveResponse::Data }
13
+ # @return [Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy, nil]
14
+ optional :data, -> { Telnyx::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::MessagingRetrieveResponse::Data] Legacy V2 MDR usage report response
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::UsageReports::MessagingRetrieveResponse#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: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
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 profiles
49
- # List of messaging profile IDs
50
- #
51
- # @return [Array<String>, nil]
52
- optional :profiles, Telnyx::Internal::Type::ArrayOf[String]
53
-
54
- # @!attribute record_type
55
- #
56
- # @return [String, nil]
57
- optional :record_type, String
58
-
59
- # @!attribute report_url
60
- #
61
- # @return [String, nil]
62
- optional :report_url, String
63
-
64
- # @!attribute result
65
- #
66
- # @return [Object, nil]
67
- optional :result, Telnyx::Internal::Type::Unknown
68
-
69
- # @!attribute start_time
70
- #
71
- # @return [Time, nil]
72
- optional :start_time, Time
73
-
74
- # @!attribute status
75
- # Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
76
- #
77
- # @return [Integer, nil]
78
- optional :status, Integer
79
-
80
- # @!attribute updated_at
81
- #
82
- # @return [Time, nil]
83
- optional :updated_at, Time
84
-
85
- # @!method initialize(id: nil, aggregation_type: nil, connections: nil, created_at: nil, end_time: nil, profiles: nil, record_type: nil, report_url: nil, result: nil, start_time: nil, status: nil, updated_at: nil)
86
- # Legacy V2 MDR usage report response
87
- #
88
- # @param id [String] Identifies the resource
89
- #
90
- # @param aggregation_type [Integer] Aggregation type: No aggregation = 0, By Messaging Profile = 1, By Tags = 2
91
- #
92
- # @param connections [Array<Integer>]
93
- #
94
- # @param created_at [Time]
95
- #
96
- # @param end_time [Time]
97
- #
98
- # @param profiles [Array<String>] List of messaging profile IDs
99
- #
100
- # @param record_type [String]
101
- #
102
- # @param report_url [String]
103
- #
104
- # @param result [Object]
105
- #
106
- # @param start_time [Time]
107
- #
108
- # @param status [Integer] Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
109
- #
110
- # @param updated_at [Time]
111
- end
17
+ # @param data [Telnyx::Models::Legacy::Reporting::UsageReports::MdrUsageReportResponseLegacy] Legacy V2 MDR usage report response
112
18
  end
113
19
  end
114
20
  end