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,156 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Legacy
6
+ module Reporting
7
+ module BatchDetailRecords
8
+ class CdrDetailedReqResponse < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute id
10
+ # Unique identifier for the report
11
+ #
12
+ # @return [String, nil]
13
+ optional :id, String
14
+
15
+ # @!attribute call_types
16
+ # List of call types (Inbound = 1, Outbound = 2)
17
+ #
18
+ # @return [Array<Integer>, nil]
19
+ optional :call_types, Telnyx::Internal::Type::ArrayOf[Integer]
20
+
21
+ # @!attribute connections
22
+ # List of connections
23
+ #
24
+ # @return [Array<Integer>, nil]
25
+ optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
26
+
27
+ # @!attribute created_at
28
+ # Creation date of the report
29
+ #
30
+ # @return [String, nil]
31
+ optional :created_at, String
32
+
33
+ # @!attribute end_time
34
+ # End time in ISO format
35
+ #
36
+ # @return [String, nil]
37
+ optional :end_time, String
38
+
39
+ # @!attribute filters
40
+ # List of filters
41
+ #
42
+ # @return [Array<Telnyx::Models::Legacy::Reporting::Filter>, nil]
43
+ optional :filters, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::Filter] }
44
+
45
+ # @!attribute managed_accounts
46
+ # List of managed accounts
47
+ #
48
+ # @return [Array<String>, nil]
49
+ optional :managed_accounts, Telnyx::Internal::Type::ArrayOf[String]
50
+
51
+ # @!attribute record_type
52
+ #
53
+ # @return [String, nil]
54
+ optional :record_type, String
55
+
56
+ # @!attribute record_types
57
+ # List of record types (Complete = 1, Incomplete = 2, Errors = 3)
58
+ #
59
+ # @return [Array<Integer>, nil]
60
+ optional :record_types, Telnyx::Internal::Type::ArrayOf[Integer]
61
+
62
+ # @!attribute report_name
63
+ # Name of the report
64
+ #
65
+ # @return [String, nil]
66
+ optional :report_name, String
67
+
68
+ # @!attribute report_url
69
+ # URL to download the report
70
+ #
71
+ # @return [String, nil]
72
+ optional :report_url, String
73
+
74
+ # @!attribute retry_
75
+ # Number of retries
76
+ #
77
+ # @return [Integer, nil]
78
+ optional :retry_, Integer, api_name: :retry
79
+
80
+ # @!attribute source
81
+ # Source of the report. Valid values: calls (default), call-control, fax-api,
82
+ # webrtc
83
+ #
84
+ # @return [String, nil]
85
+ optional :source, String
86
+
87
+ # @!attribute start_time
88
+ # Start time in ISO format
89
+ #
90
+ # @return [String, nil]
91
+ optional :start_time, String
92
+
93
+ # @!attribute status
94
+ # Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
95
+ #
96
+ # @return [Integer, nil]
97
+ optional :status, Integer
98
+
99
+ # @!attribute timezone
100
+ # Timezone for the report
101
+ #
102
+ # @return [String, nil]
103
+ optional :timezone, String
104
+
105
+ # @!attribute updated_at
106
+ # Last update date of the report
107
+ #
108
+ # @return [String, nil]
109
+ optional :updated_at, String
110
+
111
+ # @!method initialize(id: nil, call_types: nil, connections: nil, created_at: nil, end_time: nil, filters: nil, managed_accounts: nil, record_type: nil, record_types: nil, report_name: nil, report_url: nil, retry_: nil, source: nil, start_time: nil, status: nil, timezone: nil, updated_at: nil)
112
+ # Some parameter documentations has been truncated, see
113
+ # {Telnyx::Models::Legacy::Reporting::BatchDetailRecords::CdrDetailedReqResponse}
114
+ # for more details.
115
+ #
116
+ # Response object for CDR detailed report
117
+ #
118
+ # @param id [String] Unique identifier for the report
119
+ #
120
+ # @param call_types [Array<Integer>] List of call types (Inbound = 1, Outbound = 2)
121
+ #
122
+ # @param connections [Array<Integer>] List of connections
123
+ #
124
+ # @param created_at [String] Creation date of the report
125
+ #
126
+ # @param end_time [String] End time in ISO format
127
+ #
128
+ # @param filters [Array<Telnyx::Models::Legacy::Reporting::Filter>] List of filters
129
+ #
130
+ # @param managed_accounts [Array<String>] List of managed accounts
131
+ #
132
+ # @param record_type [String]
133
+ #
134
+ # @param record_types [Array<Integer>] List of record types (Complete = 1, Incomplete = 2, Errors = 3)
135
+ #
136
+ # @param report_name [String] Name of the report
137
+ #
138
+ # @param report_url [String] URL to download the report
139
+ #
140
+ # @param retry_ [Integer] Number of retries
141
+ #
142
+ # @param source [String] Source of the report. Valid values: calls (default), call-control, fax-api, webr
143
+ #
144
+ # @param start_time [String] Start time in ISO format
145
+ #
146
+ # @param status [Integer] Status of the report (Pending = 1, Complete = 2, Failed = 3, Expired = 4)
147
+ #
148
+ # @param timezone [String] Timezone for the report
149
+ #
150
+ # @param updated_at [String] Last update date of the report
151
+ end
152
+ end
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,151 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Legacy
6
+ module Reporting
7
+ module BatchDetailRecords
8
+ class MdrDetailReportResponse < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute id
10
+ # Identifies the resource
11
+ #
12
+ # @return [String, nil]
13
+ optional :id, String
14
+
15
+ # @!attribute connections
16
+ #
17
+ # @return [Array<Integer>, nil]
18
+ optional :connections, Telnyx::Internal::Type::ArrayOf[Integer]
19
+
20
+ # @!attribute created_at
21
+ #
22
+ # @return [Time, nil]
23
+ optional :created_at, Time
24
+
25
+ # @!attribute directions
26
+ #
27
+ # @return [Array<Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::Direction>, nil]
28
+ optional :directions,
29
+ -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::Direction] }
30
+
31
+ # @!attribute end_date
32
+ #
33
+ # @return [Time, nil]
34
+ optional :end_date, Time
35
+
36
+ # @!attribute filters
37
+ #
38
+ # @return [Array<Telnyx::Models::Legacy::Reporting::Filter>, nil]
39
+ optional :filters, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::Filter] }
40
+
41
+ # @!attribute profiles
42
+ # List of messaging profile IDs
43
+ #
44
+ # @return [Array<String>, nil]
45
+ optional :profiles, Telnyx::Internal::Type::ArrayOf[String]
46
+
47
+ # @!attribute record_type
48
+ #
49
+ # @return [String, nil]
50
+ optional :record_type, String
51
+
52
+ # @!attribute record_types
53
+ #
54
+ # @return [Array<Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::RecordType>, nil]
55
+ optional :record_types,
56
+ -> { Telnyx::Internal::Type::ArrayOf[enum: Telnyx::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::RecordType] }
57
+
58
+ # @!attribute report_name
59
+ #
60
+ # @return [String, nil]
61
+ optional :report_name, String
62
+
63
+ # @!attribute report_url
64
+ #
65
+ # @return [String, nil]
66
+ optional :report_url, String
67
+
68
+ # @!attribute start_date
69
+ #
70
+ # @return [Time, nil]
71
+ optional :start_date, Time
72
+
73
+ # @!attribute status
74
+ #
75
+ # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::Status, nil]
76
+ optional :status,
77
+ enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::Status }
78
+
79
+ # @!attribute updated_at
80
+ #
81
+ # @return [Time, nil]
82
+ optional :updated_at, Time
83
+
84
+ # @!method initialize(id: nil, connections: nil, created_at: nil, directions: nil, end_date: nil, filters: nil, profiles: nil, record_type: nil, record_types: nil, report_name: nil, report_url: nil, start_date: nil, status: nil, updated_at: nil)
85
+ # @param id [String] Identifies the resource
86
+ #
87
+ # @param connections [Array<Integer>]
88
+ #
89
+ # @param created_at [Time]
90
+ #
91
+ # @param directions [Array<Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::Direction>]
92
+ #
93
+ # @param end_date [Time]
94
+ #
95
+ # @param filters [Array<Telnyx::Models::Legacy::Reporting::Filter>]
96
+ #
97
+ # @param profiles [Array<String>] List of messaging profile IDs
98
+ #
99
+ # @param record_type [String]
100
+ #
101
+ # @param record_types [Array<Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::RecordType>]
102
+ #
103
+ # @param report_name [String]
104
+ #
105
+ # @param report_url [String]
106
+ #
107
+ # @param start_date [Time]
108
+ #
109
+ # @param status [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse::Status]
110
+ #
111
+ # @param updated_at [Time]
112
+
113
+ module Direction
114
+ extend Telnyx::Internal::Type::Enum
115
+
116
+ INBOUND = :INBOUND
117
+ OUTBOUND = :OUTBOUND
118
+
119
+ # @!method self.values
120
+ # @return [Array<Symbol>]
121
+ end
122
+
123
+ module RecordType
124
+ extend Telnyx::Internal::Type::Enum
125
+
126
+ INCOMPLETE = :INCOMPLETE
127
+ COMPLETED = :COMPLETED
128
+ ERRORS = :ERRORS
129
+
130
+ # @!method self.values
131
+ # @return [Array<Symbol>]
132
+ end
133
+
134
+ # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MdrDetailReportResponse#status
135
+ module Status
136
+ extend Telnyx::Internal::Type::Enum
137
+
138
+ PENDING = :PENDING
139
+ COMPLETE = :COMPLETE
140
+ FAILED = :FAILED
141
+ EXPIRED = :EXPIRED
142
+
143
+ # @!method self.values
144
+ # @return [Array<Symbol>]
145
+ end
146
+ end
147
+ end
148
+ end
149
+ end
150
+ end
151
+ end
@@ -39,9 +39,8 @@ module Telnyx
39
39
  # @!attribute filters
