twilio-ruby 5.34.1 → 5.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (717) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +126 -0
  3. data/README.md +24 -3
  4. data/lib/twilio-ruby.rb +1 -1
  5. data/lib/twilio-ruby/framework/version.rb +3 -3
  6. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +13 -30
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +13 -30
  8. data/lib/twilio-ruby/rest/api/v2010/account.rb +10 -27
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +13 -30
  10. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +3 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +13 -30
  12. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +6 -14
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +6 -14
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +3 -5
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +3 -5
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +3 -5
  17. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +3 -5
  18. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +3 -5
  19. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +3 -5
  20. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +3 -5
  21. data/lib/twilio-ruby/rest/api/v2010/account/balance.rb +2 -8
  22. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +100 -117
  23. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +9 -25
  24. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +9 -20
  25. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -14
  26. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +4 -13
  27. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +13 -30
  28. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +21 -19
  29. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +60 -39
  30. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +10 -22
  31. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +10 -22
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +27 -30
  33. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +12 -25
  34. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +6 -14
  35. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +6 -13
  36. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +6 -13
  37. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +6 -13
  38. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +10 -22
  39. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +84 -101
  40. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -8
  41. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -17
  42. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +3 -8
  43. data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +3 -8
  44. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +6 -14
  45. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +10 -22
  46. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +42 -59
  47. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -19
  48. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -17
  49. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +9 -17
  50. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +9 -17
  51. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +9 -17
  52. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +7 -19
  53. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +10 -22
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +13 -30
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +13 -30
  56. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +13 -30
  57. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +12 -25
  58. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +12 -25
  59. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +12 -25
  60. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +12 -25
  61. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +12 -25
  62. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +13 -30
  63. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +13 -30
  64. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +3 -8
  65. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +9 -17
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +3 -5
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +3 -5
  68. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +3 -5
  69. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +3 -5
  70. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +3 -5
  71. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +3 -5
  72. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +3 -5
  73. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +3 -5
  74. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +3 -5
  75. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +13 -30
  76. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +15 -20
  77. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +13 -46
  78. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +4 -14
  79. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +3 -9
  80. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +13 -30
  81. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +12 -25
  82. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +13 -30
  83. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +25 -33
  84. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +4 -14
  85. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +13 -30
  86. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +12 -25
  87. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -30
  88. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +4 -14
  89. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +3 -9
  90. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +13 -30
  91. data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +1 -5
  92. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +3 -9
  93. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +6 -14
  94. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +6 -13
  95. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +6 -12
  96. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +4 -14
  97. data/lib/twilio-ruby/rest/chat/v1/credential.rb +13 -30
  98. data/lib/twilio-ruby/rest/chat/v1/service.rb +13 -30
  99. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +13 -30
  100. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +12 -25
  101. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +13 -30
  102. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +13 -30
  103. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +13 -30
  104. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +13 -30
  105. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +3 -5
  106. data/lib/twilio-ruby/rest/chat/v2/credential.rb +13 -30
  107. data/lib/twilio-ruby/rest/chat/v2/service.rb +13 -30
  108. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +9 -17
  109. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +34 -36
  110. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +12 -25
  111. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +34 -36
  112. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +34 -36
  113. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +13 -30
  114. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +13 -30
  115. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +30 -34
  116. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +9 -17
  117. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +10 -22
  118. data/lib/twilio-ruby/rest/client.rb +35 -15
  119. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +59 -36
  120. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +80 -36
  121. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +348 -0
  122. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +70 -37
  123. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +13 -30
  124. data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +4 -14
  125. data/lib/twilio-ruby/rest/fax/v1/fax.rb +13 -30
  126. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +9 -17
  127. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +14 -26
  128. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +16 -34
  129. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +19 -33
  130. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +13 -30
  131. data/lib/twilio-ruby/rest/insights/v1/call.rb +3 -9
  132. data/lib/twilio-ruby/rest/insights/v1/call/event.rb +3 -5
  133. data/lib/twilio-ruby/rest/insights/v1/call/metric.rb +3 -5
  134. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +3 -7
  135. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +13 -30
  136. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +13 -30
  137. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +13 -30
  138. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +12 -25
  139. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +13 -30
  140. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +13 -30
  141. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +13 -30
  142. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +13 -30
  143. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +3 -5
  144. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +13 -30
  145. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +13 -30
  146. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +9 -17
  147. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +34 -36
  148. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +12 -25
  149. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +34 -36
  150. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +34 -36
  151. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +13 -30
  152. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +13 -30
  153. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +30 -34
  154. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +9 -17
  155. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +10 -22
  156. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +4 -8
  157. data/lib/twilio-ruby/rest/messaging/v1/service.rb +13 -30
  158. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +12 -25
  159. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +12 -25
  160. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +12 -25
  161. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +14 -22
  162. data/lib/twilio-ruby/rest/monitor/v1/event.rb +6 -14
  163. data/lib/twilio-ruby/rest/notify/v1/credential.rb +13 -30
  164. data/lib/twilio-ruby/rest/notify/v1/service.rb +33 -31
  165. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +12 -25
  166. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -8
  167. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +31 -27
  168. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +9 -24
  169. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb +12 -25
  170. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +10 -27
  171. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +6 -14
  172. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb +6 -14
  173. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +10 -27
  174. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +6 -14
  175. data/lib/twilio-ruby/rest/preview.rb +6 -0
  176. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +3 -9
  177. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +6 -14
  178. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +6 -13
  179. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +6 -12
  180. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +4 -14
  181. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +13 -30
  182. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +13 -30
  183. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +13 -30
  184. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +13 -30
  185. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +13 -30
  186. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -27
  187. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +3 -5
  188. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +13 -30
  189. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +6 -14
  190. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +6 -14
  191. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +13 -30
  192. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +7 -19
  193. data/lib/twilio-ruby/rest/preview/sync/service.rb +13 -30
  194. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +26 -36
  195. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +10 -22
  196. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +12 -25
  197. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +26 -36
  198. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +10 -22
  199. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +12 -25
  200. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +26 -36
  201. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +10 -22
  202. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +7 -0
  203. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +3 -8
  204. data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +195 -0
  205. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +29 -9
  206. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +233 -0
  207. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +260 -0
  208. data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +189 -0
  209. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +3 -7
  210. data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +11 -11
  211. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +25 -11
  212. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +3 -8
  213. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +13 -30
  214. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +4 -14
  215. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +4 -14
  216. data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +3 -9
  217. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +13 -30
  218. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +12 -25
  219. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +13 -30
  220. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +13 -30
  221. data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +4 -14
  222. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +13 -30
  223. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +12 -25
  224. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +13 -30
  225. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +4 -14
  226. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +3 -9
  227. data/lib/twilio-ruby/rest/preview/wireless/command.rb +9 -22
  228. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +13 -30
  229. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +7 -19
  230. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +3 -7
  231. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +6 -14
  232. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +6 -14
  233. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +6 -14
  234. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +3 -9
  235. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +6 -14
  236. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +3 -7
  237. data/lib/twilio-ruby/rest/proxy/v1/service.rb +13 -30
  238. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +13 -30
  239. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +13 -30
  240. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +9 -17
  241. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +12 -25
  242. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +9 -22
  243. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +13 -30
  244. data/lib/twilio-ruby/rest/serverless/v1/service.rb +13 -30
  245. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +13 -30
  246. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +6 -14
  247. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +12 -25
  248. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +12 -25
  249. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +9 -22
  250. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +13 -14
  251. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +13 -30
  252. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +13 -30
  253. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +6 -14
  254. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +3 -9
  255. data/lib/twilio-ruby/rest/studio/v1/flow.rb +9 -17
  256. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +12 -25
  257. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +3 -9
  258. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +6 -14
  259. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +3 -9
  260. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +13 -30
  261. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +3 -9
  262. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +6 -14
  263. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +3 -9
  264. data/lib/twilio-ruby/rest/studio/v2/flow.rb +13 -30
  265. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +13 -30
  266. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +3 -9
  267. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +6 -14
  268. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +3 -9
  269. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +6 -14
  270. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +4 -14
  271. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +1 -5
  272. data/lib/twilio-ruby/rest/supersim.rb +11 -1
  273. data/lib/twilio-ruby/rest/supersim/v1.rb +16 -1
  274. data/lib/twilio-ruby/rest/supersim/v1/command.rb +9 -22
  275. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +44 -48
  276. data/lib/twilio-ruby/rest/supersim/v1/network.rb +307 -0
  277. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +63 -39
  278. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +339 -0
  279. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +7 -19
  280. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -5
  281. data/lib/twilio-ruby/rest/sync/v1/service.rb +13 -30
  282. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +26 -36
  283. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +10 -22
  284. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +13 -30
  285. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +32 -36
  286. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +10 -22
  287. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +13 -30
  288. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +32 -36
  289. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +10 -22
  290. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +13 -30
  291. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +3 -8
  292. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +13 -30
  293. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +13 -30
  294. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +15 -17
  295. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +13 -30
  296. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -19
  297. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +13 -30
  298. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +13 -30
  299. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +3 -7
  300. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +3 -7
  301. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +3 -7
  302. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +3 -5
  303. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +13 -30
  304. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -19
  305. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -19
  306. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +3 -7
  307. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +3 -7
  308. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +3 -7
  309. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +3 -7
  310. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +13 -30
  311. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +3 -7
  312. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +3 -7
  313. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +3 -7
  314. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +3 -7
  315. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +3 -7
  316. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +3 -7
  317. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +13 -30
  318. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +12 -25
  319. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +12 -25
  320. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +13 -30
  321. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +12 -25
  322. data/lib/twilio-ruby/rest/verify.rb +9 -0
  323. data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
  324. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/form.rb +15 -21
  325. data/lib/twilio-ruby/rest/verify/v2/service.rb +110 -33
  326. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +124 -0
  327. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity.rb +82 -48
  328. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +477 -0
  329. data/lib/twilio-ruby/rest/{authy/v1 → verify/v2}/service/entity/factor.rb +74 -108
  330. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +13 -30
  331. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +13 -30
  332. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +13 -30
  333. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -22
  334. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +3 -8
  335. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +408 -0
  336. data/lib/twilio-ruby/rest/video/v1/composition.rb +12 -25
  337. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +13 -30
  338. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +16 -24
  339. data/lib/twilio-ruby/rest/video/v1/recording.rb +9 -17
  340. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +16 -24
  341. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -27
  342. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +9 -17
  343. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +7 -19
  344. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +6 -14
  345. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +3 -13
  346. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +6 -14
  347. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +13 -30
  348. data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +13 -30
  349. data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +13 -30
  350. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb +3 -8
  351. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +6 -14
  352. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +3 -5
  353. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +4 -14
  354. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +13 -30
  355. data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +13 -30
  356. data/lib/twilio-ruby/rest/wireless/v1/command.rb +12 -25
  357. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +13 -30
  358. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +10 -22
  359. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +3 -5
  360. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +3 -5
  361. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +3 -5
  362. data/lib/twilio-ruby/util/configuration.rb +9 -1
  363. data/lib/twilio-ruby/version.rb +1 -1
  364. data/spec/holodeck/holodeck.rb +11 -6
  365. data/spec/integration/accounts/v1/credential/aws_spec.rb +0 -4
  366. data/spec/integration/accounts/v1/credential/public_key_spec.rb +0 -4
  367. data/spec/integration/api/v2010/account/address/dependent_phone_number_spec.rb +0 -1
  368. data/spec/integration/api/v2010/account/address_spec.rb +0 -4
  369. data/spec/integration/api/v2010/account/application_spec.rb +0 -5
  370. data/spec/integration/api/v2010/account/authorized_connect_app_spec.rb +0 -2
  371. data/spec/integration/api/v2010/account/available_phone_number/local_spec.rb +0 -1
  372. data/spec/integration/api/v2010/account/available_phone_number/machine_to_machine_spec.rb +0 -1
  373. data/spec/integration/api/v2010/account/available_phone_number/mobile_spec.rb +0 -1
  374. data/spec/integration/api/v2010/account/available_phone_number/national_spec.rb +0 -1
  375. data/spec/integration/api/v2010/account/available_phone_number/shared_cost_spec.rb +0 -1
  376. data/spec/integration/api/v2010/account/available_phone_number/toll_free_spec.rb +0 -1
  377. data/spec/integration/api/v2010/account/available_phone_number/voip_spec.rb +0 -1
  378. data/spec/integration/api/v2010/account/available_phone_number_spec.rb +0 -2
  379. data/spec/integration/api/v2010/account/balance_spec.rb +0 -1
  380. data/spec/integration/api/v2010/account/call/feedback_spec.rb +0 -1
  381. data/spec/integration/api/v2010/account/call/feedback_summary_spec.rb +0 -2
  382. data/spec/integration/api/v2010/account/call/notification_spec.rb +0 -2
  383. data/spec/integration/api/v2010/account/call/recording_spec.rb +0 -4
  384. data/spec/integration/api/v2010/account/call_spec.rb +5 -9
  385. data/spec/integration/api/v2010/account/conference/participant_spec.rb +177 -4
  386. data/spec/integration/api/v2010/account/conference/recording_spec.rb +0 -3
  387. data/spec/integration/api/v2010/account/conference_spec.rb +42 -17
  388. data/spec/integration/api/v2010/account/connect_app_spec.rb +0 -4
  389. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension_spec.rb +0 -2
  390. data/spec/integration/api/v2010/account/incoming_phone_number/assigned_add_on_spec.rb +0 -3
  391. data/spec/integration/api/v2010/account/incoming_phone_number/local_spec.rb +0 -1
  392. data/spec/integration/api/v2010/account/incoming_phone_number/mobile_spec.rb +0 -1
  393. data/spec/integration/api/v2010/account/incoming_phone_number/toll_free_spec.rb +0 -1
  394. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +43 -20
  395. data/spec/integration/api/v2010/account/key_spec.rb +0 -4
  396. data/spec/integration/api/v2010/account/message/feedback_spec.rb +0 -1
  397. data/spec/integration/api/v2010/account/message/media_spec.rb +0 -3
  398. data/spec/integration/api/v2010/account/message_spec.rb +0 -3
  399. data/spec/integration/api/v2010/account/new_key_spec.rb +0 -1
  400. data/spec/integration/api/v2010/account/new_signing_key_spec.rb +0 -1
  401. data/spec/integration/api/v2010/account/notification_spec.rb +0 -2
  402. data/spec/integration/api/v2010/account/outgoing_caller_id_spec.rb +8 -18
  403. data/spec/integration/api/v2010/account/queue/member_spec.rb +0 -2
  404. data/spec/integration/api/v2010/account/queue_spec.rb +0 -4
  405. data/spec/integration/api/v2010/account/recording/add_on_result/payload_spec.rb +0 -3
  406. data/spec/integration/api/v2010/account/recording/add_on_result_spec.rb +0 -3
  407. data/spec/integration/api/v2010/account/recording/transcription_spec.rb +0 -3
  408. data/spec/integration/api/v2010/account/recording_spec.rb +0 -3
  409. data/spec/integration/api/v2010/account/short_code_spec.rb +0 -3
  410. data/spec/integration/api/v2010/account/signing_key_spec.rb +0 -4
  411. data/spec/integration/api/v2010/account/sip/credential_list/credential_spec.rb +0 -4
  412. data/spec/integration/api/v2010/account/sip/credential_list_spec.rb +0 -3
  413. data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping_spec.rb +0 -3
  414. data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping_spec.rb +0 -3
  415. data/spec/integration/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping_spec.rb +0 -3
  416. data/spec/integration/api/v2010/account/sip/domain/credential_list_mapping_spec.rb +0 -3
  417. data/spec/integration/api/v2010/account/sip/domain/ip_access_control_list_mapping_spec.rb +0 -3
  418. data/spec/integration/api/v2010/account/sip/domain_spec.rb +0 -4
  419. data/spec/integration/api/v2010/account/sip/ip_access_control_list/ip_address_spec.rb +0 -4
  420. data/spec/integration/api/v2010/account/sip/ip_access_control_list_spec.rb +0 -3
  421. data/spec/integration/api/v2010/account/token_spec.rb +0 -1
  422. data/spec/integration/api/v2010/account/transcription_spec.rb +0 -3
  423. data/spec/integration/api/v2010/account/usage/record/all_time_spec.rb +0 -1
  424. data/spec/integration/api/v2010/account/usage/record/daily_spec.rb +0 -1
  425. data/spec/integration/api/v2010/account/usage/record/last_month_spec.rb +0 -1
  426. data/spec/integration/api/v2010/account/usage/record/monthly_spec.rb +0 -1
  427. data/spec/integration/api/v2010/account/usage/record/this_month_spec.rb +0 -1
  428. data/spec/integration/api/v2010/account/usage/record/today_spec.rb +0 -1
  429. data/spec/integration/api/v2010/account/usage/record/yearly_spec.rb +0 -1
  430. data/spec/integration/api/v2010/account/usage/record/yesterday_spec.rb +0 -1
  431. data/spec/integration/api/v2010/account/usage/record_spec.rb +0 -1
  432. data/spec/integration/api/v2010/account/usage/trigger_spec.rb +0 -4
  433. data/spec/integration/api/v2010/account/validation_request_spec.rb +1 -1
  434. data/spec/integration/api/v2010/account_spec.rb +0 -4
  435. data/spec/integration/autopilot/v1/assistant/defaults_spec.rb +0 -2
  436. data/spec/integration/autopilot/v1/assistant/dialogue_spec.rb +0 -1
  437. data/spec/integration/autopilot/v1/assistant/field_type/field_value_spec.rb +0 -3
  438. data/spec/integration/autopilot/v1/assistant/field_type_spec.rb +0 -4
  439. data/spec/integration/autopilot/v1/assistant/model_build_spec.rb +0 -5
  440. data/spec/integration/autopilot/v1/assistant/query_spec.rb +4 -8
  441. data/spec/integration/autopilot/v1/assistant/style_sheet_spec.rb +0 -2
  442. data/spec/integration/autopilot/v1/assistant/task/field_spec.rb +0 -3
  443. data/spec/integration/autopilot/v1/assistant/task/sample_spec.rb +0 -4
  444. data/spec/integration/autopilot/v1/assistant/task/task_actions_spec.rb +0 -2
  445. data/spec/integration/autopilot/v1/assistant/task/task_statistics_spec.rb +0 -1
  446. data/spec/integration/autopilot/v1/assistant/task_spec.rb +0 -4
  447. data/spec/integration/autopilot/v1/assistant/webhook_spec.rb +0 -4
  448. data/spec/integration/autopilot/v1/assistant_spec.rb +4 -13
  449. data/spec/integration/bulkexports/v1/export/day_spec.rb +0 -2
  450. data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +0 -2
  451. data/spec/integration/bulkexports/v1/export/job_spec.rb +0 -2
  452. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +0 -2
  453. data/spec/integration/bulkexports/v1/export_spec.rb +0 -1
  454. data/spec/integration/chat/v1/credential_spec.rb +0 -4
  455. data/spec/integration/chat/v1/service/channel/invite_spec.rb +0 -3
  456. data/spec/integration/chat/v1/service/channel/member_spec.rb +0 -4
  457. data/spec/integration/chat/v1/service/channel/message_spec.rb +0 -4
  458. data/spec/integration/chat/v1/service/channel_spec.rb +0 -5
  459. data/spec/integration/chat/v1/service/role_spec.rb +0 -3
  460. data/spec/integration/chat/v1/service/user/user_channel_spec.rb +0 -1
  461. data/spec/integration/chat/v1/service/user_spec.rb +0 -4
  462. data/spec/integration/chat/v1/service_spec.rb +0 -4
  463. data/spec/integration/chat/v2/credential_spec.rb +0 -4
  464. data/spec/integration/chat/v2/service/binding_spec.rb +0 -3
  465. data/spec/integration/chat/v2/service/channel/invite_spec.rb +0 -3
  466. data/spec/integration/chat/v2/service/channel/member_spec.rb +9 -7
  467. data/spec/integration/chat/v2/service/channel/message_spec.rb +9 -8
  468. data/spec/integration/chat/v2/service/channel/webhook_spec.rb +0 -4
  469. data/spec/integration/chat/v2/service/channel_spec.rb +9 -8
  470. data/spec/integration/chat/v2/service/role_spec.rb +0 -3
  471. data/spec/integration/chat/v2/service/user/user_binding_spec.rb +0 -3
  472. data/spec/integration/chat/v2/service/user/user_channel_spec.rb +0 -4
  473. data/spec/integration/chat/v2/service/user_spec.rb +6 -6
  474. data/spec/integration/chat/v2/service_spec.rb +0 -4
  475. data/spec/integration/conversations/v1/conversation/message/delivery_receipt_spec.rb +132 -0
  476. data/spec/integration/conversations/v1/conversation/message_spec.rb +93 -15
  477. data/spec/integration/conversations/v1/conversation/participant_spec.rb +44 -8
  478. data/spec/integration/conversations/v1/conversation/webhook_spec.rb +0 -4
  479. data/spec/integration/conversations/v1/conversation_spec.rb +25 -8
  480. data/spec/integration/conversations/v1/webhook_spec.rb +0 -2
  481. data/spec/integration/fax/v1/fax/fax_media_spec.rb +0 -3
  482. data/spec/integration/fax/v1/fax_spec.rb +0 -4
  483. data/spec/integration/flex_api/v1/channel_spec.rb +0 -3
  484. data/spec/integration/flex_api/v1/configuration_spec.rb +3 -51
  485. data/spec/integration/flex_api/v1/flex_flow_spec.rb +0 -4
  486. data/spec/integration/flex_api/v1/web_channel_spec.rb +0 -4
  487. data/spec/integration/insights/v1/call/event_spec.rb +0 -1
  488. data/spec/integration/insights/v1/call/metric_spec.rb +0 -1
  489. data/spec/integration/insights/v1/call/summary_spec.rb +0 -1
  490. data/spec/integration/insights/v1/call_spec.rb +0 -1
  491. data/spec/integration/ip_messaging/v1/credential_spec.rb +0 -4
  492. data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +0 -3
  493. data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +0 -4
  494. data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +0 -4
  495. data/spec/integration/ip_messaging/v1/service/channel_spec.rb +0 -5
  496. data/spec/integration/ip_messaging/v1/service/role_spec.rb +0 -3
  497. data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +0 -1
  498. data/spec/integration/ip_messaging/v1/service/user_spec.rb +0 -4
  499. data/spec/integration/ip_messaging/v1/service_spec.rb +0 -4
  500. data/spec/integration/ip_messaging/v2/credential_spec.rb +0 -4
  501. data/spec/integration/ip_messaging/v2/service/binding_spec.rb +0 -3
  502. data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +0 -3
  503. data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +9 -7
  504. data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +9 -8
  505. data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +0 -4
  506. data/spec/integration/ip_messaging/v2/service/channel_spec.rb +9 -8
  507. data/spec/integration/ip_messaging/v2/service/role_spec.rb +0 -3
  508. data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +0 -3
  509. data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +0 -4
  510. data/spec/integration/ip_messaging/v2/service/user_spec.rb +6 -6
  511. data/spec/integration/ip_messaging/v2/service_spec.rb +0 -4
  512. data/spec/integration/lookups/v1/phone_number_spec.rb +0 -1
  513. data/spec/integration/messaging/v1/service/alpha_sender_spec.rb +0 -3
  514. data/spec/integration/messaging/v1/service/phone_number_spec.rb +0 -3
  515. data/spec/integration/messaging/v1/service/short_code_spec.rb +0 -3
  516. data/spec/integration/messaging/v1/service_spec.rb +0 -4
  517. data/spec/integration/monitor/v1/alert_spec.rb +0 -2
  518. data/spec/integration/monitor/v1/event_spec.rb +0 -2
  519. data/spec/integration/notify/v1/credential_spec.rb +0 -4
  520. data/spec/integration/notify/v1/service/binding_spec.rb +0 -3
  521. data/spec/integration/notify/v1/service/notification_spec.rb +0 -1
  522. data/spec/integration/notify/v1/service_spec.rb +0 -5
  523. data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +0 -3
  524. data/spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb +0 -3
  525. data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +32 -4
  526. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +0 -3
  527. data/spec/integration/numbers/v2/regulatory_compliance/end_user_type_spec.rb +0 -2
  528. data/spec/integration/numbers/v2/regulatory_compliance/regulation_spec.rb +0 -2
  529. data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_spec.rb +0 -3
  530. data/spec/integration/numbers/v2/regulatory_compliance/supporting_document_type_spec.rb +0 -2
  531. data/spec/integration/preview/bulk_exports/export/day_spec.rb +0 -2
  532. data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +0 -2
  533. data/spec/integration/preview/bulk_exports/export/job_spec.rb +0 -2
  534. data/spec/integration/preview/bulk_exports/export_configuration_spec.rb +0 -2
  535. data/spec/integration/preview/bulk_exports/export_spec.rb +0 -1
  536. data/spec/integration/preview/deployed_devices/fleet/certificate_spec.rb +0 -4
  537. data/spec/integration/preview/deployed_devices/fleet/deployment_spec.rb +0 -5
  538. data/spec/integration/preview/deployed_devices/fleet/device_spec.rb +0 -5
  539. data/spec/integration/preview/deployed_devices/fleet/key_spec.rb +0 -5
  540. data/spec/integration/preview/deployed_devices/fleet_spec.rb +0 -5
  541. data/spec/integration/preview/hosted_numbers/authorization_document/dependent_hosted_number_order_spec.rb +0 -1
  542. data/spec/integration/preview/hosted_numbers/authorization_document_spec.rb +0 -3
  543. data/spec/integration/preview/hosted_numbers/hosted_number_order_spec.rb +0 -4
  544. data/spec/integration/preview/marketplace/available_add_on/available_add_on_extension_spec.rb +0 -2
  545. data/spec/integration/preview/marketplace/available_add_on_spec.rb +0 -2
  546. data/spec/integration/preview/marketplace/installed_add_on/installed_add_on_extension_spec.rb +0 -2
  547. data/spec/integration/preview/marketplace/installed_add_on_spec.rb +0 -4
  548. data/spec/integration/preview/sync/service/document/document_permission_spec.rb +0 -3
  549. data/spec/integration/preview/sync/service/document_spec.rb +6 -6
  550. data/spec/integration/preview/sync/service/sync_list/sync_list_item_spec.rb +6 -5
  551. data/spec/integration/preview/sync/service/sync_list/sync_list_permission_spec.rb +0 -3
  552. data/spec/integration/preview/sync/service/sync_list_spec.rb +0 -4
  553. data/spec/integration/preview/sync/service/sync_map/sync_map_item_spec.rb +6 -5
  554. data/spec/integration/preview/sync/service/sync_map/sync_map_permission_spec.rb +0 -3
  555. data/spec/integration/preview/sync/service/sync_map_spec.rb +0 -4
  556. data/spec/integration/preview/sync/service_spec.rb +0 -5
  557. data/spec/integration/preview/trusted_comms/brands_information_spec.rb +45 -0
  558. data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
  559. data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +51 -0
  560. data/spec/integration/preview/trusted_comms/business/brand_spec.rb +48 -0
  561. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -1
  562. data/spec/integration/preview/trusted_comms/business_spec.rb +1 -1
  563. data/spec/integration/preview/trusted_comms/cps_spec.rb +3 -2
  564. data/spec/integration/preview/trusted_comms/current_call_spec.rb +6 -2
  565. data/spec/integration/preview/understand/assistant/assistant_fallback_actions_spec.rb +0 -2
  566. data/spec/integration/preview/understand/assistant/assistant_initiation_actions_spec.rb +0 -2
  567. data/spec/integration/preview/understand/assistant/dialogue_spec.rb +0 -1
  568. data/spec/integration/preview/understand/assistant/field_type/field_value_spec.rb +0 -3
  569. data/spec/integration/preview/understand/assistant/field_type_spec.rb +0 -4
  570. data/spec/integration/preview/understand/assistant/model_build_spec.rb +0 -5
  571. data/spec/integration/preview/understand/assistant/query_spec.rb +0 -4
  572. data/spec/integration/preview/understand/assistant/style_sheet_spec.rb +0 -2
  573. data/spec/integration/preview/understand/assistant/task/field_spec.rb +0 -3
  574. data/spec/integration/preview/understand/assistant/task/sample_spec.rb +0 -4
  575. data/spec/integration/preview/understand/assistant/task/task_actions_spec.rb +0 -2
  576. data/spec/integration/preview/understand/assistant/task/task_statistics_spec.rb +0 -1
  577. data/spec/integration/preview/understand/assistant/task_spec.rb +0 -4
  578. data/spec/integration/preview/understand/assistant_spec.rb +0 -5
  579. data/spec/integration/preview/wireless/command_spec.rb +0 -2
  580. data/spec/integration/preview/wireless/rate_plan_spec.rb +0 -5
  581. data/spec/integration/preview/wireless/sim/usage_spec.rb +0 -1
  582. data/spec/integration/preview/wireless/sim_spec.rb +0 -3
  583. data/spec/integration/pricing/v1/messaging/country_spec.rb +0 -2
  584. data/spec/integration/pricing/v1/phone_number/country_spec.rb +0 -2
  585. data/spec/integration/pricing/v1/voice/country_spec.rb +0 -2
  586. data/spec/integration/pricing/v1/voice/number_spec.rb +0 -1
  587. data/spec/integration/pricing/v2/voice/country_spec.rb +0 -2
  588. data/spec/integration/pricing/v2/voice/number_spec.rb +0 -1
  589. data/spec/integration/proxy/v1/service/phone_number_spec.rb +0 -5
  590. data/spec/integration/proxy/v1/service/session/interaction_spec.rb +0 -3
  591. data/spec/integration/proxy/v1/service/session/participant/message_interaction_spec.rb +0 -3
  592. data/spec/integration/proxy/v1/service/session/participant_spec.rb +0 -3
  593. data/spec/integration/proxy/v1/service/session_spec.rb +0 -5
  594. data/spec/integration/proxy/v1/service/short_code_spec.rb +0 -4
  595. data/spec/integration/proxy/v1/service_spec.rb +0 -4
  596. data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +0 -2
  597. data/spec/integration/serverless/v1/service/asset_spec.rb +0 -3
  598. data/spec/integration/serverless/v1/service/build_spec.rb +0 -4
  599. data/spec/integration/serverless/v1/service/environment/deployment_spec.rb +0 -3
  600. data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -2
  601. data/spec/integration/serverless/v1/service/environment/variable_spec.rb +0 -4
  602. data/spec/integration/serverless/v1/service/environment_spec.rb +0 -3
  603. data/spec/integration/serverless/v1/service/function/function_version/function_version_content_spec.rb +0 -1
  604. data/spec/integration/serverless/v1/service/function/function_version_spec.rb +0 -2
  605. data/spec/integration/serverless/v1/service/function_spec.rb +0 -3
  606. data/spec/integration/serverless/v1/service_spec.rb +0 -4
  607. data/spec/integration/studio/v1/flow/engagement/engagement_context_spec.rb +0 -1
  608. data/spec/integration/studio/v1/flow/engagement/step/step_context_spec.rb +0 -1
  609. data/spec/integration/studio/v1/flow/engagement/step_spec.rb +0 -2
  610. data/spec/integration/studio/v1/flow/engagement_spec.rb +0 -3
  611. data/spec/integration/studio/v1/flow/execution/execution_context_spec.rb +0 -1
  612. data/spec/integration/studio/v1/flow/execution/execution_step/execution_step_context_spec.rb +0 -1
  613. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +0 -2
  614. data/spec/integration/studio/v1/flow/execution_spec.rb +0 -3
  615. data/spec/integration/studio/v1/flow_spec.rb +0 -3
  616. data/spec/integration/studio/v2/flow/execution/execution_context_spec.rb +0 -1
  617. data/spec/integration/studio/v2/flow/execution/execution_step/execution_step_context_spec.rb +0 -1
  618. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +0 -2
  619. data/spec/integration/studio/v2/flow/execution_spec.rb +0 -3
  620. data/spec/integration/studio/v2/flow/flow_revision_spec.rb +0 -2
  621. data/spec/integration/studio/v2/flow/test_user_spec.rb +0 -1
  622. data/spec/integration/studio/v2/flow_spec.rb +0 -3
  623. data/spec/integration/supersim/v1/command_spec.rb +0 -2
  624. data/spec/integration/supersim/v1/fleet_spec.rb +8 -6
  625. data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +176 -0
  626. data/spec/integration/supersim/v1/network_access_profile_spec.rb +20 -9
  627. data/spec/integration/supersim/v1/network_spec.rb +137 -0
  628. data/spec/integration/supersim/v1/sim_spec.rb +78 -9
  629. data/spec/integration/supersim/v1/usage_record_spec.rb +0 -1
  630. data/spec/integration/sync/v1/service/document/document_permission_spec.rb +0 -3
  631. data/spec/integration/sync/v1/service/document_spec.rb +6 -7
  632. data/spec/integration/sync/v1/service/sync_list/sync_list_item_spec.rb +6 -6
  633. data/spec/integration/sync/v1/service/sync_list/sync_list_permission_spec.rb +0 -3
  634. data/spec/integration/sync/v1/service/sync_list_spec.rb +0 -5
  635. data/spec/integration/sync/v1/service/sync_map/sync_map_item_spec.rb +6 -6
  636. data/spec/integration/sync/v1/service/sync_map/sync_map_permission_spec.rb +0 -3
  637. data/spec/integration/sync/v1/service/sync_map_spec.rb +0 -5
  638. data/spec/integration/sync/v1/service/sync_stream_spec.rb +0 -5
  639. data/spec/integration/sync/v1/service_spec.rb +0 -5
  640. data/spec/integration/taskrouter/v1/workspace/activity_spec.rb +0 -4
  641. data/spec/integration/taskrouter/v1/workspace/event_spec.rb +0 -2
  642. data/spec/integration/taskrouter/v1/workspace/task/reservation_spec.rb +0 -3
  643. data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +0 -4
  644. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics_spec.rb +0 -1
  645. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +0 -1
  646. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +0 -1
  647. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +0 -1
  648. data/spec/integration/taskrouter/v1/workspace/task_queue_spec.rb +0 -4
  649. data/spec/integration/taskrouter/v1/workspace/task_spec.rb +0 -5
  650. data/spec/integration/taskrouter/v1/workspace/worker/reservation_spec.rb +0 -3
  651. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +0 -3
  652. data/spec/integration/taskrouter/v1/workspace/worker/worker_statistics_spec.rb +0 -1
  653. data/spec/integration/taskrouter/v1/workspace/worker/workers_cumulative_statistics_spec.rb +0 -1
  654. data/spec/integration/taskrouter/v1/workspace/worker/workers_real_time_statistics_spec.rb +0 -1
  655. data/spec/integration/taskrouter/v1/workspace/worker/workers_statistics_spec.rb +0 -1
  656. data/spec/integration/taskrouter/v1/workspace/worker_spec.rb +0 -4
  657. data/spec/integration/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics_spec.rb +0 -1
  658. data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +0 -1
  659. data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +0 -1
  660. data/spec/integration/taskrouter/v1/workspace/workflow_spec.rb +0 -4
  661. data/spec/integration/taskrouter/v1/workspace/workspace_cumulative_statistics_spec.rb +0 -1
  662. data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +0 -1
  663. data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +0 -1
  664. data/spec/integration/taskrouter/v1/workspace_spec.rb +0 -4
  665. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -16
  666. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -26
  667. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -32
  668. data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -20
  669. data/spec/integration/trunking/v1/trunk_spec.rb +33 -38
  670. data/spec/integration/{authy/v1 → verify/v2}/form_spec.rb +5 -6
  671. data/spec/integration/verify/v2/service/access_token_spec.rb +44 -0
  672. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +252 -0
  673. data/spec/integration/{authy/v1 → verify/v2}/service/entity/factor_spec.rb +61 -67
  674. data/spec/integration/verify/v2/service/entity_spec.rb +209 -0
  675. data/spec/integration/verify/v2/service/messaging_configuration_spec.rb +0 -3
  676. data/spec/integration/verify/v2/service/rate_limit/bucket_spec.rb +0 -4
  677. data/spec/integration/verify/v2/service/rate_limit_spec.rb +0 -4
  678. data/spec/integration/verify/v2/service/verification_spec.rb +0 -1
  679. data/spec/integration/verify/v2/service/webhook_spec.rb +258 -0
  680. data/spec/integration/verify/v2/service_spec.rb +32 -8
  681. data/spec/integration/video/v1/composition_hook_spec.rb +0 -3
  682. data/spec/integration/video/v1/composition_settings_spec.rb +0 -1
  683. data/spec/integration/video/v1/composition_spec.rb +0 -3
  684. data/spec/integration/video/v1/recording_settings_spec.rb +0 -1
  685. data/spec/integration/video/v1/recording_spec.rb +0 -3
  686. data/spec/integration/video/v1/room/recording_spec.rb +0 -3
  687. data/spec/integration/video/v1/room/room_participant/room_participant_published_track_spec.rb +0 -2
  688. data/spec/integration/video/v1/room/room_participant/room_participant_subscribe_rule_spec.rb +0 -2
  689. data/spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb +0 -2
  690. data/spec/integration/video/v1/room/room_participant_spec.rb +0 -3
  691. data/spec/integration/video/v1/room_spec.rb +0 -3
  692. data/spec/integration/voice/v1/byoc_trunk_spec.rb +0 -5
  693. data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +0 -4
  694. data/spec/integration/voice/v1/connection_policy_spec.rb +0 -5
  695. data/spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb +0 -1
  696. data/spec/integration/voice/v1/dialing_permissions/country_spec.rb +0 -2
  697. data/spec/integration/voice/v1/dialing_permissions/settings_spec.rb +0 -2
  698. data/spec/integration/voice/v1/ip_record_spec.rb +0 -4
  699. data/spec/integration/voice/v1/source_ip_mapping_spec.rb +0 -3
  700. data/spec/integration/wireless/v1/command_spec.rb +0 -3
  701. data/spec/integration/wireless/v1/rate_plan_spec.rb +0 -5
  702. data/spec/integration/wireless/v1/sim/data_session_spec.rb +0 -1
  703. data/spec/integration/wireless/v1/sim/usage_record_spec.rb +0 -1
  704. data/spec/integration/wireless/v1/sim_spec.rb +0 -4
  705. data/spec/integration/wireless/v1/usage_record_spec.rb +0 -1
  706. data/spec/rest/client_spec.rb +168 -58
  707. data/spec/util/configuration_spec.rb +12 -0
  708. metadata +42 -24
  709. data/lib/twilio-ruby/rest/authy.rb +0 -55
  710. data/lib/twilio-ruby/rest/authy/v1.rb +0 -59
  711. data/lib/twilio-ruby/rest/authy/v1/service.rb +0 -404
  712. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +0 -494
  713. data/lib/twilio-ruby/rest/autopilot/v1/assistant/export_assistant.rb +0 -222
  714. data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +0 -353
  715. data/spec/integration/authy/v1/service/entity_spec.rb +0 -201
  716. data/spec/integration/authy/v1/service_spec.rb +0 -231
  717. data/spec/integration/autopilot/v1/assistant/export_assistant_spec.rb +0 -49
