twilio-ruby 5.20.0 → 5.20.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +22 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +7 -0
  5. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +7 -0
  6. data/lib/twilio-ruby/rest/api/v2010/account.rb +7 -0
  7. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +7 -0
  8. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +7 -0
  9. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +7 -0
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +7 -0
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +7 -0
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +7 -0
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +7 -0
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +7 -0
  15. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +7 -0
  16. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +7 -0
  17. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
  18. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +7 -0
  19. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +7 -0
  20. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +7 -0
  21. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +7 -0
  22. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +7 -0
  23. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +7 -0
  24. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +11 -1
  25. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +7 -0
  26. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +7 -0
  27. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +7 -0
  28. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +7 -0
  29. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +7 -0
  30. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +7 -0
  31. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +7 -0
  32. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +7 -0
  33. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +7 -0
  34. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +7 -0
  35. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +7 -0
  36. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +7 -0
  37. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +7 -0
  38. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +7 -0
  39. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +7 -0
  40. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +7 -0
  41. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +7 -0
  42. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +7 -0
  43. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +7 -0
  44. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +7 -0
  45. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +7 -0
  46. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +7 -0
  47. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +7 -0
  48. data/lib/twilio-ruby/rest/authy/v1/form.rb +7 -0
  49. data/lib/twilio-ruby/rest/authy/v1/service.rb +7 -0
  50. data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +7 -0
  51. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +7 -0
  52. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +7 -0
  53. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +7 -0
  54. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +7 -0
  55. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +7 -0
  56. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +7 -0
  57. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +7 -0
  58. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +7 -0
  59. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +7 -0
  60. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +7 -0
  61. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +7 -0
  62. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +7 -0
  63. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +7 -0
  64. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +7 -0
  65. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +7 -0
  66. data/lib/twilio-ruby/rest/chat/v1/credential.rb +7 -0
  67. data/lib/twilio-ruby/rest/chat/v1/service.rb +7 -0
  68. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +7 -0
  69. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +7 -0
  70. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +7 -0
  71. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -0
  72. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +7 -0
  73. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +7 -0
  74. data/lib/twilio-ruby/rest/chat/v2/credential.rb +7 -0
  75. data/lib/twilio-ruby/rest/chat/v2/service.rb +7 -0
  76. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -0
  77. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +7 -0
  78. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +7 -0
  79. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +7 -0
  80. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +7 -0
  81. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +7 -0
  82. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +7 -0
  83. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +7 -0
  84. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +7 -0
  85. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +7 -0
  86. data/lib/twilio-ruby/rest/client.rb +7 -0
  87. data/lib/twilio-ruby/rest/fax/v1/fax.rb +7 -0
  88. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +7 -0
  89. data/lib/twilio-ruby/rest/flex_api.rb +44 -0
  90. data/lib/twilio-ruby/rest/flex_api/v1.rb +35 -0
  91. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +408 -0
  92. data/lib/twilio-ruby/rest/insights/v1/summary.rb +7 -0
  93. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +7 -0
  94. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +7 -0
  95. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +7 -0
  96. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +7 -0
  97. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +7 -0
  98. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +7 -0
  99. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +7 -0
  100. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +7 -0
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +7 -0
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +7 -0
  103. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -0
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +7 -0
  105. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +7 -0
  106. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +7 -0
  107. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +7 -0
  108. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +7 -0
  109. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +7 -0
  110. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +7 -0
  111. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +7 -0
  112. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +7 -0
  113. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +7 -0
  114. data/lib/twilio-ruby/rest/messaging/v1/service.rb +7 -0
  115. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +7 -0
  116. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +7 -0
  117. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +7 -0
  118. data/lib/twilio-ruby/rest/messaging/v1/session.rb +7 -0
  119. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +7 -0
  120. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +7 -0
  121. data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +7 -0
  122. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +7 -0
  123. data/lib/twilio-ruby/rest/monitor/v1/event.rb +7 -0
  124. data/lib/twilio-ruby/rest/notify/v1/credential.rb +7 -0
  125. data/lib/twilio-ruby/rest/notify/v1/service.rb +7 -0
  126. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +7 -0
  127. data/lib/twilio-ruby/rest/preview/acc_security/service.rb +7 -0
  128. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -0
  129. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +7 -0
  130. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +7 -0
  131. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +7 -0
  132. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +7 -0
  133. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +7 -0
  134. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +7 -0
  135. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +7 -0
  136. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +7 -0
  137. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +7 -0
  138. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +7 -0
  139. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +7 -0
  140. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +7 -0
  141. data/lib/twilio-ruby/rest/preview/sync/service.rb +7 -0
  142. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +7 -0
  143. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +7 -0
  144. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +7 -0
  145. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +7 -0
  146. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +7 -0
  147. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +7 -0
  148. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +7 -0
  149. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +7 -0
  150. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +7 -0
  151. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_fallback_actions.rb +7 -0
  152. data/lib/twilio-ruby/rest/preview/understand/assistant/assistant_initiation_actions.rb +7 -0
  153. data/lib/twilio-ruby/rest/preview/understand/assistant/dialogue.rb +7 -0
  154. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +7 -0
  155. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +7 -0
  156. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +7 -0
  157. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +7 -0
  158. data/lib/twilio-ruby/rest/preview/understand/assistant/style_sheet.rb +7 -0
  159. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +7 -0
  160. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +7 -0
  161. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +7 -0
  162. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_actions.rb +7 -0
  163. data/lib/twilio-ruby/rest/preview/understand/assistant/task/task_statistics.rb +7 -0
  164. data/lib/twilio-ruby/rest/preview/wireless/command.rb +7 -0
  165. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +7 -0
  166. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +7 -0
  167. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +7 -0
  168. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +7 -0
  169. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +7 -0
  170. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +7 -0
  171. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +7 -0
  172. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +7 -0
  173. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +7 -0
  174. data/lib/twilio-ruby/rest/proxy/v1/service.rb +7 -0
  175. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +7 -0
  176. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +7 -0
  177. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +7 -0
  178. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +7 -0
  179. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +7 -0
  180. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +7 -0
  181. data/lib/twilio-ruby/rest/studio/v1/flow.rb +7 -0
  182. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +7 -0
  183. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +7 -0
  184. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +7 -0
  185. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +7 -0
  186. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +7 -0
  187. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +7 -0
  188. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +7 -0
  189. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +7 -0
  190. data/lib/twilio-ruby/rest/sync/v1/service.rb +7 -0
  191. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -0
  192. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +7 -0
  193. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +7 -0
  194. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +7 -0
  195. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +7 -0
  196. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +7 -0
  197. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +7 -0
  198. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +7 -0
  199. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +7 -0
  200. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +7 -0
  201. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
  202. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +48 -9
  203. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +7 -0
  204. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -0
  205. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +7 -0
  206. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +7 -0
  207. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +7 -0
  208. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +14 -0
  209. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +7 -0
  210. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +18 -3
  211. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -0
  212. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +7 -0
  213. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +7 -0
  214. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +7 -0
  215. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +7 -0
  216. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +7 -0
  217. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +7 -0
  218. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +7 -0
  219. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +14 -0
  220. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +7 -0
  221. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +7 -0
  222. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +14 -0
  223. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +7 -0
  224. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +7 -0
  225. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +7 -0
  226. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +7 -0
  227. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +7 -0
  228. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +7 -0
  229. data/lib/twilio-ruby/rest/verify/v1/service.rb +26 -3
  230. data/lib/twilio-ruby/rest/verify/v1/service/verification.rb +21 -1
  231. data/lib/twilio-ruby/rest/verify/v1/service/verification_check.rb +26 -2
  232. data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -0
  233. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +7 -0
  234. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +7 -0
  235. data/lib/twilio-ruby/rest/video/v1/recording.rb +7 -0
  236. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +7 -0
  237. data/lib/twilio-ruby/rest/video/v1/room.rb +7 -0
  238. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -0
  239. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +7 -0
  240. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +7 -0
  241. data/lib/twilio-ruby/rest/voice/v1/voice_permission/country.rb +7 -0
  242. data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -0
  243. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -0
  244. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +7 -0
  245. data/lib/twilio-ruby/version.rb +1 -1
  246. data/spec/integration/api/v2010/account/usage/trigger_spec.rb +3 -3
  247. data/spec/integration/flex_api/v1/configuration_spec.rb +350 -0
  248. data/spec/integration/taskrouter/v1/workspace/event_spec.rb +6 -0
  249. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics_spec.rb +1 -0
  250. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queue_statistics_spec.rb +1 -1
  251. data/spec/integration/taskrouter/v1/workspace/task_queue/task_queues_statistics_spec.rb +1 -1
  252. data/spec/integration/taskrouter/v1/workspace/workflow/workflow_real_time_statistics_spec.rb +1 -0
  253. data/spec/integration/taskrouter/v1/workspace/workflow/workflow_statistics_spec.rb +1 -1
  254. data/spec/integration/taskrouter/v1/workspace/workspace_real_time_statistics_spec.rb +1 -0
  255. data/spec/integration/taskrouter/v1/workspace/workspace_statistics_spec.rb +1 -1
  256. data/spec/integration/verify/v1/service/verification_check_spec.rb +2 -0
  257. data/spec/integration/verify/v1/service/verification_spec.rb +3 -1
  258. data/spec/integration/verify/v1/service_spec.rb +4 -0
  259. metadata +7 -2
