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
@@ -9,81 +9,11 @@ module Telnyx
9
9
  class SpeechToTextDeleteResponse < Telnyx::Internal::Type::BaseModel
10
10
  # @!attribute data
11
11
  #
12
- # @return [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data, nil]
13
- optional :data,
14
- -> { Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data }
12
+ # @return [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse, nil]
13
+ optional :data, -> { Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse }
15
14
 
16
15
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data]
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse#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 created_at
28
- #
29
- # @return [Time, nil]
30
- optional :created_at, Time
31
-
32
- # @!attribute download_link
33
- # URL to download the report
34
- #
35
- # @return [String, nil]
36
- optional :download_link, String
37
-
38
- # @!attribute end_date
39
- #
40
- # @return [Time, nil]
41
- optional :end_date, Time
42
-
43
- # @!attribute record_type
44
- #
45
- # @return [String, nil]
46
- optional :record_type, String
47
-
48
- # @!attribute start_date
49
- #
50
- # @return [Time, nil]
51
- optional :start_date, Time
52
-
53
- # @!attribute status
54
- #
55
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::Status, nil]
56
- optional :status,
57
- enum: -> { Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::Status }
58
-
59
- # @!method initialize(id: nil, created_at: nil, download_link: nil, end_date: nil, record_type: nil, start_date: nil, status: nil)
60
- # @param id [String] Identifies the resource
61
- #
62
- # @param created_at [Time]
63
- #
64
- # @param download_link [String] URL to download the report
65
- #
66
- # @param end_date [Time]
67
- #
68
- # @param record_type [String]
69
- #
70
- # @param start_date [Time]
71
- #
72
- # @param status [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::Status]
73
-
74
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data#status
75
- module Status
76
- extend Telnyx::Internal::Type::Enum
77
-
78
- PENDING = :PENDING
79
- COMPLETE = :COMPLETE
80
- FAILED = :FAILED
81
- EXPIRED = :EXPIRED
82
-
83
- # @!method self.values
84
- # @return [Array<Symbol>]
85
- end
86
- end
16
+ # @param data [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
87
17
  end
88
18
  end
89
19
  end
@@ -9,80 +9,12 @@ module Telnyx
9
9
  class SpeechToTextListResponse < Telnyx::Internal::Type::BaseModel
10
10
  # @!attribute data
11
11
  #
12
- # @return [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data>, nil]
12
+ # @return [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse>, nil]
13
13
  optional :data,
14
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data] }
14
+ -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse] }
15
15
 
16
16
  # @!method initialize(data: nil)
17
- # @param data [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data>]
18
-
19
- class Data < Telnyx::Internal::Type::BaseModel
20
- # @!attribute id
21
- # Identifies the resource
22
- #
23
- # @return [String, nil]
24
- optional :id, String
25
-
26
- # @!attribute created_at
27
- #
28
- # @return [Time, nil]
29
- optional :created_at, Time
30
-
31
- # @!attribute download_link
32
- # URL to download the report
33
- #
34
- # @return [String, nil]
35
- optional :download_link, String
36
-
37
- # @!attribute end_date
38
- #
39
- # @return [Time, nil]
40
- optional :end_date, Time
41
-
42
- # @!attribute record_type
43
- #
44
- # @return [String, nil]
45
- optional :record_type, String
46
-
47
- # @!attribute start_date
48
- #
49
- # @return [Time, nil]
50
- optional :start_date, Time
51
-
52
- # @!attribute status
53
- #
54
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::Status, nil]
55
- optional :status,
56
- enum: -> { Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::Status }
57
-
58
- # @!method initialize(id: nil, created_at: nil, download_link: nil, end_date: nil, record_type: nil, start_date: nil, status: nil)
59
- # @param id [String] Identifies the resource
60
- #
61
- # @param created_at [Time]
62
- #
63
- # @param download_link [String] URL to download the report
64
- #
65
- # @param end_date [Time]
66
- #
67
- # @param record_type [String]
68
- #
69
- # @param start_date [Time]
70
- #
71
- # @param status [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::Status]
72
-
73
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data#status
74
- module Status
75
- extend Telnyx::Internal::Type::Enum
76
-
77
- PENDING = :PENDING
78
- COMPLETE = :COMPLETE
79
- FAILED = :FAILED
80
- EXPIRED = :EXPIRED
81
-
82
- # @!method self.values
83
- # @return [Array<Symbol>]
84
- end
85
- end
17
+ # @param data [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse>]
86
18
  end