40
40
  # List of filters to apply
41
41
  #
42
- # @return [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter>, nil]
43
- optional :filters,
44
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter] }
42
+ # @return [Array<Telnyx::Models::Legacy::Reporting::Filter>, nil]
43
+ optional :filters, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::Filter] }
45
44
 
46
45
  # @!attribute include_message_body
47
46
  # Whether to include message body in the report
@@ -98,7 +97,7 @@ module Telnyx
98
97
  #
99
98
  # @param directions [Array<Integer>] List of directions to filter by (Inbound = 1, Outbound = 2)
100
99
  #
101
- # @param filters [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter>] List of filters to apply
100
+ # @param filters [Array<Telnyx::Models::Legacy::Reporting::Filter>] List of filters to apply
102
101
  #
103
102
  # @param include_message_body [Boolean] Whether to include message body in the report
104
103
  #
@@ -115,112 +114,6 @@ module Telnyx
115
114
  # @param timezone [String] Timezone for the report
116
115
  #
117
116
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
118
-
119
- class Filter < Telnyx::Internal::Type::BaseModel
120
- # @!attribute billing_group
121
- # Billing group UUID to filter by
122
- #
123
- # @return [String, nil]
124
- optional :billing_group, String
125
-
126
- # @!attribute cld
127
- # Called line identification (destination number)
128
- #
129
- # @return [String, nil]
130
- optional :cld, String
131
-
132
- # @!attribute cld_filter
133
- # Filter type for CLD matching
134
- #
135
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::CldFilter, nil]
136
- optional :cld_filter,
137
- enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::CldFilter }
138
-
139
- # @!attribute cli
140
- # Calling line identification (caller ID)
141
- #
142
- # @return [String, nil]
143
- optional :cli, String
144
-
145
- # @!attribute cli_filter
146
- # Filter type for CLI matching
147
- #
148
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::CliFilter, nil]
149
- optional :cli_filter,
150
- enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::CliFilter }
151
-
152
- # @!attribute filter_type
153
- # Logical operator for combining filters
154
- #
155
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::FilterType, nil]
156
- optional :filter_type,
157
- enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::FilterType }
158
-
159
- # @!attribute tags_list
160
- # Tag name to filter by
161
- #
162
- # @return [String, nil]
163
- optional :tags_list, String
164
-
165
- # @!method initialize(billing_group: nil, cld: nil, cld_filter: nil, cli: nil, cli_filter: nil, filter_type: nil, tags_list: nil)
166
- # Query filter criteria. Note: The first filter object must specify filter_type as
167
- # 'and'. You cannot follow an 'or' with another 'and'.
168
- #
169
- # @param billing_group [String] Billing group UUID to filter by
170
- #
171
- # @param cld [String] Called line identification (destination number)
172
- #
173
- # @param cld_filter [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::CldFilter] Filter type for CLD matching
174
- #
175
- # @param cli [String] Calling line identification (caller ID)
176
- #
177
- # @param cli_filter [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::CliFilter] Filter type for CLI matching
178
- #
179
- # @param filter_type [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter::FilterType] Logical operator for combining filters
180
- #
181
- # @param tags_list [String] Tag name to filter by
182
-
183
- # Filter type for CLD matching
184
- #
185
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter#cld_filter
186
- module CldFilter
187
- extend Telnyx::Internal::Type::Enum
188
-
189
- CONTAINS = :contains
190
- STARTS_WITH = :starts_with
191
- ENDS_WITH = :ends_with
192
-
193
- # @!method self.values
194
- # @return [Array<Symbol>]
195
- end
196
-
197
- # Filter type for CLI matching
198
- #
199
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter#cli_filter
200
- module CliFilter
201
- extend Telnyx::Internal::Type::Enum
202
-
203
- CONTAINS = :contains
204
- STARTS_WITH = :starts_with
205
- ENDS_WITH = :ends_with
206
-
207
- # @!method self.values
208
- # @return [Array<Symbol>]
209
- end
210
-
211
- # Logical operator for combining filters
212
- #
213
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::MessagingCreateParams::Filter#filter_type
214
- module FilterType
215
- extend Telnyx::Internal::Type::Enum
216
-
217
- AND = :and
218
- OR = :or
219
-
220
- # @!method self.values
221
- # @return [Array<Symbol>]
222
- end
223
- end
224
117
  end
225
118
  end
226
119
  end