twilio-ruby 5.67.3 → 5.74.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (216) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/pr-lint.yml +8 -2
  3. data/.github/workflows/test-and-deploy.yml +3 -3
  4. data/CHANGES.md +288 -0
  5. data/LICENSE +1 -1
  6. data/Makefile +6 -2
  7. data/PULL_REQUEST_TEMPLATE.md +1 -1
  8. data/README.md +2 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +19 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +22 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +2 -2
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +2 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +2 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +2 -2
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +2 -2
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +2 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +1 -1
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
  23. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -0
  24. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +56 -17
  25. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
  26. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +5 -5
  27. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -1
  28. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +2 -2
  29. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
  30. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +1 -1
  31. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +5 -5
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
  34. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +1 -1
  35. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +1 -1
  36. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +1 -1
  37. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +1 -1
  38. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +1 -1
  39. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +1 -1
  40. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +1 -1
  41. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +1 -1
  42. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +1 -1
  43. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +1 -1
  44. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +2 -2
  45. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +1 -1
  46. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +1 -1
  47. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
  48. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +1 -1
  49. data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
  50. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +1 -1
  51. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +2 -2
  52. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +1 -1
  53. data/lib/twilio-ruby/rest/chat/v2/service.rb +4 -4
  54. data/lib/twilio-ruby/rest/chat/v3/channel.rb +2 -2
  55. data/lib/twilio-ruby/rest/client.rb +28 -0
  56. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
  57. data/lib/twilio-ruby/rest/content/v1/content.rb +346 -0
  58. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +254 -0
  59. data/lib/twilio-ruby/rest/content/v1.rb +52 -0
  60. data/lib/twilio-ruby/rest/content.rb +53 -0
  61. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +1 -1
  62. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +17 -2
  63. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +1 -1
  64. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +17 -2
  65. data/lib/twilio-ruby/rest/events/v1/schema/version.rb +1 -1
  66. data/lib/twilio-ruby/rest/events/v1/schema.rb +1 -1
  67. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +1 -1
  68. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +397 -0
  69. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  70. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +314 -0
  71. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +394 -0
  72. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +313 -0
  73. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +390 -0
  74. data/lib/twilio-ruby/rest/flex_api/v1/insights_segments.rb +413 -0
  75. data/lib/twilio-ruby/rest/{preview/trusted_comms/brands_information.rb → flex_api/v1/insights_session.rb} +58 -55
  76. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_answersets.rb +144 -0
  77. data/lib/twilio-ruby/rest/flex_api/v1/insights_settings_comment.rb +130 -0
  78. data/lib/twilio-ruby/rest/{preview/trusted_comms/cps.rb → flex_api/v1/insights_user_roles.rb} +42 -54
  79. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +22 -1
  80. data/lib/twilio-ruby/rest/flex_api/v1.rb +115 -0
  81. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +133 -0
  82. data/lib/twilio-ruby/rest/flex_api/v2.rb +35 -0
  83. data/lib/twilio-ruby/rest/flex_api.rb +83 -0
  84. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +322 -0
  85. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +14 -0
  86. data/lib/twilio-ruby/rest/insights/v1/call.rb +16 -8
  87. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +7 -0
  88. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  89. data/lib/twilio-ruby/rest/insights/v1/room.rb +3 -3
  90. data/lib/twilio-ruby/rest/insights/v1.rb +0 -16
  91. data/lib/twilio-ruby/rest/insights.rb +0 -8
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +1 -1
  93. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
  94. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +1 -1
  95. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +1 -1
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +2 -2
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +1 -1
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +4 -4
  100. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +94 -12
  101. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +1 -1
  102. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +2 -9
  103. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +5 -5
  104. data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
  105. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
  106. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
  107. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +98 -3
  108. data/lib/twilio-ruby/rest/messaging/v1/service.rb +1 -1
  109. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +709 -0
  110. data/lib/twilio-ruby/rest/messaging/v1.rb +50 -0
  111. data/lib/twilio-ruby/rest/messaging.rb +26 -0
  112. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +317 -0
  113. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +310 -0
  114. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +192 -0
  115. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +330 -0
  116. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +342 -0
  117. data/lib/twilio-ruby/rest/{preview/bulk_exports/export/day.rb → microvisor/v1/device/device_secret.rb} +125 -84
  118. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +393 -0
  119. data/lib/twilio-ruby/rest/microvisor/v1.rb +92 -0
  120. data/lib/twilio-ruby/rest/microvisor.rb +70 -0
  121. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +1 -1
  122. data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +153 -0
  123. data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +162 -0
  124. data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +242 -0
  125. data/lib/twilio-ruby/rest/oauth/v1/token.rb +157 -0
  126. data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +193 -0
  127. data/lib/twilio-ruby/rest/oauth/v1.rb +63 -0
  128. data/lib/twilio-ruby/rest/oauth.rb +68 -0
  129. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  130. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
  131. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +1 -1
  132. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +2 -2
  133. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +1 -1
  134. data/lib/twilio-ruby/rest/preview.rb +0 -58
  135. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
  136. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
  137. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +5 -46
  138. data/lib/twilio-ruby/rest/proxy/v1/service.rb +1 -1
  139. data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +235 -0
  140. data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +231 -0
  141. data/lib/twilio-ruby/rest/routes/v2/trunk.rb +235 -0
  142. data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
  143. data/lib/twilio-ruby/rest/routes.rb +62 -0
  144. data/lib/twilio-ruby/rest/studio/v1/flow.rb +1 -1
  145. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
  146. data/lib/twilio-ruby/rest/studio/v2/flow.rb +1 -1
  147. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +21 -1
  148. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +17 -7
  149. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +5 -2
  150. data/lib/twilio-ruby/rest/supersim/v1/settings_update.rb +247 -0
  151. data/lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb +195 -0
  152. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +20 -0
  153. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +3 -3
  154. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +4 -4
  155. data/lib/twilio-ruby/rest/supersim/v1.rb +7 -0
  156. data/lib/twilio-ruby/rest/supersim.rb +6 -0
  157. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +1 -1
  158. data/lib/twilio-ruby/rest/sync/v1/service.rb +1 -1
  159. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +1 -1
  160. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
  161. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
  162. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +12 -12
  163. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +5 -5
  164. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +10 -4
  165. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +3 -3
  166. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +6 -6
  167. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  168. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
  169. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +13 -13
  170. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +2 -2
  171. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +1 -1
  172. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +13 -13
  173. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -3
  174. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
  175. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
  176. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +1 -9
  177. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +1 -7
  178. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +0 -8
  179. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +0 -8
  180. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +0 -6
  181. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +0 -8
  182. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
  183. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +14 -10
  184. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +8 -1
  185. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +0 -8
  186. data/lib/twilio-ruby/rest/verify/v2/service.rb +1 -1
  187. data/lib/twilio-ruby/rest/verify/v2/template.rb +7 -0
  188. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +4 -4
  189. data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
  190. data/lib/twilio-ruby/rest/verify.rb +8 -0
  191. data/lib/twilio-ruby/rest/video/v1/composition.rb +3 -3
  192. data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
  193. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
  194. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
  195. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
  196. data/lib/twilio-ruby/rest/video/v1/room.rb +4 -4
  197. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +2 -2
  198. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +1 -1
  199. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +1 -1
  200. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  201. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +2 -2
  202. data/lib/twilio-ruby/security/request_validator.rb +1 -1
  203. data/lib/twilio-ruby/twiml/voice_response.rb +135 -35
  204. data/lib/twilio-ruby/version.rb +1 -1
  205. data/twilio-ruby.gemspec +1 -1
  206. metadata +52 -17
  207. data/lib/twilio-ruby/rest/insights/v1/annotation.rb +0 -271
  208. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
  209. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
  210. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
  211. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
  212. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
  213. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
  214. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
  215. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
  216. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Insights < Domain
