twilio-ruby 6.12.1 → 7.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +9 -9
  3. data/CHANGES.md +10 -57
  4. data/README.md +2 -2
  5. data/UPGRADE.md +10 -0
  6. data/lib/twilio-ruby/framework/request.rb +8 -1
  7. data/lib/twilio-ruby/http/http_client.rb +10 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +267 -0
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +332 -0
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +37 -28
  12. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -27
  13. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -17
  16. data/lib/twilio-ruby/rest/client.rb +5 -0
  17. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  18. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -2
  19. data/lib/twilio-ruby/rest/content/v1/content.rb +363 -3
  20. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  21. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  22. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +274 -0
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +253 -0
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  28. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  29. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  30. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  31. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +1 -11
  32. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  33. data/lib/twilio-ruby/rest/flex_api/v1.rb +30 -112
  34. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  35. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  36. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  37. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  38. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  39. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  40. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  41. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  42. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
  43. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -8
  44. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -2
  45. data/lib/twilio-ruby/rest/media.rb +32 -3
  46. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +2 -11
  48. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  52. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  53. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  54. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  55. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  56. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  57. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  58. data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -2
  59. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +4 -13
  60. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  61. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  62. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  63. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  64. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  65. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  66. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  67. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  68. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  69. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +13 -2
  71. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +125 -0
  72. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  73. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +132 -0
  74. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +0 -2
  75. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  76. data/lib/twilio-ruby/rest/numbers/v1.rb +15 -3
  77. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  78. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +13 -2
  79. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  80. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +3 -15
  81. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  100. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  101. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  102. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  103. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  104. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  105. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  106. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  107. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  108. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  109. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  110. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  111. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  112. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  113. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  114. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  115. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  116. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  123. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  124. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  125. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  126. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  127. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  128. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  131. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  132. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  133. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  134. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  135. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  136. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  137. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +161 -0
  138. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  139. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +2 -26
  140. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  141. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  142. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  143. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  144. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  145. data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
  146. data/lib/twilio-ruby/version.rb +1 -1
  147. metadata +17 -12
  148. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +0 -384
  149. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +0 -446
  150. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +0 -247
  151. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +0 -393
  152. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +0 -386
  153. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +0 -233
  154. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +0 -332
  155. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +0 -256
@@ -26,6 +26,8 @@ module Twilio
26
26
  @configuration = nil
27
27
  @flex_flow = nil
28
28
  @insights_assessments_comment = nil
29
+ @insights_conversational_ai = nil
30
+ @insights_conversational_ai_report_insights = nil
29
31
  @insights_conversations = nil
30
32
  @insights_questionnaires = nil
31
33
  @insights_questionnaires_category = nil
@@ -36,12 +38,6 @@ module Twilio
36
38
  @insights_settings_comment = nil
37
39
  @insights_user_roles = nil
38
40
  @interaction = nil
39
- @plugins = nil
40
- @plugin_archive = nil
41
- @plugin_configurations = nil
42
- @plugin_configuration_archive = nil
43
- @plugin_releases = nil
44
- @plugin_version_archive = nil
45
41
  @provisioning_status = nil
46
42
  @web_channel = nil
47
43
  end
@@ -99,6 +95,34 @@ module Twilio
99
95
  @insights_assessments_comment ||= InsightsAssessmentsCommentList.new self
100
96
  end
101
97
  ##
98
+ # @param [String] instance_sid Sid of Flex Service Instance
99
+ # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiContext] if instanceSid was passed.
100
+ # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiList]
101
+ def insights_conversational_ai(instance_sid=:unset)
102
+ if instance_sid.nil?
103
+ raise ArgumentError, 'instance_sid cannot be nil'
104
+ end
105
+ if instance_sid == :unset
106
+ @insights_conversational_ai ||= InsightsConversationalAiList.new self
107
+ else
108
+ InsightsConversationalAiContext.new(self, instance_sid)
109
+ end
110
+ end
111
+ ##
112
+ # @param [String] instance_sid The Instance SID of the instance for which report insights will be fetched
113
+ # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiReportInsightsContext] if instanceSid was passed.
114
+ # @return [Twilio::REST::FlexApi::V1::InsightsConversationalAiReportInsightsList]
115
+ def insights_conversational_ai_report_insights(instance_sid=:unset)
116
+ if instance_sid.nil?
117
+ raise ArgumentError, 'instance_sid cannot be nil'
118
+ end
119
+ if instance_sid == :unset
120
+ @insights_conversational_ai_report_insights ||= InsightsConversationalAiReportInsightsList.new self
121
+ else
122
+ InsightsConversationalAiReportInsightsContext.new(self, instance_sid)
123
+ end
124
+ end
125
+ ##
102
126
  # @return [Twilio::REST::FlexApi::V1::InsightsConversationsList]
