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
@@ -5,99 +5,23 @@ module Telnyx
5
5
  module BatchDetailRecords
6
6
  type speech_to_text_delete_response =
7
7
  {
8
- data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data
8
+ data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
9
9
  }
10
10
 
11
11
  class SpeechToTextDeleteResponse < Telnyx::Internal::Type::BaseModel
12
- attr_reader data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data?
12
+ attr_reader data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse?
13
13
 
14
14
  def data=: (
15
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data
16
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data
15
+ Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
16
+ ) -> Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
17
17
 
18
18
  def initialize: (
19
- ?data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data
19
+ ?data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
20
20
  ) -> void
21
21
 
22
22
  def to_hash: -> {
23
- data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data
23
+ data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
24
24
  }
25
-
26
- type data =
27
- {
28
- id: String,
29
- created_at: Time,
30
- download_link: String,
31
- end_date: Time,
32
- record_type: String,
33
- start_date: Time,
34
- status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status
35
- }
36
-
37
- class Data < Telnyx::Internal::Type::BaseModel
38
- attr_reader id: String?
39
-
40
- def id=: (String) -> String
41
-
42
- attr_reader created_at: Time?
43
-
44
- def created_at=: (Time) -> Time
45
-
46
- attr_reader download_link: String?
47
-
48
- def download_link=: (String) -> String
49
-
50
- attr_reader end_date: Time?
51
-
52
- def end_date=: (Time) -> Time
53
-
54
- attr_reader record_type: String?
55
-
56
- def record_type=: (String) -> String
57
-
58
- attr_reader start_date: Time?
59
-
60
- def start_date=: (Time) -> Time
61
-
62
- attr_reader status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status?
63
-
64
- def status=: (
65
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status
66
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status
67
-
68
- def initialize: (
69
- ?id: String,
70
- ?created_at: Time,
71
- ?download_link: String,
72
- ?end_date: Time,
73
- ?record_type: String,
74
- ?start_date: Time,
75
- ?status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status
76
- ) -> void
77
-
78
- def to_hash: -> {
79
- id: String,
80
- created_at: Time,
81
- download_link: String,
82
- end_date: Time,
83
- record_type: String,
84
- start_date: Time,
85
- status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status
86
- }
87
-
88
- type status = :PENDING | :COMPLETE | :FAILED | :EXPIRED
89
-
90
- module Status
91
- extend Telnyx::Internal::Type::Enum
92
-
93
- PENDING: :PENDING
94
- COMPLETE: :COMPLETE
95
- FAILED: :FAILED
96
- EXPIRED: :EXPIRED
97
-
98
- def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextDeleteResponse::Data::status]
99
- end
100
- end
101
25
  end
102
26
  end
103
27
  end
@@ -5,99 +5,23 @@ module Telnyx
5
5
  module BatchDetailRecords
6
6
  type speech_to_text_list_response =
7
7
  {
8
- data: ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data]
8
+ data: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
9
9
  }
10
10
 
11
11
  class SpeechToTextListResponse < Telnyx::Internal::Type::BaseModel
12
- attr_reader data: ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data]?
12
+ attr_reader data: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]?
13
13
 
14
14
  def data=: (
15
- ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data]
16
- ) -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data]
15
+ ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
16
+ ) -> ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
17
17
 
18
18
  def initialize: (
19
- ?data: ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data]
19
+ ?data: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
20
20
  ) -> void
21
21
 
22
22
  def to_hash: -> {
23
- data: ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data]
23
+ data: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse]
24
24
  }
25
-
26
- type data =
27
- {
28
- id: String,
29
- created_at: Time,
30
- download_link: String,
31
- end_date: Time,
32
- record_type: String,
33
- start_date: Time,
34
- status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status
35
- }
36
-
37
- class Data < Telnyx::Internal::Type::BaseModel
38
- attr_reader id: String?
39
-
40
- def id=: (String) -> String
41
-
42
- attr_reader created_at: Time?
43
-
44
- def created_at=: (Time) -> Time
45
-
46
- attr_reader download_link: String?
47
-
48
- def download_link=: (String) -> String
49
-
50
- attr_reader end_date: Time?
51
-
52
- def end_date=: (Time) -> Time
53
-
54
- attr_reader record_type: String?
55
-
56
- def record_type=: (String) -> String
57
-
58
- attr_reader start_date: Time?
59
-
60
- def start_date=: (Time) -> Time
61
-
62
- attr_reader status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status?
63
-
64
- def status=: (
65
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status
66
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status
67
-
68
- def initialize: (
69
- ?id: String,
70
- ?created_at: Time,
71
- ?download_link: String,
72
- ?end_date: Time,
73
- ?record_type: String,
74
- ?start_date: Time,
75
- ?status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status
76
- ) -> void
77
-
78
- def to_hash: -> {
79
- id: String,
80
- created_at: Time,
81
- download_link: String,
82
- end_date: Time,
83
- record_type: String,
84
- start_date: Time,
85
- status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status
86
- }
87
-
88
- type status = :PENDING | :COMPLETE | :FAILED | :EXPIRED
89
-
90
- module Status
91
- extend Telnyx::Internal::Type::Enum
92
-
93
- PENDING: :PENDING
94
- COMPLETE: :COMPLETE
95
- FAILED: :FAILED
96
- EXPIRED: :EXPIRED
97
-
98
- def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextListResponse::Data::status]
99
- end
100
- end
101
25
  end