12
12
  class V1 < Version
13
- ##
14
- # 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.
15
13
  class CallList < ListResource
16
14
  ##
17
15
  # Initialize the CallList
@@ -31,8 +29,6 @@ module Twilio
31
29
  end
32
30
  end
33
31
 
34
- ##
35
- # 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.
36
32
  class CallPage < Page
37
33
  ##
38
34
  # Initialize the CallPage
@@ -62,8 +58,6 @@ module Twilio
62
58
  end
63
59
  end
64
60
 
65
- ##
66
- # 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.
67
61
  class CallContext < InstanceContext
68
62
  ##
69
63
  # Initialize the CallContext
@@ -81,6 +75,7 @@ module Twilio
81
75
  @events = nil
82
76
  @metrics = nil
83
77
  @summary = nil
78
+ @annotation = nil
84
79
  end
85
80
 
86
81
  ##
@@ -124,6 +119,14 @@ module Twilio
124
119
  CallSummaryContext.new(@version, @solution[:sid], )
125
120
  end
126
121
 
122
+ ##
123
+ # Access the annotation
124
+ # @return [AnnotationList]
125
+ # @return [AnnotationContext]
126
+ def annotation
127
+ AnnotationContext.new(@version, @solution[:sid], )
128
+ end
129
+
127
130
  ##