103
127
  def insights_conversations
104
128
  @insights_conversations ||= InsightsConversationsList.new self
@@ -185,112 +209,6 @@ module Twilio
185
209
  end
186
210
  end
187
211
  ##
188
- # @param [String] sid The SID of the Flex Plugin resource to fetch.
189
- # @return [Twilio::REST::FlexApi::V1::PluginContext] if sid was passed.
190
- # @return [Twilio::REST::FlexApi::V1::PluginList]
191
- def plugins(sid=:unset)
192
- if sid.nil?
193
- raise ArgumentError, 'sid cannot be nil'
194
- end
195
- if sid == :unset
196
- @plugins ||= PluginList.new self
197
- else
198
- PluginContext.new(self, sid)
199
- end
200
- end
201
- ##
202
- # @param [String] sid The SID of the Flex Plugin resource to archive.
203
- # @return [Twilio::REST::FlexApi::V1::PluginArchiveContext] if sid was passed.
204
- # @return [Twilio::REST::FlexApi::V1::PluginArchiveList]
205
- def plugin_archive(sid=:unset)
206
- if sid.nil?
207
- raise ArgumentError, 'sid cannot be nil'
208
- end
209
- if sid == :unset
210
- @plugin_archive ||= PluginArchiveList.new self
211
- else
212
- PluginArchiveContext.new(self, sid)
213
- end
214
- end
215
- ##
216
- # @param [String] sid The SID of the Flex Plugin Configuration resource to fetch.
217
- # @return [Twilio::REST::FlexApi::V1::PluginConfigurationContext] if sid was passed.
218
- # @return [Twilio::REST::FlexApi::V1::PluginConfigurationList]
219
- def plugin_configurations(sid=:unset)
220
- if sid.nil?
221
- raise ArgumentError, 'sid cannot be nil'
222
- end
223
- if sid == :unset
224
- @plugin_configurations ||= PluginConfigurationList.new self
225
- else
226
- PluginConfigurationContext.new(self, sid)
227
- end
228
- end
229
- ##
230
- # @param [String] sid The SID of the Flex Plugin Configuration resource to archive.
231
- # @return [Twilio::REST::FlexApi::V1::PluginConfigurationArchiveContext] if sid was passed.
232
- # @return [Twilio::REST::FlexApi::V1::PluginConfigurationArchiveList]
233
- def plugin_configuration_archive(sid=:unset)
234
- if sid.nil?
235
- raise ArgumentError, 'sid cannot be nil'
236
- end
237
- if sid == :unset
238
- @plugin_configuration_archive ||= PluginConfigurationArchiveList.new self
239
- else
240
- PluginConfigurationArchiveContext.new(self, sid)
241
- end
242
- end
243
- ##
244
- # @param [String] sid The SID of the Flex Plugin Release resource to fetch.
245
- # @return [Twilio::REST::FlexApi::V1::PluginReleaseContext] if sid was passed.
246
- # @return [Twilio::REST::FlexApi::V1::PluginReleaseList]
247
- def plugin_releases(sid=:unset)
248
- if sid.nil?
249
- raise ArgumentError, 'sid cannot be nil'
250
- end
251
- if sid == :unset
252
- @plugin_releases ||= PluginReleaseList.new self
253
- else
254
- PluginReleaseContext.new(self, sid)
255
- end
256
- end
257
- ##
258
- # @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
259
- # @param [String] sid The SID of the Flex Plugin Version resource to archive.
260
- # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if pluginSid was passed.
261
- # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList]
262
- def plugin_version_archive(plugin_sid=:unset, sid=:unset)
263
- if plugin_sid.nil?
264
- raise ArgumentError, 'plugin_sid cannot be nil'
265
- end
266
- if sid.nil?
267
- raise ArgumentError, 'sid cannot be nil'
268
- end
269
- if plugin_sid == :unset && sid == :unset
270
- @plugin_version_archive ||= PluginVersionArchiveList.new self
271
- else
272
- PluginVersionArchiveContext.new(self, plugin_sid, sid)
273
- end
274
- end
275
- ##
276
- # @param [String] plugin_sid The SID of the Flex Plugin the resource to belongs to.
277
- # @param [String] sid The SID of the Flex Plugin Version resource to archive.
278
- # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveContext] if sid was passed.
279
- # @return [Twilio::REST::FlexApi::V1::PluginVersionArchiveList]
280
- def plugin_version_archive(plugin_sid=:unset, sid=:unset)
281
- if plugin_sid.nil?
282
- raise ArgumentError, 'plugin_sid cannot be nil'
283
- end
284
- if sid.nil?
285
- raise ArgumentError, 'sid cannot be nil'
286
- end
287
- if plugin_sid == :unset && sid == :unset
288
- @plugin_version_archive ||= PluginVersionArchiveList.new self
289
- else
290
- PluginVersionArchiveContext.new(self, plugin_sid, sid)
291
- end
292
- end
293
- ##
294
212
  # @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