102
26
  end
103
27
  end
@@ -5,99 +5,23 @@ module Telnyx
5
5
  module BatchDetailRecords
6
6
  type speech_to_text_retrieve_response =
7
7
  {
8
- data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data
8
+ data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
9
9
  }
10
10
 
11
11
  class SpeechToTextRetrieveResponse < Telnyx::Internal::Type::BaseModel
12
- attr_reader data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data?
12
+ attr_reader data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse?
13
13
 
14
14
  def data=: (
15
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data
16
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data
15
+ Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
16
+ ) -> Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
17
17
 
18
18
  def initialize: (
19
- ?data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data
19
+ ?data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
20
20
  ) -> void
21
21
 
22
22
  def to_hash: -> {
23
- data: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data
23
+ data: Telnyx::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse
24
24
  }
25
-
26
- type data =
27
- {
28
- id: String,
29
- created_at: Time,
30
- download_link: String,
31
- end_date: Time,
32
- record_type: String,
33
- start_date: Time,
34
- status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status
35
- }
36
-
37
- class Data < Telnyx::Internal::Type::BaseModel
38
- attr_reader id: String?
39
-
40
- def id=: (String) -> String
41
-
42
- attr_reader created_at: Time?
43
-
44
- def created_at=: (Time) -> Time
45
-
46
- attr_reader download_link: String?
47
-
48
- def download_link=: (String) -> String
49
-
50
- attr_reader end_date: Time?
51
-
52
- def end_date=: (Time) -> Time
53
-
54
- attr_reader record_type: String?
55
-
56
- def record_type=: (String) -> String
57
-
58
- attr_reader start_date: Time?
59
-
60
- def start_date=: (Time) -> Time
61
-
62
- attr_reader status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status?
63
-
64
- def status=: (
65
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status
66
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status
67
-
68
- def initialize: (
69
- ?id: String,
70
- ?created_at: Time,
71
- ?download_link: String,
72
- ?end_date: Time,
73
- ?record_type: String,
74
- ?start_date: Time,
75
- ?status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status
76
- ) -> void
77
-
78
- def to_hash: -> {
79
- id: String,
80
- created_at: Time,
81
- download_link: String,
82
- end_date: Time,
83
- record_type: String,
84
- start_date: Time,
85
- status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status
86
- }
87
-
88
- type status = :PENDING | :COMPLETE | :FAILED | :EXPIRED
89
-
90
- module Status
91
- extend Telnyx::Internal::Type::Enum
92
-
93
- PENDING: :PENDING
94
- COMPLETE: :COMPLETE
95
- FAILED: :FAILED
96
- EXPIRED: :EXPIRED
97
-
98
- def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SpeechToTextRetrieveResponse::Data::status]
99
- end
100
- end
101
25
  end
102
26
  end
103
27
  end
@@ -0,0 +1,85 @@
1
+ module Telnyx
2
+ module Models
3
+ module Legacy
4
+ module Reporting
5
+ module BatchDetailRecords
6
+ type stt_detail_report_response =
7
+ {
8
+ id: String,
9
+ created_at: Time,
10
+ download_link: String,
11
+ end_date: Time,
12
+ record_type: String,
13
+ start_date: Time,
14
+ status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status
15
+ }
16
+
17
+ class SttDetailReportResponse < Telnyx::Internal::Type::BaseModel
18
+ attr_reader id: String?
19
+
20
+ def id=: (String) -> String
21
+
22
+ attr_reader created_at: Time?
23
+
24
+ def created_at=: (Time) -> Time
25
+
26
+ attr_reader download_link: String?
27
+
28
+ def download_link=: (String) -> String
29
+
30
+ attr_reader end_date: Time?
31
+
32
+ def end_date=: (Time) -> Time
33
+
34
+ attr_reader record_type: String?
35
+
36
+ def record_type=: (String) -> String
37
+
38
+ attr_reader start_date: Time?
39
+
40
+ def start_date=: (Time) -> Time
41
+
42
+ attr_reader status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status?
43
+
44
+ def status=: (
45
+ Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status
46
+ ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status
47
+
48
+ def initialize: (
49
+ ?id: String,
50
+ ?created_at: Time,
51
+ ?download_link: String,
52
+ ?end_date: Time,
53
+ ?record_type: String,
54
+ ?start_date: Time,
55
+ ?status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status
56
+ ) -> void
57
+
58
+ def to_hash: -> {
59
+ id: String,
60
+ created_at: Time,
61
+ download_link: String,
62
+ end_date: Time,
63
+ record_type: String,
64
+ start_date: Time,
65
+ status: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status
66
+ }
67
+
68
+ type status = :PENDING | :COMPLETE | :FAILED | :EXPIRED
69
+
70
+ module Status
71
+ extend Telnyx::Internal::Type::Enum
72
+
73
+ PENDING: :PENDING
74
+ COMPLETE: :COMPLETE
75
+ FAILED: :FAILED
76
+ EXPIRED: :EXPIRED
77
+
78
+ def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::SttDetailReportResponse::status]
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
@@ -10,7 +10,7 @@ module Telnyx
10
10
  call_types: ::Array[Integer],