128
131
  # Provide a user friendly representation
129
132
  def to_s
@@ -139,8 +142,6 @@ module Twilio
139
142
  end
140
143
  end
141
144
 
142
- ##
143
- # 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.
144
145
  class CallInstance < InstanceResource
145
146
  ##
146
147
  # Initialize the CallInstance
@@ -216,6 +217,13 @@ module Twilio
216
217
  context.summary
217
218
  end
218
219
 
220
+ ##
221
+ # Access the annotation
222
+ # @return [annotation] annotation
223
+ def annotation
224
+ context.annotation
225
+ end
226
+
219
227
  ##
220
228
  # Provide a user friendly representation
221
229
  def to_s
@@ -268,6 +268,7 @@ module Twilio
268
268
  @properties = {
269
269
  'account_sid' => payload['account_sid'],
270
270
  'call_sid' => payload['call_sid'],
271
+ 'answered_by' => payload['answered_by'],
271
272
  'call_type' => payload['call_type'],
272
273
  'call_state' => payload['call_state'],
273
274
  'processing_state' => payload['processing_state'],
@@ -302,6 +303,12 @@ module Twilio
302
303
  @properties['call_sid']
303
304
  end
304
305
 
306
+ ##
307
+ # @return [call_summaries.AnsweredBy] The answered_by
308
+ def answered_by
309
+ @properties['answered_by']
310
+ end
311
+
305
312
  ##
306
313
  # @return [call_summaries.CallType] The call_type
307
314
  def call_type
@@ -210,7 +210,7 @@ module Twilio
210
210
  'participant_identity' => payload['participant_identity'],
211
211
  'join_time' => Twilio.deserialize_iso8601_datetime(payload['join_time']),
212
212
  'leave_time' => Twilio.deserialize_iso8601_datetime(payload['leave_time']),
213
- 'duration_sec' => payload['duration_sec'].to_i,
213
+ 'duration_sec' => payload['duration_sec'] == nil ? payload['duration_sec'] : payload['duration_sec'].to_i,
214
214
  'account_sid' => payload['account_sid'],
215
215
  'room_sid' => payload['room_sid'],
216
216
  'status' => payload['status'],
@@ -283,9 +283,9 @@ module Twilio
283
283
  'max_concurrent_participants' => payload['max_concurrent_participants'] == nil ? payload['max_concurrent_participants'] : payload['max_concurrent_participants'].to_i,
284
284
  'codecs' => payload['codecs'],
285
285
  'media_region' => payload['media_region'],
286
- 'duration_sec' => payload['duration_sec'].to_i,
287
- 'total_participant_duration_sec' => payload['total_participant_duration_sec'].to_i,
288
- 'total_recording_duration_sec' => payload['total_recording_duration_sec'].to_i,
286
+ 'duration_sec' => payload['duration_sec'] == nil ? payload['duration_sec'] : payload['duration_sec'].to_i,
287
+ 'total_participant_duration_sec' => payload['total_participant_duration_sec'] == nil ? payload['total_participant_duration_sec'] : payload['total_participant_duration_sec'].to_i,
288
+ 'total_recording_duration_sec' => payload['total_recording_duration_sec'] == nil ? payload['total_recording_duration_sec'] : payload['total_recording_duration_sec'].to_i,
289
289
  'processing_state' => payload['processing_state'],
290
290
  'recording_enabled' => payload['recording_enabled'],
291
291
  'edge_location' => payload['edge_location'],
@@ -16,7 +16,6 @@ module Twilio
16
16
  super
17
17
  @version = 'v1'
18
18
  @settings = nil
19
- @annotation = nil
20
19
  @calls = nil
21
20
  @call_summaries = nil
22
21
  @conferences = nil
@@ -29,21 +28,6 @@ module Twilio
29
28
  @settings ||= SettingContext.new self
30
29
  end
31
30
 
32
- ##
33
- # @param [String] call_sid The call_sid
34
- # @return [Twilio::REST::Insights::V1::AnnotationContext] if call_sid was passed.
35
- # @return [Twilio::REST::Insights::V1::AnnotationList]
36
- def annotation(call_sid=:unset)
37
- if call_sid.nil?
38
- raise ArgumentError, 'call_sid cannot be nil'
39
- end
40
- if call_sid == :unset
41
- @annotation ||= AnnotationList.new self
42
- else
43
- AnnotationContext.new(self, call_sid)
44
- end
45
- end
46
-
47
31
  ##
48
32
  # @param [String] sid The sid
49
33
  # @return [Twilio::REST::Insights::V1::CallContext] if sid was passed.
@@ -34,14 +34,6 @@ module Twilio
34
34
  self.v1.settings()
35
35
  end
36
36
 
37
- ##
38
- # @param [String] call_sid The call_sid
39
- # @return [Twilio::REST::Insights::V1::AnnotationInstance] if call_sid was passed.
40
- # @return [Twilio::REST::Insights::V1::AnnotationList]
41
- def annotation(call_sid=:unset)
42
- self.v1.annotation(call_sid)
43
- end
44
-
45
37
  ##
46
38
  # @param [String] sid The sid
47
39
  # @return [Twilio::REST::Insights::V1::CallInstance] if sid was passed.
@@ -268,7 +268,7 @@ module Twilio
268
268
  'was_edited' => payload['was_edited'],
269
269
  'from' => payload['from'],
270
270
  'body' => payload['body'],
271
- 'index' => payload['index'].to_i,
271
+ 'index' => payload['index'] == nil ? payload['index'] : payload['index'].to_i,
272
272
  'url' => payload['url'],
273
273
  }
