twilio-ruby 5.37.0 → 5.39.3

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