11
11
  connections: ::Array[Integer],
12
12
  fields: ::Array[String],
13
- filters: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter],
13
+ filters: ::Array[Telnyx::Legacy::Reporting::Filter],
14
14
  include_all_metadata: bool,
15
15
  managed_accounts: ::Array[String],
16
16
  record_types: ::Array[Integer],
@@ -41,11 +41,11 @@ module Telnyx
41
41
 
42
42
  def fields=: (::Array[String]) -> ::Array[String]
43
43
 
44
- attr_reader filters: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter]?
44
+ attr_reader filters: ::Array[Telnyx::Legacy::Reporting::Filter]?
45
45
 
46
46
  def filters=: (
47
- ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter]
48
- ) -> ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter]
47
+ ::Array[Telnyx::Legacy::Reporting::Filter]
48
+ ) -> ::Array[Telnyx::Legacy::Reporting::Filter]
49
49
 
50
50
  attr_reader include_all_metadata: bool?
51
51
 
@@ -81,7 +81,7 @@ module Telnyx
81
81
  ?call_types: ::Array[Integer],
82
82
  ?connections: ::Array[Integer],
83
83
  ?fields: ::Array[String],
84
- ?filters: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter],
84
+ ?filters: ::Array[Telnyx::Legacy::Reporting::Filter],
85
85
  ?include_all_metadata: bool,
86
86
  ?managed_accounts: ::Array[String],
87
87
  ?record_types: ::Array[Integer],
@@ -98,7 +98,7 @@ module Telnyx
98
98
  call_types: ::Array[Integer],
99
99
  connections: ::Array[Integer],
100
100
  fields: ::Array[String],
101
- filters: ::Array[Telnyx::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter],
101
+ filters: ::Array[Telnyx::Legacy::Reporting::Filter],
102
102
  include_all_metadata: bool,
103
103
  managed_accounts: ::Array[String],
104
104
  record_types: ::Array[Integer],
@@ -108,108 +108,6 @@ module Telnyx
108
108
  timezone: String,
109
109
  request_options: Telnyx::RequestOptions
110
110
  }
111
-
112
- type filter =
113
- {
114
- billing_group: String,
115
- cld: String,
116
- cld_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter,
117
- cli: String,
118
- cli_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter,
119
- filter_type: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type,
120
- tags_list: String
121
- }
122
-
123
- class Filter < Telnyx::Internal::Type::BaseModel
124
- attr_reader billing_group: String?
125
-
126
- def billing_group=: (String) -> String
127
-
128
- attr_reader cld: String?
129
-
130
- def cld=: (String) -> String
131
-
132
- attr_reader cld_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter?
133
-
134
- def cld_filter=: (
135
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter
136
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter
137
-
138
- attr_reader cli: String?
139
-
140
- def cli=: (String) -> String
141
-
142
- attr_reader cli_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter?
143
-
144
- def cli_filter=: (
145
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter
146
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter
147
-
148
- attr_reader filter_type: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type?
149
-
150
- def filter_type=: (
151
- Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type
152
- ) -> Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type
153
-
154
- attr_reader tags_list: String?
155
-
156
- def tags_list=: (String) -> String
157
-
158
- def initialize: (
159
- ?billing_group: String,
160
- ?cld: String,
161
- ?cld_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter,
162
- ?cli: String,
163
- ?cli_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter,
164
- ?filter_type: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type,
165
- ?tags_list: String
166
- ) -> void
167
-
168
- def to_hash: -> {
169
- billing_group: String,
170
- cld: String,
171
- cld_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter,
172
- cli: String,
173
- cli_filter: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter,
174
- filter_type: Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type,
175
- tags_list: String
176
- }
177
-
178
- type cld_filter = :contains | :starts_with | :ends_with
179
-
180
- module CldFilter
181
- extend Telnyx::Internal::Type::Enum
182
-
183
- CONTAINS: :contains
184
- STARTS_WITH: :starts_with
185
- ENDS_WITH: :ends_with
186
-
187
- def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cld_filter]
188
- end
189
-
190
- type cli_filter = :contains | :starts_with | :ends_with
191
-
192
- module CliFilter
193
- extend Telnyx::Internal::Type::Enum
194
-
195
- CONTAINS: :contains
196
- STARTS_WITH: :starts_with
197
- ENDS_WITH: :ends_with
198
-
199
- def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::cli_filter]
200
- end
201
-
202
- type filter_type = :and | :or
203
-
204
- module FilterType
205
- extend Telnyx::Internal::Type::Enum
206
-
207
- AND: :and
208
- OR: :or
209
-
210
- def self?.values: -> ::Array[Telnyx::Models::Legacy::Reporting::BatchDetailRecords::VoiceCreateParams::Filter::filter_type]
211
- end
212
- end
213
111
  end
214
112
  end
215
113
  end