87
19
  end
88
20
  end
@@ -9,81 +9,11 @@ module Telnyx
9
9
  class SpeechToTextRetrieveResponse < Telnyx::Internal::Type::BaseModel
10
10
  # @!attribute data
11
11
  #
12
- # @return [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data, nil]
13
- optional :data,
14
- -> { Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data }
12
+ # @return [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse, nil]
13
+ optional :data, -> { Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse }
15
14
 
16
15
  # @!method initialize(data: nil)
17
- # @param data [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data]
18
-
19
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse#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 created_at
28
- #
29
- # @return [Time, nil]
30
- optional :created_at, Time
31
-
32
- # @!attribute download_link
33
- # URL to download the report
34
- #
35
- # @return [String, nil]
36
- optional :download_link, String
37
-
38
- # @!attribute end_date
39
- #
40
- # @return [Time, nil]
41
- optional :end_date, Time
42
-
43
- # @!attribute record_type
44
- #
45
- # @return [String, nil]
46
- optional :record_type, String
47
-
48
- # @!attribute start_date
49
- #
50
- # @return [Time, nil]
51
- optional :start_date, Time
52
-
53
- # @!attribute status
54
- #
55
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::Status, nil]
56
- optional :status,
57
- enum: -> { Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::Status }
58
-
59
- # @!method initialize(id: nil, created_at: nil, download_link: nil, end_date: nil, record_type: nil, start_date: nil, status: nil)
60
- # @param id [String] Identifies the resource
61
- #
62
- # @param created_at [Time]
63
- #
64
- # @param download_link [String] URL to download the report
65
- #
66
- # @param end_date [Time]
67
- #
68
- # @param record_type [String]
69
- #
70
- # @param start_date [Time]
71
- #
72
- # @param status [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::Status]
73
-
74
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data#status
75
- module Status
76
- extend Telnyx::Internal::Type::Enum
77
-
78
- PENDING = :PENDING
79
- COMPLETE = :COMPLETE
80
- FAILED = :FAILED
81
- EXPIRED = :EXPIRED
82
-
83
- # @!method self.values
84
- # @return [Array<Symbol>]
85
- end
86
- end
16
+ # @param data [Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
87
17
  end
88
18
  end
89
19
  end
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Telnyx
4
+ module Models
5
+ module Legacy
6
+ module Reporting
7
+ module BatchDetailRecords
8
+ class SttDetailReportResponse < Telnyx::Internal::Type::BaseModel
9
+ # @!attribute id
10
+ # Identifies the resource
11
+ #
12
+ # @return [String, nil]
13
+ optional :id, String
14
+
15
+ # @!attribute created_at
16
+ #
17
+ # @return [Time, nil]
18
+ optional :created_at, Time
19
+
20
+ # @!attribute download_link
21
+ # URL to download the report
22
+ #
23
+ # @return [String, nil]
24
+ optional :download_link, String
25
+
26
+ # @!attribute end_date
27
+ #
28
+ # @return [Time, nil]
29
+ optional :end_date, Time
30
+
31
+ # @!attribute record_type
32
+ #
33
+ # @return [String, nil]
34
+ optional :record_type, String
35
+
36
+ # @!attribute start_date
37
+ #
38
+ # @return [Time, nil]
39
+ optional :start_date, Time
40
+
41
+ # @!attribute status
42
+ #
43
+ # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::Status, nil]
44
+ optional :status,
45
+ enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::Status }
46
+
47
+ # @!method initialize(id: nil, created_at: nil, download_link: nil, end_date: nil, record_type: nil, start_date: nil, status: nil)
48
+ # @param id [String] Identifies the resource
49
+ #
50
+ # @param created_at [Time]
51
+ #
52
+ # @param download_link [String] URL to download the report
53
+ #
54
+ # @param end_date [Time]
55
+ #
56
+ # @param record_type [String]
57
+ #
58
+ # @param start_date [Time]
59
+ #
60
+ # @param status [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::Status]
61
+
62
+ # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse#status
63
+ module Status
64
+ extend Telnyx::Internal::Type::Enum
65
+
66
+ PENDING = :PENDING
67
+ COMPLETE = :COMPLETE
68
+ FAILED = :FAILED
69
+ EXPIRED = :EXPIRED
70
+
71
+ # @!method self.values
72
+ # @return [Array<Symbol>]
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
78
+ end
79
+ end
@@ -43,9 +43,8 @@ module Telnyx
43
43
  # @!attribute filters