295
213
  def provisioning_status
296
214
  @provisioning_status ||= ProvisioningStatusContext.new self
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class UserContext < InstanceContext
46
44
  ##
47
45
  # Initialize the UserContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
47
45
  class AnnotationContext < InstanceContext
48
46
  ##
49
47
  # Initialize the AnnotationContext
@@ -126,8 +126,6 @@ module Twilio
126
126
  end
127
127
 
128
128
 
129
- ##
130
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
131
129
  class ParticipantContext < InstanceContext
132
130
  ##
133
131
  # Initialize the ParticipantContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class RoomContext < InstanceContext
162
160
  ##
163
161
  # Initialize the RoomContext
@@ -168,8 +168,6 @@ module Twilio
168
168
  end
169
169
 
170
170
 
171
- ##
172
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
173
171
  class ServiceContext < InstanceContext
174
172
  ##
175
173
  # Initialize the ServiceContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
47
45
  class MediaContext < InstanceContext
48
46
  ##
49
47
  # Initialize the MediaContext
@@ -132,8 +132,6 @@ module Twilio
132
132
  end
133
133
 
134
134
 
135
- ##
136
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
137
135
  class OperatorResultContext < InstanceContext
138
136
  ##
139
137
  # Initialize the OperatorResultContext
@@ -201,8 +201,6 @@ module Twilio
201
201
  end
202
202
 
203
203
 
204
- ##
205
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
206
204
  class TranscriptContext < InstanceContext
207
205
  ##
208
206
  # Initialize the TranscriptContext
@@ -51,7 +51,7 @@ module Twilio
51
51
 
52
52
  # Path Solution
53
53
  @solution = { phone_number: phone_number, }
54
- @uri = "/PhoneNumbers/#{@solution[:phone_number]}"
54
+ @uri = "/PhoneNumbers/#{CGI.escape(@solution[:phone_number]).gsub("+", "%20")}"
55
55
 
56
56
 
57
57
  end
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class PhoneNumberContext < InstanceContext
46
44
  ##
47
45
  # Initialize the PhoneNumberContext
@@ -59,7 +57,7 @@ module Twilio
59
57
  end
60
58
  ##
61
59
  # Fetch the PhoneNumberInstance
62
- # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score.
60
+ # @param [String] fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number.
63
61
  # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
64
62
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
65
63
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -181,7 +179,7 @@ module Twilio
181
179
  'caller_name' => payload['caller_name'],
182
180
  'sim_swap' => payload['sim_swap'],
183
181
  'call_forwarding' => payload['call_forwarding'],
184
- 'line_status' => payload['line_status'],
182
+ 'live_activity' => payload['live_activity'],
185
183
  'line_type_intelligence' => payload['line_type_intelligence'],
186
184
  'identity_match' => payload['identity_match'],
187
185
  'reassigned_number' => payload['reassigned_number'],
@@ -261,9 +259,9 @@ module Twilio
261
259
  end
262
260
 
263
261
  ##
264
- # @return [Hash] An object that contains line status information for a mobile phone number.
265
- def line_status
266
- @properties['line_status']
262
+ # @return [Hash] An object that contains live activity information for a mobile phone number.
263
+ def live_activity
264
+ @properties['live_activity']
267
265
  end
268
266
 
269
267
  ##
@@ -304,7 +302,7 @@ module Twilio
304
302
 
305
303
  ##
306
304
  # Fetch the PhoneNumberInstance
307
- # @param [String] fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score.
305
+ # @param [String] fields A comma-separated list of fields to return. Possible values are caller_name, sim_swap, call_forwarding, live_activity, line_type_intelligence, identity_match, reassigned_number.
308
306
  # @param [String] country_code The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format.
309
307
  # @param [String] first_name User’s first name. This query parameter is only used (optionally) for identity_match package requests.