@@ -0,0 +1,350 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ require 'spec_helper.rb'
10
+
11
+ describe 'Configuration' do
12
+ it "can fetch" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.flex_api.v1.configuration().fetch()
17
+ }.to raise_exception(Twilio::REST::TwilioError)
18
+
19
+ values = {}
20
+ expect(
21
+ @holodeck.has_request?(Holodeck::Request.new(
22
+ method: 'get',
23
+ url: 'https://flex-api.twilio.com/v1/Configuration',
24
+ ))).to eq(true)
25
+ end
26
+
27
+ it "receives fetch responses" do
28
+ @holodeck.mock(Twilio::Response.new(
29
+ 200,
30
+ %q[
31
+ {
32
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
33
+ "date_created": "2016-08-01T22:10:40Z",
34
+ "date_updated": "2016-08-01T22:10:40Z",
35
+ "attributes": {
36
+ "main_attribute": "some_attribute"
37
+ },
38
+ "status": "ok",
39
+ "taskrouter_workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
40
+ "taskrouter_target_workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
41
+ "taskrouter_target_taskqueue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
42
+ "taskrouter_taskqueues": [
43
+ {
44
+ "sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
45
+ "targettable": true
46
+ },
47
+ {
48
+ "sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
49
+ "targettable": false
50
+ }
51
+ ],
52
+ "taskrouter_skills": [
53
+ {
54
+ "name": "sales",
55
+ "multivalue": false,
56
+ "minimum": 0,
57
+ "maximum": 0
58
+ },
59
+ {
60
+ "name": "support",
61
+ "multivalue": true,
62
+ "minimum": 0,
63
+ "maximum": 10
64
+ }
65
+ ],
66
+ "taskrouter_worker_channels": {
67
+ "agent": [
68
+ {
69
+ "name": "default",
70
+ "availability": true,
71
+ "capacity": 1
72
+ },
73
+ {
74
+ "name": "voice",
75
+ "availability": false,
76
+ "capacity": 2
77
+ }
78
+ ],
79
+ "supervisor": [
80
+ {
81
+ "name": "default",
82
+ "availability": true,
83
+ "capacity": 2
84
+ }
85
+ ]
86
+ },
87
+ "taskrouter_worker_attributes": {
88
+ "agent": {
89
+ "region": "us-east"
90
+ },
91
+ "supervisor": {
92
+ "region": "us"
93
+ }
94
+ },
95
+ "taskrouter_offline_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
96
+ "runtime_domain": "https://flex.twilio.com",
97
+ "messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
98
+ "chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
99
+ "ui_language": "en",
100
+ "ui_attributes": {},
101
+ "ui_version": "1.0",
102
+ "service_version": "1.0",
103
+ "call_recording_enabled": true,
104
+ "call_recording_webhook_url": "https://www.example.com/call-recording",
105
+ "crm_enabled": true,
106
+ "crm_type": "custom",
107
+ "crm_callback_url": "https://crm.com/a",
108
+ "crm_fallback_url": "https://crm.com/b",
109
+ "crm_attributes": {
110
+ "crm_attribute": "some_crm"
111
+ },
112
+ "public_attributes": {
113
+ "public": "test"
114
+ },
115
+ "url": "https://flex-api.twilio.com/v1/Configuration"
116
+ }
117
+ ]
118
+ ))
119
+
120
+ actual = @client.flex_api.v1.configuration().fetch()
121
+
122
+ expect(actual).to_not eq(nil)
123
+ end
124
+
125
+ it "can create" do
126
+ @holodeck.mock(Twilio::Response.new(500, ''))
127
+
128
+ expect {
129
+ @client.flex_api.v1.configuration().create()
130
+ }.to raise_exception(Twilio::REST::TwilioError)
131
+
132
+ values = {}
133
+ expect(
134
+ @holodeck.has_request?(Holodeck::Request.new(
135
+ method: 'post',
136
+ url: 'https://flex-api.twilio.com/v1/Configuration',
137
+ ))).to eq(true)
138
+ end
139
+
140
+ it "receives create responses" do
141
+ @holodeck.mock(Twilio::Response.new(
142
+ 201,
143
+ %q[
144
+ {
145
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
146
+ "date_created": "2016-08-01T22:10:40Z",
147
+ "date_updated": "2016-08-01T22:10:40Z",
148
+ "attributes": {
149
+ "main_attribute": "some_attribute"
150
+ },
151
+ "status": "ok",
152
+ "taskrouter_workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
153
+ "taskrouter_target_workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
154
+ "taskrouter_target_taskqueue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
155
+ "taskrouter_taskqueues": [
156
+ {
157
+ "sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
158
+ "targettable": true
159
+ },
160
+ {
161
+ "sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
162
+ "targettable": false
163
+ }
164
+ ],
165
+ "taskrouter_skills": [
166
+ {
167
+ "name": "sales",
168
+ "multivalue": false,
169
+ "minimum": 0,
170
+ "maximum": 0
171
+ },
172
+ {
173
+ "name": "support",
174
+ "multivalue": true,
175
+ "minimum": 0,
176
+ "maximum": 10
177
+ }
178
+ ],
179
+ "taskrouter_worker_channels": {
180
+ "agent": [
181
+ {
182
+ "name": "default",
183
+ "availability": true,
184
+ "capacity": 1
185
+ },
186
+ {
187
+ "name": "voice",
188
+ "availability": false,
189
+ "capacity": 2
190
+ }
191
+ ],
192
+ "supervisor": [
193
+ {
194
+ "name": "default",
195
+ "availability": true,
196
+ "capacity": 2
197
+ }
198
+ ]
199
+ },
200
+ "taskrouter_worker_attributes": {
201
+ "agent": {
202
+ "region": "us-east"
203
+ },
204
+ "supervisor": {
205
+ "region": "us"
206
+ }
207
+ },
208
+ "taskrouter_offline_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
209
+ "runtime_domain": "https://flex.twilio.com",
210
+ "messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
211
+ "chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
212
+ "ui_language": "en",
213
+ "ui_attributes": {},
214
+ "ui_version": "1.0",
215
+ "service_version": "1.0",
216
+ "call_recording_enabled": true,
217
+ "call_recording_webhook_url": "https://www.example.com/call-recording",
218
+ "crm_enabled": true,
219
+ "crm_type": "custom",
220
+ "crm_callback_url": "https://crm.com/a",
221
+ "crm_fallback_url": "https://crm.com/b",
222
+ "crm_attributes": {
223
+ "crm_attribute": "some_crm"
224
+ },
225
+ "public_attributes": {
226
+ "public": "test"
227
+ },
228
+ "url": "https://flex-api.twilio.com/v1/Configuration"
229
+ }
230
+ ]
231
+ ))
232
+
233
+ actual = @client.flex_api.v1.configuration().create()
234
+
235
+ expect(actual).to_not eq(nil)
236
+ end
237
+
238
+ it "can update" do
239
+ @holodeck.mock(Twilio::Response.new(500, ''))
240
+
241
+ expect {
242
+ @client.flex_api.v1.configuration().update()
243
+ }.to raise_exception(Twilio::REST::TwilioError)
244
+
245
+ values = {}
246
+ expect(
247
+ @holodeck.has_request?(Holodeck::Request.new(
248
+ method: 'post',
249
+ url: 'https://flex-api.twilio.com/v1/Configuration',
250
+ ))).to eq(true)
251
+ end
252
+
253
+ it "receives update responses" do
254
+ @holodeck.mock(Twilio::Response.new(
255
+ 200,
256
+ %q[
257
+ {
258
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
259
+ "date_created": "2016-08-01T22:10:40Z",
260
+ "date_updated": "2016-08-01T22:10:40Z",
261
+ "attributes": {
262
+ "main_attribute": "some_attribute"
263
+ },
264
+ "status": "ok",
265
+ "taskrouter_workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
266
+ "taskrouter_target_workflow_sid": "WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
267
+ "taskrouter_target_taskqueue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
268
+ "taskrouter_taskqueues": [
269
+ {
270
+ "sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",
271
+ "targettable": true
272
+ },
273
+ {
274
+ "sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaac",
275
+ "targettable": false
276
+ }
277
+ ],
278
+ "taskrouter_skills": [
279
+ {
280
+ "name": "sales",
281
+ "multivalue": false,
282
+ "minimum": 0,
283
+ "maximum": 0
284
+ },
285
+ {
286
+ "name": "support",
287
+ "multivalue": true,
288
+ "minimum": 0,
289
+ "maximum": 10
290
+ }
291
+ ],
292
+ "taskrouter_worker_channels": {
293
+ "agent": [
294
+ {
295
+ "name": "default",
296
+ "availability": true,
297
+ "capacity": 1
298
+ },
299
+ {
300
+ "name": "voice",
301
+ "availability": false,
302
+ "capacity": 2
303
+ }
304
+ ],
305
+ "supervisor": [
306
+ {
307
+ "name": "default",
308
+ "availability": true,
309
+ "capacity": 2
310
+ }
311
+ ]
312
+ },
313
+ "taskrouter_worker_attributes": {
314
+ "agent": {
315
+ "region": "us-east"
316
+ },
317
+ "supervisor": {
318
+ "region": "us"
319
+ }
320
+ },
321
+ "taskrouter_offline_activity_sid": "WAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
322
+ "runtime_domain": "https://flex.twilio.com",
323
+ "messaging_service_instance_sid": "MGaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
324
+ "chat_service_instance_sid": "ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
325
+ "ui_language": "en",
326
+ "ui_attributes": {},
327
+ "ui_version": "1.0",
328
+ "service_version": "1.0",
329
+ "call_recording_enabled": true,
330
+ "call_recording_webhook_url": "https://www.example.com/call-recording",
331
+ "crm_enabled": true,
332
+ "crm_type": "custom",
333
+ "crm_callback_url": "https://crm.com/a",
334
+ "crm_fallback_url": "https://crm.com/b",
335
+ "crm_attributes": {
336
+ "crm_attribute": "some_crm"
337
+ },
338
+ "public_attributes": {
339
+ "public": "test"
340
+ },
341
+ "url": "https://flex-api.twilio.com/v1/Configuration"
342
+ }
343
+ ]
344
+ ))
345
+
346
+ actual = @client.flex_api.v1.configuration().update()
347
+
348
+ expect(actual).to_not eq(nil)
349
+ end
350
+ end
@@ -42,10 +42,12 @@ describe 'Event' do
42
42
  "worker_name": "JustinWorker",