274
274
 
@@ -323,8 +323,8 @@ module Twilio
323
323
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
324
324
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
325
325
  'created_by' => payload['created_by'],
326
- 'members_count' => payload['members_count'].to_i,
327
- 'messages_count' => payload['messages_count'].to_i,
326
+ 'members_count' => payload['members_count'] == nil ? payload['members_count'] : payload['members_count'].to_i,
327
+ 'messages_count' => payload['messages_count'] == nil ? payload['messages_count'] : payload['messages_count'].to_i,
328
328
  'url' => payload['url'],
329
329
  'links' => payload['links'],
330
330
  }
@@ -268,7 +268,7 @@ module Twilio
268
268
  'is_notifiable' => payload['is_notifiable'],
269
269
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
270
270
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
271
- 'joined_channels_count' => payload['joined_channels_count'].to_i,
271
+ 'joined_channels_count' => payload['joined_channels_count'] == nil ? payload['joined_channels_count'] : payload['joined_channels_count'].to_i,
272
272
  'links' => payload['links'],
273
273
  'url' => payload['url'],
274
274
  }
@@ -430,8 +430,8 @@ module Twilio
430
430
  'default_channel_creator_role_sid' => payload['default_channel_creator_role_sid'],
431
431
  'read_status_enabled' => payload['read_status_enabled'],