44
44
  # List of filters to apply
45
45
  #
46
- # @return [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter>, nil]
47
- optional :filters,
48
- -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter] }
46
+ # @return [Array<Telnyx::Models::Legacy::Reporting::Filter>, nil]
47
+ optional :filters, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Legacy::Reporting::Filter] }
49
48
 
50
49
  # @!attribute include_all_metadata
51
50
  # Whether to include all metadata
@@ -105,7 +104,7 @@ module Telnyx
105
104
  #
106
105
  # @param fields [Array<String>] Set of fields to include in the report
107
106
  #
108
- # @param filters [Array<Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter>] List of filters to apply
107
+ # @param filters [Array<Telnyx::Models::Legacy::Reporting::Filter>] List of filters to apply
109
108
  #
110
109
  # @param include_all_metadata [Boolean] Whether to include all metadata
111
110
  #
@@ -122,112 +121,6 @@ module Telnyx
122
121
  # @param timezone [String] Timezone for the report
123
122
  #
124
123
  # @param request_options [Telnyx::RequestOptions, Hash{Symbol=>Object}]
125
-
126
- class Filter < Telnyx::Internal::Type::BaseModel
127
- # @!attribute billing_group
128
- # Billing group UUID to filter by
129
- #
130
- # @return [String, nil]
131
- optional :billing_group, String
132
-
133
- # @!attribute cld
134
- # Called line identification (destination number)
135
- #
136
- # @return [String, nil]
137
- optional :cld, String
138
-
139
- # @!attribute cld_filter
140
- # Filter type for CLD matching
141
- #
142
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::CldFilter, nil]
143
- optional :cld_filter,
144
- enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::CldFilter }
145
-
146
- # @!attribute cli
147
- # Calling line identification (caller ID)
148
- #
149
- # @return [String, nil]
150
- optional :cli, String
151
-
152
- # @!attribute cli_filter
153
- # Filter type for CLI matching
154
- #
155
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::CliFilter, nil]
156
- optional :cli_filter,
157
- enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::CliFilter }
158
-
159
- # @!attribute filter_type
160
- # Logical operator for combining filters
161
- #
162
- # @return [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::FilterType, nil]
163
- optional :filter_type,
164
- enum: -> { Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::FilterType }
165
-
166
- # @!attribute tags_list
167
- # Tag name to filter by
168
- #
169
- # @return [String, nil]
170
- optional :tags_list, String
171
-
172
- # @!method initialize(billing_group: nil, cld: nil, cld_filter: nil, cli: nil, cli_filter: nil, filter_type: nil, tags_list: nil)
173
- # Query filter criteria. Note: The first filter object must specify filter_type as
174
- # 'and'. You cannot follow an 'or' with another 'and'.
175
- #
176
- # @param billing_group [String] Billing group UUID to filter by
177
- #
178
- # @param cld [String] Called line identification (destination number)
179
- #
180
- # @param cld_filter [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::CldFilter] Filter type for CLD matching
181
- #
182
- # @param cli [String] Calling line identification (caller ID)
183
- #
184
- # @param cli_filter [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::CliFilter] Filter type for CLI matching
185
- #
186
- # @param filter_type [Symbol, Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::FilterType] Logical operator for combining filters
187
- #
188
- # @param tags_list [String] Tag name to filter by
189
-
190
- # Filter type for CLD matching
191
- #
192
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter#cld_filter
193
- module CldFilter
194
- extend Telnyx::Internal::Type::Enum
195
-
196
- CONTAINS = :contains
197
- STARTS_WITH = :starts_with
198
- ENDS_WITH = :ends_with
199
-
200
- # @!method self.values
201
- # @return [Array<Symbol>]
202
- end
203
-
204
- # Filter type for CLI matching
205
- #
206
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter#cli_filter
207
- module CliFilter
208
- extend Telnyx::Internal::Type::Enum
209
-
210
- CONTAINS = :contains
211
- STARTS_WITH = :starts_with
212
- ENDS_WITH = :ends_with
213
-
214
- # @!method self.values
215
- # @return [Array<Symbol>]
216
- end
217
-
218
- # Logical operator for combining filters
219
- #
220
- # @see Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter#filter_type
221
- module FilterType
222
- extend Telnyx::Internal::Type::Enum
223
-
224
- AND = :and
225
- OR = :or
226
-
227
- # @!method self.values
228
- # @return [Array<Symbol>]
229
- end
230
- end
231
124
  end
232
125
  end
233
126
  end