43
43
  "worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
44
44
  "worker_time_in_previous_activity": "26",
45
+ "worker_time_in_previous_activity_ms": "26123",
45
46
  "workspace_name": "WorkspaceName",
46
47
  "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
47
48
  },
48
49
  "event_date": "2015-02-07T00:32:41Z",
50
+ "event_date_ms": 987654321111,
49
51
  "event_type": "worker.activity",
50
52
  "resource_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
51
53
  "resource_type": "worker",
@@ -53,6 +55,7 @@ describe 'Event' do
53
55
  "sid": "EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
54
56
  "source": "twilio",
55
57
  "source_ip_address": "1.2.3.4",
58
+ "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
56
59
  "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events/EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
57
60
  }
58
61
  ]
@@ -99,10 +102,12 @@ describe 'Event' do
99
102
  "worker_name": "JustinWorker",
100
103
  "worker_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
101
104
  "worker_time_in_previous_activity": "26",
105
+ "worker_time_in_previous_activity_ms": "26123",
102
106
  "workspace_name": "WorkspaceName",
103
107
  "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
104
108
  },
105
109
  "event_date": "2015-02-07T00:32:41Z",
110
+ "event_date_ms": 987654321111,
106
111
  "event_type": "worker.activity",
107
112
  "resource_sid": "WKaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