432
432
  'reachability_enabled' => payload['reachability_enabled'],
433
- 'typing_indicator_timeout' => payload['typing_indicator_timeout'].to_i,
434
- 'consumption_report_interval' => payload['consumption_report_interval'].to_i,
433
+ 'typing_indicator_timeout' => payload['typing_indicator_timeout'] == nil ? payload['typing_indicator_timeout'] : payload['typing_indicator_timeout'].to_i,
434
+ 'consumption_report_interval' => payload['consumption_report_interval'] == nil ? payload['consumption_report_interval'] : payload['consumption_report_interval'].to_i,
435
435
  'limits' => payload['limits'],
436
436
  'webhooks' => payload['webhooks'],
437
437
  'pre_webhook_url' => payload['pre_webhook_url'],
@@ -302,7 +302,7 @@ module Twilio
302
302
  'was_edited' => payload['was_edited'],
303
303
  'from' => payload['from'],
304
304
  'body' => payload['body'],
305
- 'index' => payload['index'].to_i,
305
+ 'index' => payload['index'] == nil ? payload['index'] : payload['index'].to_i,
306
306
  'type' => payload['type'],
307
307
  'media' => payload['media'],
308
308
  'url' => payload['url'],
@@ -368,8 +368,8 @@ module Twilio
368
368
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
369
369
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
370
370
  'created_by' => payload['created_by'],
371
- 'members_count' => payload['members_count'].to_i,
372
- 'messages_count' => payload['messages_count'].to_i,
371
+ 'members_count' => payload['members_count'] == nil ? payload['members_count'] : payload['members_count'].to_i,
372
+ 'messages_count' => payload['messages_count'] == nil ? payload['messages_count'] : payload['messages_count'].to_i,
373
373
  'url' => payload['url'],
374
374
  'links' => payload['links'],
375
375
  }
@@ -303,7 +303,7 @@ module Twilio
303
303
  'is_notifiable' => payload['is_notifiable'],
304
304
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
305
305
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
306
- 'joined_channels_count' => payload['joined_channels_count'].to_i,
306
+ 'joined_channels_count' => payload['joined_channels_count'] == nil ? payload['joined_channels_count'] : payload['joined_channels_count'].to_i,
307
307
  'links' => payload['links'],
308
308
  'url' => payload['url'],
309
309
  }
@@ -384,15 +384,15 @@ module Twilio
384
384
  'default_channel_creator_role_sid' => payload['default_channel_creator_role_sid'],
385
385
  'read_status_enabled' => payload['read_status_enabled'],
386
386
  'reachability_enabled' => payload['reachability_enabled'],
387
- 'typing_indicator_timeout' => payload['typing_indicator_timeout'].to_i,
388
- 'consumption_report_interval' => payload['consumption_report_interval'].to_i,
387
+ 'typing_indicator_timeout' => payload['typing_indicator_timeout'] == nil ? payload['typing_indicator_timeout'] : payload['typing_indicator_timeout'].to_i,
388
+ 'consumption_report_interval' => payload['consumption_report_interval'] == nil ? payload['consumption_report_interval'] : payload['consumption_report_interval'].to_i,
389
389
  'limits' => payload['limits'],
390
390
  'pre_webhook_url' => payload['pre_webhook_url'],
391
391
  'post_webhook_url' => payload['post_webhook_url'],