310
308
  # @param [String] last_name User’s last name. This query parameter is only used (optionally) for identity_match package requests.
@@ -148,8 +148,6 @@ module Twilio
148
148
  end
149
149
 
150
150
 
151
- ##
152
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
153
151
  class MediaRecordingContext < InstanceContext
154
152
  ##
155
153
  # Initialize the MediaRecordingContext
@@ -1,6 +1,35 @@
1
1
  module Twilio
2
- module REST
3
- class Media < MediaBase;
2
+ module REST
3
+ class Media < MediaBase
4
+ ##
5
+ # @param [String] sid The unique string generated to identify the MediaProcessor
6
+ # resource.
7
+ # @return [Twilio::REST::Media::V1::MediaProcessorInstance] if sid was passed.
8
+ # @return [Twilio::REST::Media::V1::MediaProcessorList]
9
+ def media_processor(sid=:unset)
10
+ warn "media_processor is deprecated. Use v1.media_processor instead."
11
+ self.v1.media_processor(sid)
12
+ end
13
+
14
+ ##
15
+ # @param [String] sid The unique string generated to identify the MediaRecording
16
+ # resource.
17
+ # @return [Twilio::REST::Media::V1::MediaRecordingInstance] if sid was passed.
18
+ # @return [Twilio::REST::Media::V1::MediaRecordingList]
19
+ def media_recording(sid=:unset)
20
+ warn "media_recording is deprecated. Use v1.media_recording instead."
21
+ self.v1.media_recording(sid)
22
+ end
23
+
24
+ ##
25
+ # @param [String] sid The unique string generated to identify the PlayerStreamer
26
+ # resource.
27
+ # @return [Twilio::REST::Media::V1::PlayerStreamerInstance] if sid was passed.
28
+ # @return [Twilio::REST::Media::V1::PlayerStreamerList]
29
+ def player_streamer(sid=:unset)
30
+ warn "player_streamer is deprecated. Use v1.player_streamer instead."
31
+ self.v1.player_streamer(sid)
4
32
  end
5
33
  end
6
- end
34
+ end
35
+ end
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class BrandVettingContext < InstanceContext
162
160
  ##
163
161
  # Initialize the BrandVettingContext
@@ -156,8 +156,6 @@ module Twilio
156
156
  end
157
157
 
158
158
 
159
- ##
160
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
161
159
  class BrandRegistrationContext < InstanceContext
162
160
  ##
163
161
  # Initialize the BrandRegistrationContext
@@ -302,7 +300,6 @@ module Twilio
302
300
  'status' => payload['status'],
303
301
  'tcr_id' => payload['tcr_id'],
304
302
  'failure_reason' => payload['failure_reason'],
305
- 'errors' => payload['errors'],
306
303
  'url' => payload['url'],
307
304
  'brand_score' => payload['brand_score'] == nil ? payload['brand_score'] : payload['brand_score'].to_i,
308
305
  'brand_feedback' => payload['brand_feedback'],
@@ -386,17 +383,11 @@ module Twilio
386
383
  end
387
384
 
388
385
  ##
389
- # @return [String] DEPRECATED. A reason why brand registration has failed. Only applicable when status is FAILED.
386
+ # @return [String] A reason why brand registration has failed. Only applicable when status is FAILED.
390
387
  def failure_reason
391
388
  @properties['failure_reason']
392
389
  end
393
390
 
394
- ##
395
- # @return [Array<Hash>] A list of errors that occurred during the brand registration process.
396
- def errors
397
- @properties['errors']
398
- end
399
-
400
391
  ##
401
392
  # @return [String] The absolute URL of the Brand Registration resource.
402
393
  def url
@@ -410,7 +401,7 @@ module Twilio
410
401
  end
411
402
 
412
403
  ##
413
- # @return [Array<BrandFeedback>] DEPRECATED. Feedback on how to improve brand score
404
+ # @return [Array<BrandFeedback>] Feedback on how to improve brand score
414
405
  def brand_feedback
415
406
  @properties['brand_feedback']
416
407
  end
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainCertsContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainCertsContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainConfigContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainConfigContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class DomainConfigMessagingServiceContext < InstanceContext
46
44
  ##
47
45
  # Initialize the DomainConfigMessagingServiceContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class LinkshorteningMessagingServiceContext < InstanceContext
46
44
  ##
47
45
  # Initialize the LinkshorteningMessagingServiceContext
@@ -40,8 +40,6 @@ module Twilio
40
40
  end
41
41
 