108
113
  "resource_type": "worker",
@@ -110,6 +115,7 @@ describe 'Event' do
110
115
  "sid": "EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
111
116
  "source": "twilio",
112
117
  "source_ip_address": "1.2.3.4",
118
+ "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
113
119
  "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Events/EVaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
114
120
  }
115
121
  ],
@@ -32,6 +32,7 @@ describe 'TaskQueueRealTimeStatistics' do
32
32
  %q[
33
33
  {
34
34
  "longest_task_waiting_age": 100,
35
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
36
  "task_queue_sid": "WQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
36
37
  "tasks_by_status": {
37
38
  "reserved": 0,
@@ -82,7 +82,7 @@ describe 'TaskQueueStatistics' do
82
82
  }
83
83
  ],
84
84
  "longest_task_waiting_age": 0,
85
- "longest_task_waiting_sid": null,
85
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
86
86
  "tasks_by_status": {
87
87
  "assigned": 0,
88
88
  "pending": 0,
@@ -92,7 +92,7 @@ describe 'TaskQueuesStatistics' do
92
92
  }
93
93
  ],
94
94
  "longest_task_waiting_age": 0,
95
- "longest_task_waiting_sid": null,
95
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
96
96
  "tasks_by_status": {
97
97
  "assigned": 0,
98
98
  "pending": 0,
@@ -32,6 +32,7 @@ describe 'WorkflowRealTimeStatistics' do
32
32
  %q[
33
33
  {
34
34
  "longest_task_waiting_age": 100,
35
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
35
36
  "url": "https://taskrouter.twilio.com/v1/Workspaces/WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Workflows/WWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/RealTimeStatistics",
36
37
  "tasks_by_priority": {},
37
38
  "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -47,7 +47,7 @@ describe 'WorkflowStatistics' do
47
47
  },
48
48
  "realtime": {
49
49
  "longest_task_waiting_age": 0,
50
- "longest_task_waiting_sid": null,
50
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
51
51
  "tasks_by_status": {
52
52
  "assigned": 1,
53
53
  "pending": 0,
@@ -56,6 +56,7 @@ describe 'WorkspaceRealTimeStatistics' do
56
56
  ],
57
57
  "workspace_sid": "WSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
58
58
  "longest_task_waiting_age": 100,
59
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
59
60
  "total_workers": 100,
60
61
  "total_tasks": 100,
61
62
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -82,7 +82,7 @@ describe 'WorkspaceStatistics' do
82
82
  }
83
83
  ],
84
84
  "longest_task_waiting_age": 0,
85
- "longest_task_waiting_sid": null,
85
+ "longest_task_waiting_sid": "WTaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
86
86
  "tasks_by_status": {
87
87
  "assigned": 0,
88
88
  "pending": 0,