392
392
  'webhook_method' => payload['webhook_method'],
393
393
  'webhook_filters' => payload['webhook_filters'],
394
- 'pre_webhook_retry_count' => payload['pre_webhook_retry_count'].to_i,
395
- 'post_webhook_retry_count' => payload['post_webhook_retry_count'].to_i,
394
+ 'pre_webhook_retry_count' => payload['pre_webhook_retry_count'] == nil ? payload['pre_webhook_retry_count'] : payload['pre_webhook_retry_count'].to_i,
395
+ 'post_webhook_retry_count' => payload['post_webhook_retry_count'] == nil ? payload['post_webhook_retry_count'] : payload['post_webhook_retry_count'].to_i,
396
396
  'notifications' => payload['notifications'],
397
397
  'media' => payload['media'],
398
398
  'url' => payload['url'],
@@ -83,13 +83,47 @@ module Twilio
83
83
  # Fetch the PhoneNumberInstance
84
84
  # @param [String] fields A comma-separated list of fields to return. Possible
85
85
  # values are caller_name, sim_swap, call_forwarding, live_activity,
86
- # enhanced_line_type or line_type_intelligence.
86
+ # line_type_intelligence, identity_match.
87
87
  # @param [String] country_code The {country
88
88
  # code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] used if the phone number
89
89
  # provided is in national format.
90
+ # @param [String] first_name User’s first name. This query parameter is only used
91
+ # (optionally) for identity_match package requests.
92
+ # @param [String] last_name User’s last name. This query parameter is only used
93
+ # (optionally) for identity_match package requests.
94
+ # @param [String] address_line_1 User’s first address line. This query parameter
95
+ # is only used (optionally) for identity_match package requests.
96
+ # @param [String] address_line_2 User’s second address line. This query parameter
97
+ # is only used (optionally) for identity_match package requests.
98
+ # @param [String] city User’s city. This query parameter is only used (optionally)
99
+ # for identity_match package requests.
100
+ # @param [String] state User’s country subdivision, such as state, province, or
101
+ # locality. This query parameter is only used (optionally) for identity_match
102
+ # package requests.
103
+ # @param [String] postal_code User’s postal zip code. This query parameter is only
104
+ # used (optionally) for identity_match package requests.
105
+ # @param [String] address_country_code User’s country, up to two characters. This
106
+ # query parameter is only used (optionally) for identity_match package requests.
107
+ # @param [String] national_id User’s national ID, such as SSN or Passport ID. This
108
+ # query parameter is only used (optionally) for identity_match package requests.
109
+ # @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This
110
+ # query parameter is only used (optionally) for identity_match package requests.
90
111
  # @return [PhoneNumberInstance] Fetched PhoneNumberInstance
91
- def fetch(fields: :unset, country_code: :unset)
92
- params = Twilio::Values.of({'Fields' => fields, 'CountryCode' => country_code, })
112
+ def fetch(fields: :unset, country_code: :unset, first_name: :unset, last_name: :unset, address_line_1: :unset, address_line_2: :unset, city: :unset, state: :unset, postal_code: :unset, address_country_code: :unset, national_id: :unset, date_of_birth: :unset)
113
+ params = Twilio::Values.of({
114
+ 'Fields' => fields,
115
+ 'CountryCode' => country_code,
116
+ 'FirstName' => first_name,
117
+ 'LastName' => last_name,
118
+ 'AddressLine1' => address_line_1,
119
+ 'AddressLine2' => address_line_2,
120
+ 'City' => city,
121
+ 'State' => state,
122
+ 'PostalCode' => postal_code,
123
+ 'AddressCountryCode' => address_country_code,
124
+ 'NationalId' => national_id,
125
+ 'DateOfBirth' => date_of_birth,
126
+ })
93
127
 
94
128
  payload = @version.fetch('GET', @uri, params: params)
95
129
 
@@ -136,8 +170,10 @@ module Twilio
136
170
  'sim_swap' => payload['sim_swap'],