42
42
 
43
- ##
44
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
45
43
  class LinkshorteningMessagingServiceDomainAssociationContext < InstanceContext
46
44
  ##
47
45
  # Initialize the LinkshorteningMessagingServiceDomainAssociationContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class AlphaSenderContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AlphaSenderContext
@@ -126,8 +126,6 @@ module Twilio
126
126
  end
127
127
 
128
128
 
129
- ##
130
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
131
129
  class ChannelSenderContext < InstanceContext
132
130
  ##
133
131
  # Initialize the ChannelSenderContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class PhoneNumberContext < InstanceContext
153
151
  ##
154
152
  # Initialize the PhoneNumberContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
152
150
  class ShortCodeContext < InstanceContext
153
151
  ##
154
152
  # Initialize the ShortCodeContext
@@ -192,8 +192,6 @@ module Twilio
192
192
  end
193
193
 
194
194
 
195
- ##
196
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
197
195
  class UsAppToPersonContext < InstanceContext
198
196
  ##
199
197
  # Initialize the UsAppToPersonContext
@@ -189,8 +189,6 @@ module Twilio
189
189
  end
190
190
 
191
191
 
192
- ##
193
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
194
192
  class ServiceContext < InstanceContext
195
193
  ##
196
194
  # Initialize the ServiceContext
@@ -53,7 +53,7 @@ module Twilio
53
53
  # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
54
54
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
55
55
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
56
- # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
56
+ # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
57
57
  # @param [String] external_reference_id An optional external reference ID supplied by customer and echoed back on status retrieval.
58
58
  # @return [TollfreeVerificationInstance] Created TollfreeVerificationInstance
59
59
  def create(
@@ -222,8 +222,6 @@ module Twilio
222
222
  end
223
223
 
224
224
 
225
- ##
226
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
227
225
  class TollfreeVerificationContext < InstanceContext
228
226
  ##
229
227
  # Initialize the TollfreeVerificationContext
@@ -283,7 +281,7 @@ module Twilio
283
281
  # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
284
282
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
285
283
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
286
- # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
284
+ # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
287
285
  # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
288
286
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
289
287
  def update(
@@ -436,7 +434,6 @@ module Twilio
436
434
  'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
437
435
  'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
438
436
  'edit_allowed' => payload['edit_allowed'],
439
- 'rejection_reasons' => payload['rejection_reasons'],
440
437
  'resource_links' => payload['resource_links'],
441
438
  'external_reference_id' => payload['external_reference_id'],
442
439
  }
@@ -566,7 +563,7 @@ module Twilio
566
563
  end
567
564
 
568
565
  ##
569
- # @return [String] The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
566
+ # @return [String] The phone number of the contact for the business or organization using the Tollfree number.
570
567
  def business_contact_phone
571
568
  @properties['business_contact_phone']
572
569
  end
@@ -661,12 +658,6 @@ module Twilio
661
658
  @properties['edit_allowed']
662
659
  end
663
660
 
664
- ##
665
- # @return [Array<Hash>] A list of rejection reasons and codes describing why a Tollfree Verification has been rejected.
666
- def rejection_reasons
667
- @properties['rejection_reasons']
668
- end
669
-
670
661
  ##
671
662
  # @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
672
663
  def resource_links
@@ -716,7 +707,7 @@ module Twilio
716
707
  # @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
717
708
  # @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
718
709
  # @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
719
- # @param [String] business_contact_phone The E.164 formatted phone number of the contact for the business or organization using the Tollfree number.
710
+ # @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
720
711
  # @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
721
712
  # @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
722
713
  def update(
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
152
150
  class AccountConfigContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AccountConfigContext
@@ -147,8 +147,6 @@ module Twilio
147
147
  end
148
148
 
149
149
 
150
- ##
151
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
152
150
  class AccountSecretContext < InstanceContext
153
151
  ##
154
152
  # Initialize the AccountSecretContext
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
47
45
  class AppManifestContext < InstanceContext
48
46
  ##
49
47
  # Initialize the AppManifestContext
@@ -124,8 +124,6 @@ module Twilio
124
124
  end
125
125
 
126
126
 
127
- ##
128
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
129
127
  class AppContext < InstanceContext
130
128
  ##
131
129
  # Initialize the AppContext
@@ -150,8 +150,6 @@ module Twilio
150
150
  end
151
151
 
152
152
 
153
- ##
154
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
155
153
  class DeviceConfigContext < InstanceContext
156
154
  ##
157
155
  # Initialize the DeviceConfigContext