@@ -17,7 +17,6 @@ describe 'Settings' do
17
17
  .settings().fetch()
18
18
  }.to raise_exception(Twilio::REST::TwilioError)
19
19
 
20
- values = {}
21
20
  expect(
22
21
  @holodeck.has_request?(Holodeck::Request.new(
23
22
  method: 'get',
@@ -50,7 +49,6 @@ describe 'Settings' do
50
49
  .settings().update()
51
50
  }.to raise_exception(Twilio::REST::TwilioError)
52
51
 
53
- values = {}
54
52
  expect(
55
53
  @holodeck.has_request?(Holodeck::Request.new(
56
54
  method: 'post',
@@ -54,7 +54,6 @@ describe 'IpRecord' do
54
54
  @client.voice.v1.ip_records('ILXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
55
55
  }.to raise_exception(Twilio::REST::TwilioError)
56
56
 
57
- values = {}
58
57
  expect(
59
58
  @holodeck.has_request?(Holodeck::Request.new(
60
59
  method: 'get',
@@ -91,7 +90,6 @@ describe 'IpRecord' do
91
90
  @client.voice.v1.ip_records.list()
92
91
  }.to raise_exception(Twilio::REST::TwilioError)
93
92
 
94
- values = {}
95
93
  expect(
96
94
  @holodeck.has_request?(Holodeck::Request.new(
97
95
  method: 'get',
@@ -165,7 +163,6 @@ describe 'IpRecord' do
165
163
  @client.voice.v1.ip_records('ILXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
166
164
  }.to raise_exception(Twilio::REST::TwilioError)
167
165
 
168
- values = {}
169
166
  expect(
170
167
  @holodeck.has_request?(Holodeck::Request.new(
171
168
  method: 'post',
@@ -202,7 +199,6 @@ describe 'IpRecord' do
202
199
  @client.voice.v1.ip_records('ILXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
203
200
  }.to raise_exception(Twilio::REST::TwilioError)
204
201
 
205
- values = {}
206
202
  expect(
207
203
  @holodeck.has_request?(Holodeck::Request.new(
208
204
  method: 'delete',
@@ -55,7 +55,6 @@ describe 'SourceIpMapping' do
55
55
  @client.voice.v1.source_ip_mappings('IBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
56
56
  }.to raise_exception(Twilio::REST::TwilioError)
57
57
 
58
- values = {}
59
58
  expect(
60
59
  @holodeck.has_request?(Holodeck::Request.new(
61
60
  method: 'get',
@@ -90,7 +89,6 @@ describe 'SourceIpMapping' do
90
89
  @client.voice.v1.source_ip_mappings.list()
91
90
  }.to raise_exception(Twilio::REST::TwilioError)
92
91
 
93
- values = {}
94
92
  expect(
95
93
  @holodeck.has_request?(Holodeck::Request.new(
96
94
  method: 'get',
@@ -198,7 +196,6 @@ describe 'SourceIpMapping' do
198
196
  @client.voice.v1.source_ip_mappings('IBXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
199
197
  }.to raise_exception(Twilio::REST::TwilioError)
200
198
 
201
- values = {}
202
199
  expect(
203
200
  @holodeck.has_request?(Holodeck::Request.new(
204
201
  method: 'delete',
@@ -16,7 +16,6 @@ describe 'Command' do
16
16
  @client.wireless.v1.commands('DCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
17
17
  }.to raise_exception(Twilio::REST::TwilioError)
18
18
 
19
- values = {}
20
19
  expect(
21
20
  @holodeck.has_request?(Holodeck::Request.new(
22
21
  method: 'get',
@@ -83,7 +82,6 @@ describe 'Command' do
83
82
  @client.wireless.v1.commands.list()
84
83
  }.to raise_exception(Twilio::REST::TwilioError)
85
84
 
86
- values = {}
87
85
  expect(
88
86
  @holodeck.has_request?(Holodeck::Request.new(
89
87
  method: 'get',
@@ -268,7 +266,6 @@ describe 'Command' do
268
266
  @client.wireless.v1.commands('DCXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
269
267
  }.to raise_exception(Twilio::REST::TwilioError)
270
268
 
271
- values = {}
272
269
  expect(
273
270
  @holodeck.has_request?(Holodeck::Request.new(
274
271
  method: 'delete',
@@ -16,7 +16,6 @@ describe 'RatePlan' do
16
16
  @client.wireless.v1.rate_plans.list()
17
17
  }.to raise_exception(Twilio::REST::TwilioError)
18
18
 
19
- values = {}
20
19
  expect(
21
20
  @holodeck.has_request?(Holodeck::Request.new(
22
21
  method: 'get',
@@ -105,7 +104,6 @@ describe 'RatePlan' do
105
104
  @client.wireless.v1.rate_plans('WPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
106
105
  }.to raise_exception(Twilio::REST::TwilioError)
107
106
 
108
- values = {}
109
107
  expect(
110
108
  @holodeck.has_request?(Holodeck::Request.new(
111
109
  method: 'get',
@@ -157,7 +155,6 @@ describe 'RatePlan' do
157
155
  @client.wireless.v1.rate_plans.create()
158
156
  }.to raise_exception(Twilio::REST::TwilioError)
159
157
 
160
- values = {}
161
158
  expect(
162
159
  @holodeck.has_request?(Holodeck::Request.new(
163
160
  method: 'post',
@@ -209,7 +206,6 @@ describe 'RatePlan' do
209
206
  @client.wireless.v1.rate_plans('WPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
210
207
  }.to raise_exception(Twilio::REST::TwilioError)
211
208
 
212
- values = {}
213
209
  expect(
214
210
  @holodeck.has_request?(Holodeck::Request.new(
215
211
  method: 'post',
@@ -261,7 +257,6 @@ describe 'RatePlan' do
261
257
  @client.wireless.v1.rate_plans('WPXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
262
258
  }.to raise_exception(Twilio::REST::TwilioError)
263
259
 
264
- values = {}
265
260
  expect(
266
261
  @holodeck.has_request?(Holodeck::Request.new(
267
262
  method: 'delete',
@@ -17,7 +17,6 @@ describe 'DataSession' do
17
17
  .data_sessions.list()
18
18
  }.to raise_exception(Twilio::REST::TwilioError)
19
19
 
20
- values = {}
21
20
  expect(
22
21
  @holodeck.has_request?(Holodeck::Request.new(
23
22
  method: 'get',
@@ -17,7 +17,6 @@ describe 'UsageRecord' do
17
17
  .usage_records.list()
18
18
  }.to raise_exception(Twilio::REST::TwilioError)
19
19
 
20
- values = {}
21
20
  expect(
22
21
  @holodeck.has_request?(Holodeck::Request.new(
23
22
  method: 'get',
@@ -16,7 +16,6 @@ describe 'Sim' do
16
16
  @client.wireless.v1.sims('DEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').fetch()
17
17
  }.to raise_exception(Twilio::REST::TwilioError)
18
18
 
19
- values = {}
20
19
  expect(
21
20
  @holodeck.has_request?(Holodeck::Request.new(
22
21
  method: 'get',
@@ -73,7 +72,6 @@ describe 'Sim' do
73
72
  @client.wireless.v1.sims.list()
74
73
  }.to raise_exception(Twilio::REST::TwilioError)
75
74
 
76
- values = {}
77
75
  expect(
78
76
  @holodeck.has_request?(Holodeck::Request.new(
79
77
  method: 'get',
@@ -167,7 +165,6 @@ describe 'Sim' do
167
165
  @client.wireless.v1.sims('DEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
168
166
  }.to raise_exception(Twilio::REST::TwilioError)
169
167
 
170
- values = {}
171
168
  expect(
172
169
  @holodeck.has_request?(Holodeck::Request.new(
173
170
  method: 'post',
@@ -308,7 +305,6 @@ describe 'Sim' do
308
305
  @client.wireless.v1.sims('DEXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
309
306
  }.to raise_exception(Twilio::REST::TwilioError)
310
307
 
311
- values = {}
312
308
  expect(
313
309
  @holodeck.has_request?(Holodeck::Request.new(
314
310
  method: 'delete',
@@ -16,7 +16,6 @@ describe 'UsageRecord' do
16
16
  @client.wireless.v1.usage_records.list()
17
17
  }.to raise_exception(Twilio::REST::TwilioError)
18
18
 
19
- values = {}
20
19
  expect(
21
20
  @holodeck.has_request?(Holodeck::Request.new(
22
21
  method: 'get',
@@ -49,75 +49,185 @@ describe Twilio::REST::TrunkingClient do
49
49
  end
50
50
 
51
51
  describe Twilio::REST::Client do
52
- before do
53
- Twilio.configure do |config|
54
- config.account_sid = 'someSid'
55
- config.auth_token = 'someToken'
56
- config.http_client = 'someClient'
52
+ context 'configuration' do
53
+ before do
54
+ Twilio.configure do |config|
55
+ config.account_sid = 'someSid'
56
+ config.auth_token = 'someToken'
57
+ config.http_client = 'someClient'
58
+ config.region = 'someRegion'
59
+ config.edge = 'someEdge'
60
+ end
57
61
  end
58
- end
59
62
 
60
- it 'uses the global configuration by default' do
61
- @client = Twilio::REST::Client.new
62
- expect(@client.account_sid).to eq('someSid')
63
- expect(@client.auth_token).to eq('someToken')
64
- expect(@client.http_client).to eq('someClient')
65
- end
63
+ it 'uses the global configuration by default' do
64
+ @client = Twilio::REST::Client.new
65
+ expect(@client.account_sid).to eq('someSid')
66
+ expect(@client.auth_token).to eq('someToken')
67
+ expect(@client.http_client).to eq('someClient')
68
+ expect(@client.region).to eq('someRegion')
69
+ expect(@client.edge).to eq('someEdge')
70
+ end
66
71
 
67
- it 'uses the arguments over global configuration' do
68
- @client = Twilio::REST::Client.new('myUser', 'myPassword', nil, nil, 'myClient')
69
- expect(@client.account_sid).to eq('myUser')
70
- expect(@client.auth_token).to eq('myPassword')
71
- expect(@client.http_client).to eq('myClient')
72
- end
72
+ it 'uses the arguments over global configuration' do
73
+ @client = Twilio::REST::Client.new('myUser', 'myPassword', nil, 'myRegion', 'myClient')
74
+ @client.edge = 'myEdge'
75
+ expect(@client.account_sid).to eq('myUser')
76
+ expect(@client.auth_token).to eq('myPassword')
77
+ expect(@client.http_client).to eq('myClient')
78
+ expect(@client.region).to eq('myRegion')
79
+ expect(@client.edge).to eq('myEdge')
80
+ end
73
81
 
74
- it 'successfully validates the working SSL certificate' do
75
- @holodeck.mock Twilio::Response.new(200, '')
76
- expect { @client.validate_ssl_certificate }.not_to raise_error
77
- end
82
+ class MyVersion < Twilio::REST::Version
83
+ def initialize(domain)
84
+ super
85
+ @version = 'v1'
86
+ end
87
+ end
78
88
 
79
- it 'fails to validate broken SSL certificates' do
80
- @holodeck.mock Twilio::Response.new(504, '')
81
- expect { @client.validate_ssl_certificate }.to raise_error(Twilio::REST::RestError)
89
+ class MyDomain < Twilio::REST::Domain
90
+ def initialize(client)
91
+ super
92
+ @host = 'twilio.com'
93
+ @base_url = 'https://twilio.com'
94
+ @port = 443
95
+ end
96
+ end
82
97
  end
83
98
 
84
- it 'translates bad request error params' do
85
- @domain = MyDomain.new(@client)
86
- @version = MyVersion.new(@domain)
87
- @error_message = '{
88
- "code": 20001,
89
- "message": "Bad request",
90
- "more_info": "https://www.twilio.com/docs/errors/20001",
91
- "status": 400,
92
- "details": {
93
- "foo":"bar"
94
- }}'
95
- @holodeck.mock Twilio::Response.new(400, @error_message)
96
- expect {
97
- @version.fetch('GET', 'http://foobar.com')
98
- }.to raise_error { |error|
99
- expect(error).to be_a(Twilio::REST::RestError)
100
- expect(error.status_code).to eq(400)
101
- expect(error.code).to eq(20_001)
102
- expect(error.details).to eq({ 'foo' => 'bar' })
103
- expect(error.error_message).to eq('Bad request')
104
- expect(error.more_info).to eq('https://www.twilio.com/docs/errors/20001')
105
- }
106
- end
99
+ context 'validation' do
100
+ before do
101
+ Twilio.configure do |config|
102
+ config.account_sid = 'someSid'
103
+ config.auth_token = 'someToken'
104
+ config.http_client = 'someClient'
105
+ config.region = nil
106
+ config.edge = nil
107
+ end
108
+ end
107
109
 
108
- class MyVersion < Twilio::REST::Version
109
- def initialize(domain)
110
- super
111
- @version = 'v1'
110
+ it 'successfully validates the working SSL certificate' do
111
+ @holodeck.mock Twilio::Response.new(200, '')
112
+ expect { @client.validate_ssl_certificate }.not_to raise_error
113
+ end
114
+
115
+ it 'fails to validate broken SSL certificates' do
116
+ @holodeck.mock Twilio::Response.new(504, '')
117
+ expect { @client.validate_ssl_certificate }.to raise_error(Twilio::REST::RestError)
118
+ end
119
+
120
+ it 'translates bad request error params' do
121
+ @domain = MyDomain.new(@client)
122
+ @version = MyVersion.new(@domain)
123
+ @error_message = '{
124
+ "code": 20001,
125
+ "message": "Bad request",
126
+ "more_info": "https://www.twilio.com/docs/errors/20001",
127
+ "status": 400,
128
+ "details": {
129
+ "foo":"bar"
130
+ }}'
131
+ @holodeck.mock Twilio::Response.new(400, @error_message)
132
+ expect {
133
+ @version.fetch('GET', 'http://foobar.com')
134
+ }.to raise_error { |error|
135
+ expect(error).to be_a(Twilio::REST::RestError)
136
+ expect(error.status_code).to eq(400)
137
+ expect(error.code).to eq(20_001)
138
+ expect(error.details).to eq({ 'foo' => 'bar' })
139
+ expect(error.error_message).to eq('Bad request')
140
+ expect(error.more_info).to eq('https://www.twilio.com/docs/errors/20001')
141
+ }
112
142
  end
113
143
  end
114
144
 
115
- class MyDomain < Twilio::REST::Domain
116
- def initialize(client)
117
- super
118
- @host = 'twilio.com'
119
- @base_url = 'https://twilio.com'
120
- @port = 443
145
+ describe '#build_uri' do
146
+ before(:all) do
147
+ Twilio.configure do |config|
148
+ config.account_sid = 'username'
149
+ config.auth_token = 'password'
150
+ config.region = nil
151
+ config.edge = nil
152
+ end
153
+ end
154
+
155
+ context 'no region or edge in url' do
156
+ it "doesn't set region or edge" do
157
+ @client = Twilio::REST::Client.new
158
+ expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.twilio.com')
159
+ end
160
+
161
+ it 'uses the default region if edge set' do
162
+ @client = Twilio::REST::Client.new
163
+ @client.edge = 'edge'
164
+ expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.edge.us1.twilio.com')
165
+ end
166
+
167
+ it 'sets region' do
168
+ @client = Twilio::REST::Client.new
169
+ @client.region = 'region'
170
+ expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.region.twilio.com')
171
+ end
172
+
173
+ it 'sets region and edge' do
174
+ @client = Twilio::REST::Client.new
175
+ @client.region = 'region'
176
+ @client.edge = 'edge'
177
+ expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.edge.region.twilio.com')
178
+ end
179
+ end
180
+
181
+ context 'region in url' do
182
+ it 'uses url region' do
183
+ @client = Twilio::REST::Client.new
184
+ expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.urlRegion.twilio.com')
185
+ end
186
+
187
+ it 'uses client edge and url region' do
188
+ @client = Twilio::REST::Client.new
189
+ @client.edge = 'edge'
190
+ expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.edge.urlRegion.twilio.com')
191
+ end
192
+
193
+ it 'prefers client region' do
194
+ @client = Twilio::REST::Client.new
195
+ @client.region = 'region'
196
+ expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.region.twilio.com')
197
+ end
198
+
199
+ it 'uses client edge and prefers client region' do
200
+ @client = Twilio::REST::Client.new
201
+ @client.region = 'region'
202
+ @client.edge = 'edge'
203
+ expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.edge.region.twilio.com')
204
+ end
205
+ end
206
+
207
+ context 'region and edge in url' do
208
+ it 'uses url region and edge' do
209
+ @client = Twilio::REST::Client.new
210
+ expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.urlEdge.urlRegion.twilio.com')
211
+ end
212
+
213
+ it 'prefers client edge' do
214
+ @client = Twilio::REST::Client.new
215
+ @client.edge = 'edge'
216
+ expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.edge.urlRegion.twilio.com')
217
+ end
218
+
219
+ it 'prefers client region' do
220
+ @client = Twilio::REST::Client.new
221
+ @client.region = 'region'
222
+ expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.urlEdge.region.twilio.com')
223
+ end
224
+
225
+ it 'prefers client region and edge' do
226
+ @client = Twilio::REST::Client.new
227
+ @client.region = 'region'
228
+ @client.edge = 'edge'
229
+ expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.edge.region.twilio.com')
230
+ end
121
231
  end
122
232
  end
123
233
  end
@@ -18,4 +18,16 @@ describe Twilio::Util::Configuration do
18
18
  config.http_client = 'someClient'
19
19
  expect(config.http_client).to eq('someClient')
20
20
  end
21
+
22
+ it 'should have a region attribute' do
23
+ config = Twilio::Util::Configuration.new
24
+ config.region = 'someRegion'
25
+ expect(config.region).to eq('someRegion')
26
+ end
27
+
28
+ it 'should have an edge attribute' do
29
+ config = Twilio::Util::Configuration.new
30
+ config.edge = 'someEdge'
31
+ expect(config.edge).to eq('someEdge')
32
+ end
21
33
  end