137
171
  'call_forwarding' => payload['call_forwarding'],
138
172
  'live_activity' => payload['live_activity'],
139
- 'enhanced_line_type' => payload['enhanced_line_type'],
140
173
  'line_type_intelligence' => payload['line_type_intelligence'],
174
+ 'identity_match' => payload['identity_match'],
175
+ 'sms_pumping_risk' => payload['sms_pumping_risk'],
176
+ 'disposable_phone_number_risk' => payload['disposable_phone_number_risk'],
141
177
  'url' => payload['url'],
142
178
  }
143
179
 
@@ -219,14 +255,26 @@ module Twilio
219
255
 
220
256
  ##
221
257
  # @return [Hash] An object that contains line type information
222
- def enhanced_line_type
223
- @properties['enhanced_line_type']
258
+ def line_type_intelligence
259
+ @properties['line_type_intelligence']
224
260
  end
225
261
 
226
262
  ##
227
- # @return [Hash] An object that contains line type information
228
- def line_type_intelligence
229
- @properties['line_type_intelligence']
263
+ # @return [Hash] An object that contains identity match information
264
+ def identity_match
265
+ @properties['identity_match']
266
+ end
267
+
268
+ ##
269
+ # @return [Hash] An object that contains sms pumping risk information
270
+ def sms_pumping_risk
271
+ @properties['sms_pumping_risk']
272
+ end
273
+
274
+ ##
275
+ # @return [Hash] An object that contains disposable phone number risk information
276
+ def disposable_phone_number_risk
277
+ @properties['disposable_phone_number_risk']
230
278
  end
231
279
 
232
280
  ##
@@ -239,13 +287,47 @@ module Twilio
239
287
  # Fetch the PhoneNumberInstance
240
288
  # @param [String] fields A comma-separated list of fields to return. Possible
241
289
  # values are caller_name, sim_swap, call_forwarding, live_activity,
242
- # enhanced_line_type or line_type_intelligence.
290
+ # line_type_intelligence, identity_match.
243
291
  # @param [String] country_code The {country
244
292
  # code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] used if the phone number
245
293
  # provided is in national format.
294
+ # @param [String] first_name User’s first name. This query parameter is only used
295
+ # (optionally) for identity_match package requests.
296
+ # @param [String] last_name User’s last name. This query parameter is only used
297
+ # (optionally) for identity_match package requests.
298
+ # @param [String] address_line_1 User’s first address line. This query parameter
299
+ # is only used (optionally) for identity_match package requests.
300
+ # @param [String] address_line_2 User’s second address line. This query parameter
301
+ # is only used (optionally) for identity_match package requests.
302
+ # @param [String] city User’s city. This query parameter is only used (optionally)
303
+ # for identity_match package requests.
304
+ # @param [String] state User’s country subdivision, such as state, province, or
305
+ # locality. This query parameter is only used (optionally) for identity_match
306
+ # package requests.
307
+ # @param [String] postal_code User’s postal zip code. This query parameter is only
308
+ # used (optionally) for identity_match package requests.
309
+ # @param [String] address_country_code User’s country, up to two characters. This
310
+ # query parameter is only used (optionally) for identity_match package requests.
311
+ # @param [String] national_id User’s national ID, such as SSN or Passport ID. This
312
+ # query parameter is only used (optionally) for identity_match package requests.
313
+ # @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This
314
+ # query parameter is only used (optionally) for identity_match package requests.
246
315
  # @return [PhoneNumberInstance] Fetched PhoneNumberInstance
247
- def fetch(fields: :unset, country_code: :unset)
248
- context.fetch(fields: fields, country_code: country_code, )
316
+ def fetch(fields: :unset, country_code: :unset, first_name: :unset, last_name: :unset, address_line_1: :unset, address_line_2: :unset, city: :unset, state: :unset, postal_code: :unset, address_country_code: :unset, national_id: :unset, date_of_birth: :unset)
317
+ context.fetch(
318
+ fields: fields,
319
+ country_code: country_code,
320
+ first_name: first_name,
321
+ last_name: last_name,
322
+ address_line_1: address_line_1,
323
+ address_line_2: address_line_2,
324
+ city: city,
325
+ state: state,
326
+ postal_code: postal_code,
327
+ address_country_code: address_country_code,
328
+ national_id: national_id,
329
+ date_of_birth: date_of_birth,
330
+ )
249
331
  end
250
332
 
251
333
  ##
@@ -270,7 +270,7 @@ module Twilio
270
270
  'ended_reason' => payload['ended_reason'],
271
271
  'status_callback' => payload['status_callback'],
272
272
  'status_callback_method' => payload['status_callback_method'],
273
- 'max_duration' => payload['max_duration'].to_i,
273
+ 'max_duration' => payload['max_duration'] == nil ? payload['max_duration'] : payload['max_duration'].to_i,
274
274
  }
275
275
 
276
276
  # Context
@@ -243,17 +243,16 @@ module Twilio
243
243
  # Marshaled Properties
244
244
  @properties = {
245
245
  'account_sid' => payload['account_sid'],
246
- 'bitrate' => payload['bitrate'].to_i,
247
246
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
248
247
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
249
- 'duration' => payload['duration'].to_i,
248
+ 'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
250
249
  'format' => payload['format'],
251
250
  'links' => payload['links'],
252
251
  'processor_sid' => payload['processor_sid'],
253
252
  'resolution' => payload['resolution'],
254
253
  'source_sid' => payload['source_sid'],
255
254
  'sid' => payload['sid'],
256
- 'media_size' => payload['media_size'].to_i,
255
+ 'media_size' => payload['media_size'] == nil ? payload['media_size'] : payload['media_size'].to_i,
257
256
  'status' => payload['status'],
258
257
  'status_callback' => payload['status_callback'],
259
258
  'status_callback_method' => payload['status_callback_method'],
@@ -282,12 +281,6 @@ module Twilio
282
281
  @properties['account_sid']
283
282
  end
284
283
 
285
- ##
286
- # @return [String] The bitrate of the media
287
- def bitrate
288
- @properties['bitrate']
289
- end
290
-
291
284
  ##
292
285
  # @return [Time] The ISO 8601 date and time in GMT when the resource was created
293
286
  def date_created
@@ -33,10 +33,10 @@ module Twilio
33
33
  # @param [String] status_callback_method The HTTP method Twilio should use to call
34
34
  # the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
35
35
  # @param [String] max_duration The maximum time, in seconds, that the
36
- # PlayerStreamer can run before automatically ends. The default value is 300
37
- # seconds, and the maximum value is 90000 seconds. Once this maximum duration is
38
- # reached, Twilio will end the PlayerStreamer, regardless of whether media is
39
- # still streaming.
36
+ # PlayerStreamer is active (`created` or `started`) before automatically ends. The
37
+ # default value is 300 seconds, and the maximum value is 90000 seconds. Once this
38
+ # maximum duration is reached, Twilio will end the PlayerStreamer, regardless of
39
+ # whether media is still streaming.
40
40
  # @return [PlayerStreamerInstance] Created PlayerStreamerInstance
41
41
  def create(video: :unset, status_callback: :unset, status_callback_method: :unset, max_duration: :unset)
42
42
  data = Twilio::Values.of({
@@ -269,7 +269,7 @@ module Twilio
269
269
  'status_callback' => payload['status_callback'],
270
270
  'status_callback_method' => payload['status_callback_method'],
271
271
  'ended_reason' => payload['ended_reason'],
272
- 'max_duration' => payload['max_duration'].to_i,
272
+ 'max_duration' => payload['max_duration'] == nil ? payload['max_duration'] : payload['max_duration'].to_i,
273
273
  }
274
274
 
275
275
  # Context