twilio-ruby 5.40.3 → 5.40.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +19 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +3 -3
  6. data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +2 -2
  7. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +3 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +3 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +3 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +29 -29
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +29 -29
  12. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +29 -29
  13. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +29 -29
  14. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +29 -29
  15. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +29 -29
  16. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +29 -29
  17. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +20 -20
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +3 -3
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +3 -3
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +6 -6
  21. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +16 -16
  22. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
  23. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -3
  24. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +26 -22
  25. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +3 -3
  26. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
  28. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +3 -3
  29. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +3 -3
  30. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +3 -3
  31. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +3 -3
  32. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +3 -3
  33. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +1 -1
  34. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +25 -25
  35. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +4 -4
  36. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +3 -3
  37. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +3 -3
  38. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +3 -3
  39. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +3 -3
  40. data/lib/twilio-ruby/rest/api/v2010/account/queue/member.rb +5 -5
  41. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +6 -6
  42. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +3 -3
  43. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +3 -3
  44. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +6 -6
  45. data/lib/twilio-ruby/rest/api/v2010/account/short_code.rb +3 -3
  46. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +1 -1
  47. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +2 -2
  48. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +2 -2
  49. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +3 -3
  50. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +3 -3
  51. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +2 -2
  52. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +3 -3
  53. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +1 -1
  54. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +1 -1
  55. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +1 -1
  56. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +2 -2
  57. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +3 -3
  58. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +6 -6
  59. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +6 -6
  60. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +6 -6
  61. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +6 -6
  62. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +6 -6
  63. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +6 -6
  64. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +6 -6
  65. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +6 -6
  66. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +6 -6
  67. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +18 -18
  68. data/lib/twilio-ruby/rest/api/v2010/account/validation_request.rb +3 -3
  69. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +12 -12
  70. data/lib/twilio-ruby/rest/autopilot/v1/assistant/defaults.rb +3 -3
  71. data/lib/twilio-ruby/rest/autopilot/v1/assistant/dialogue.rb +3 -3
  72. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +3 -3
  73. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +11 -11
  74. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +3 -3
  75. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +26 -26
  76. data/lib/twilio-ruby/rest/autopilot/v1/assistant/style_sheet.rb +3 -3
  77. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +6 -6
  78. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +9 -9
  79. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +24 -24
  80. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb +8 -8
  81. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb +6 -6
  82. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +3 -3
  83. data/lib/twilio-ruby/rest/chat/v1/service.rb +36 -36
  84. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +3 -3
  85. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +19 -19
  86. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +28 -28
  87. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +7 -7
  88. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +5 -5
  89. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +8 -8
  90. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +2 -2
  91. data/lib/twilio-ruby/rest/chat/v2/service.rb +36 -36
  92. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +18 -18
  93. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +15 -15
  94. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +19 -19
  95. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +54 -54
  96. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +25 -25
  97. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +15 -15
  98. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +5 -5
  99. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +8 -8
  100. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +18 -18
  101. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +20 -20
  102. data/lib/twilio-ruby/rest/client.rb +1 -1
  103. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +10 -18
  104. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +0 -8
  105. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -15
  106. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +5 -13
  107. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +7 -15
  108. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +12 -20
  109. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +3 -11
  110. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +0 -8
  111. data/lib/twilio-ruby/rest/conversations/v1/role.rb +4 -12
  112. data/lib/twilio-ruby/rest/conversations/v1/service.rb +1 -9
  113. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +24 -32
  114. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +14 -22
  115. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +2 -10
  116. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +11 -19
  117. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +10 -18
  118. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +13 -21
  119. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +18 -26
  120. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -17
  121. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +10 -18
  122. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +41 -30
  123. data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -24
  124. data/lib/twilio-ruby/rest/fax/v1/fax.rb +27 -27
  125. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +36 -36
  126. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  127. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +19 -19
  128. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +28 -28
  129. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +7 -7
  130. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +5 -5
  131. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +8 -8
  132. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +2 -2
  133. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +36 -36
  134. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +18 -18
  135. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +15 -15
  136. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +19 -19
  137. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +54 -54
  138. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +25 -25
  139. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +15 -15
  140. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +5 -5
  141. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +8 -8
  142. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +18 -18
  143. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +20 -20
  144. data/lib/twilio-ruby/rest/lookups.rb +1 -1
  145. data/lib/twilio-ruby/rest/lookups/v1.rb +1 -1
  146. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +10 -10
  147. data/lib/twilio-ruby/rest/messaging/v1/service.rb +36 -36
  148. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +3 -3
  149. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +3 -3
  150. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +3 -3
  151. data/lib/twilio-ruby/rest/monitor/v1/event.rb +15 -15
  152. data/lib/twilio-ruby/rest/notify/v1/service.rb +24 -24
  153. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +10 -10
  154. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +17 -17
  155. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -10
  156. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -6
  157. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +1 -1
  158. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +4 -4
  159. data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +4 -4
  160. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +52 -52
  161. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
  162. data/lib/twilio-ruby/rest/pricing/v1/messaging.rb +2 -2
  163. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +4 -4
  164. data/lib/twilio-ruby/rest/pricing/v1/phone_number.rb +2 -2
  165. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -4
  166. data/lib/twilio-ruby/rest/pricing/v1/voice.rb +2 -2
  167. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +4 -4
  168. data/lib/twilio-ruby/rest/pricing/v2/voice.rb +3 -3
  169. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
  170. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +4 -4
  171. data/lib/twilio-ruby/rest/proxy/v1/service.rb +15 -15
  172. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +11 -11
  173. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +6 -6
  174. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +6 -6
  175. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +6 -6
  176. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +9 -9
  177. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +8 -8
  178. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -0
  179. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +219 -0
  180. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +6 -6
  181. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +6 -6
  182. data/lib/twilio-ruby/rest/supersim/v1/command.rb +7 -7
  183. data/lib/twilio-ruby/rest/supersim/v1/network.rb +6 -6
  184. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +7 -7
  185. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +6 -6
  186. data/lib/twilio-ruby/rest/sync/v1/service.rb +3 -3
  187. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +6 -6
  188. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +6 -6
  189. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -6
  190. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +6 -6
  191. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +6 -6
  192. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -6
  193. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +12 -12
  194. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +6 -6
  195. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +6 -6
  196. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +4 -4
  197. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +4 -4
  198. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +6 -6
  199. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +12 -12
  200. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  201. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -6
  202. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +6 -6
  203. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +9 -9
  204. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +3 -3
  205. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +12 -12
  206. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +4 -4
  207. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +4 -4
  208. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +6 -6
  209. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +12 -12
  210. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -4
  211. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +6 -6
  212. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -4
  213. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +6 -6
  214. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +27 -27
  215. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
  216. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
  217. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
  218. data/lib/twilio-ruby/rest/verify/v2/service.rb +3 -3
  219. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
  220. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +2 -6
  221. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
  222. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
  223. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +3 -3
  224. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +12 -12
  225. data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +5 -5
  226. data/lib/twilio-ruby/rest/video/v1/composition.rb +9 -9
  227. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +24 -24
  228. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  229. data/lib/twilio-ruby/rest/video/v1/room.rb +6 -9
  230. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +6 -6
  231. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +9 -9
  232. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +2 -2
  233. data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +9 -9
  234. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +2 -2
  235. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +22 -22
  236. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +4 -4
  237. data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +2 -2
  238. data/lib/twilio-ruby/rest/wireless/v1/command.rb +7 -7
  239. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +7 -7
  240. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +22 -22
  241. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +4 -4
  242. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +10 -10
  243. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +6 -6
  244. data/lib/twilio-ruby/version.rb +1 -1
  245. data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
  246. data/spec/integration/conversations/v1/service/user_spec.rb +9 -3
  247. data/spec/integration/conversations/v1/user_spec.rb +9 -3
  248. data/spec/integration/serverless/v1/service/build/build_status_spec.rb +48 -0
  249. data/spec/integration/serverless/v1/service/build_spec.rb +8 -2
  250. data/spec/integration/verify/v2/service/entity/factor_spec.rb +2 -2
  251. data/spec/integration/video/v1/room_spec.rb +2 -2
  252. metadata +5 -2
@@ -13,20 +13,18 @@ module Twilio
13
13
  class ServiceContext < InstanceContext
14
14
  class ConversationContext < InstanceContext
15
15
  class MessageContext < InstanceContext
16
- ##
17
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
18
16
  class DeliveryReceiptList < ListResource
19
17
  ##
20
18
  # Initialize the DeliveryReceiptList
21
19
  # @param [Version] version Version that contains the resource
22
- # @param [String] chat_service_sid The SID of the [Conversation
23
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
20
+ # @param [String] chat_service_sid The SID of the {Conversation
21
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
24
22
  # Message resource is associated with.
25
23
  # @param [String] conversation_sid The unique ID of the
26
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
24
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
27
25
  # for this message.
28
26
  # @param [String] message_sid The SID of the message within a
29
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
27
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
30
28
  # the delivery receipt belongs to
31
29
  # @return [DeliveryReceiptList] DeliveryReceiptList
32
30
  def initialize(version, chat_service_sid: nil, conversation_sid: nil, message_sid: nil)
@@ -128,8 +126,6 @@ module Twilio
128
126
  end
129
127
  end
130
128
 
131
- ##
132
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
133
129
  class DeliveryReceiptPage < Page
134
130
  ##
135
131
  # Initialize the DeliveryReceiptPage
@@ -165,20 +161,18 @@ module Twilio
165
161
  end
166
162
  end
167
163
 
168
- ##
169
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
170
164
  class DeliveryReceiptContext < InstanceContext
171
165
  ##
172
166
  # Initialize the DeliveryReceiptContext
173
167
  # @param [Version] version Version that contains the resource
174
- # @param [String] chat_service_sid The SID of the [Conversation
175
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
168
+ # @param [String] chat_service_sid The SID of the {Conversation
169
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
176
170
  # Message resource is associated with.
177
171
  # @param [String] conversation_sid The unique ID of the
178
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
172
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
179
173
  # for this message.
180
174
  # @param [String] message_sid The SID of the message within a
181
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
175
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
182
176
  # the delivery receipt belongs to.
183
177
  # @param [String] sid A 34 character string that uniquely identifies this
184
178
  # resource.
@@ -227,21 +221,19 @@ module Twilio
227
221
  end
228
222
  end
229
223
 
230
- ##
231
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
232
224
  class DeliveryReceiptInstance < InstanceResource
233
225
  ##
234
226
  # Initialize the DeliveryReceiptInstance
235
227
  # @param [Version] version Version that contains the resource
236
228
  # @param [Hash] payload payload that contains response from Twilio
237
- # @param [String] chat_service_sid The SID of the [Conversation
238
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
229
+ # @param [String] chat_service_sid The SID of the {Conversation
230
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
239
231
  # Message resource is associated with.
240
232
  # @param [String] conversation_sid The unique ID of the
241
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
233
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
242
234
  # for this message.
243
235
  # @param [String] message_sid The SID of the message within a
244
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
236
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
245
237
  # the delivery receipt belongs to
246
238
  # @param [String] sid A 34 character string that uniquely identifies this
247
239
  # resource.
@@ -341,7 +333,7 @@ module Twilio
341
333
  end
342
334
 
343
335
  ##
344
- # @return [String] The message [delivery error code](https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors) for a `failed` status
336
+ # @return [String] The message {delivery error code}[https://www.twilio.com/docs/sms/api/message-resource#delivery-related-errors] for a `failed` status
345
337
  def error_code
346
338
  @properties['error_code']
347
339
  end
@@ -12,17 +12,15 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class ConversationContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class ParticipantList < ListResource
18
16
  ##
19
17
  # Initialize the ParticipantList
20
18
  # @param [Version] version Version that contains the resource
21
- # @param [String] chat_service_sid The SID of the [Conversation
22
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
19
+ # @param [String] chat_service_sid The SID of the {Conversation
20
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
23
21
  # Participant resource is associated with.
24
22
  # @param [String] conversation_sid The unique ID of the
25
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
23
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
26
24
  # for this participant.
27
25
  # @return [ParticipantList] ParticipantList
28
26
  def initialize(version, chat_service_sid: nil, conversation_sid: nil)
@@ -36,8 +34,8 @@ module Twilio
36
34
  ##
37
35
  # Create the ParticipantInstance
38
36
  # @param [String] identity A unique string identifier for the conversation
39
- # participant as [Conversation
40
- # User](https://www.twilio.com/docs/conversations/api/user-resource). This
37
+ # participant as {Conversation
38
+ # User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
41
39
  # parameter is non-null if (and only if) the participant is using the Conversation
42
40
  # SDK to communicate. Limited to 256 characters.
43
41
  # @param [String] messaging_binding_address The address of the participant's
@@ -59,7 +57,7 @@ module Twilio
59
57
  # phone number that is used in Group MMS. Communication mask for the Conversation
60
58
  # participant with Identity.
61
59
  # @param [String] role_sid The SID of a conversation-level
62
- # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
60
+ # {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
63
61
  # the participant.
64
62
  # @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
65
63
  # X-Twilio-Webhook-Enabled HTTP request header
@@ -174,8 +172,6 @@ module Twilio
174
172
  end
175
173
  end
176
174
 
177
- ##
178
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
179
175
  class ParticipantPage < Page
180
176
  ##
181
177
  # Initialize the ParticipantPage
@@ -210,17 +206,15 @@ module Twilio
210
206
  end
211
207
  end
212
208
 
213
- ##
214
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
215
209
  class ParticipantContext < InstanceContext
216
210
  ##
217
211
  # Initialize the ParticipantContext
218
212
  # @param [Version] version Version that contains the resource
219
- # @param [String] chat_service_sid The SID of the [Conversation
220
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
213
+ # @param [String] chat_service_sid The SID of the {Conversation
214
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
221
215
  # Participant resource is associated with.
222
216
  # @param [String] conversation_sid The unique ID of the
223
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
217
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
224
218
  # for this participant.
225
219
  # @param [String] sid A 34 character string that uniquely identifies this
226
220
  # resource.
@@ -238,8 +232,8 @@ module Twilio
238
232
  # @param [Time] date_created The date that this resource was created.
239
233
  # @param [Time] date_updated The date that this resource was last updated.
240
234
  # @param [String] identity A unique string identifier for the conversation
241
- # participant as [Conversation
242
- # User](https://www.twilio.com/docs/conversations/api/user-resource). This
235
+ # participant as {Conversation
236
+ # User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
243
237
  # parameter is non-null if (and only if) the participant is using the Conversation
244
238
  # SDK to communicate. Limited to 256 characters.
245
239
  # @param [String] attributes An optional string metadata field you can use to
@@ -247,7 +241,7 @@ module Twilio
247
241
  # if specified. **Note** that if the attributes are not set "{}" will be
248
242
  # returned.
249
243
  # @param [String] role_sid The SID of a conversation-level
250
- # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
244
+ # {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
251
245
  # the participant.
252
246
  # @param [String] messaging_binding_proxy_address The address of the Twilio phone
253
247
  # number that the participant is in contact with. 'null' value will remove it.
@@ -320,18 +314,16 @@ module Twilio
320
314
  end
321
315
  end
322
316
 
323
- ##
324
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
325
317
  class ParticipantInstance < InstanceResource
326
318
  ##
327
319
  # Initialize the ParticipantInstance
328
320
  # @param [Version] version Version that contains the resource
329
321
  # @param [Hash] payload payload that contains response from Twilio
330
- # @param [String] chat_service_sid The SID of the [Conversation
331
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
322
+ # @param [String] chat_service_sid The SID of the {Conversation
323
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
332
324
  # Participant resource is associated with.
333
325
  # @param [String] conversation_sid The unique ID of the
334
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
326
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
335
327
  # for this participant.
336
328
  # @param [String] sid A 34 character string that uniquely identifies this
337
329
  # resource.
@@ -450,8 +442,8 @@ module Twilio
450
442
  # @param [Time] date_created The date that this resource was created.
451
443
  # @param [Time] date_updated The date that this resource was last updated.
452
444
  # @param [String] identity A unique string identifier for the conversation
453
- # participant as [Conversation
454
- # User](https://www.twilio.com/docs/conversations/api/user-resource). This
445
+ # participant as {Conversation
446
+ # User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
455
447
  # parameter is non-null if (and only if) the participant is using the Conversation
456
448
  # SDK to communicate. Limited to 256 characters.
457
449
  # @param [String] attributes An optional string metadata field you can use to
@@ -459,7 +451,7 @@ module Twilio
459
451
  # if specified. **Note** that if the attributes are not set "{}" will be
460
452
  # returned.
461
453
  # @param [String] role_sid The SID of a conversation-level
462
- # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
454
+ # {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
463
455
  # the participant.
464
456
  # @param [String] messaging_binding_proxy_address The address of the Twilio phone
465
457
  # number that the participant is in contact with. 'null' value will remove it.
@@ -12,17 +12,15 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class ConversationContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class WebhookList < ListResource
18
16
  ##
19
17
  # Initialize the WebhookList
20
18
  # @param [Version] version Version that contains the resource
21
- # @param [String] chat_service_sid The SID of the [Conversation
22
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
19
+ # @param [String] chat_service_sid The SID of the {Conversation
20
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
23
21
  # Participant resource is associated with.
24
22
  # @param [String] conversation_sid The unique ID of the
25
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
23
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
26
24
  # for this webhook.
27
25
  # @return [WebhookList] WebhookList
28
26
  def initialize(version, chat_service_sid: nil, conversation_sid: nil)
@@ -158,8 +156,6 @@ module Twilio
158
156
  end
159
157
  end
160
158
 
161
- ##
162
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
163
159
  class WebhookPage < Page
164
160
  ##
165
161
  # Initialize the WebhookPage
@@ -194,17 +190,15 @@ module Twilio
194
190
  end
195
191
  end
196
192
 
197
- ##
198
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
199
193
  class WebhookContext < InstanceContext
200
194
  ##
201
195
  # Initialize the WebhookContext
202
196
  # @param [Version] version Version that contains the resource
203
- # @param [String] chat_service_sid The SID of the [Conversation
204
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
197
+ # @param [String] chat_service_sid The SID of the {Conversation
198
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
205
199
  # Participant resource is associated with.
206
200
  # @param [String] conversation_sid The unique ID of the
207
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
201
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
208
202
  # for this webhook.
209
203
  # @param [String] sid A 34 character string that uniquely identifies this
210
204
  # resource.
@@ -287,18 +281,16 @@ module Twilio
287
281
  end
288
282
  end
289
283
 
290
- ##
291
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
292
284
  class WebhookInstance < InstanceResource
293
285
  ##
294
286
  # Initialize the WebhookInstance
295
287
  # @param [Version] version Version that contains the resource
296
288
  # @param [Hash] payload payload that contains response from Twilio
297
- # @param [String] chat_service_sid The SID of the [Conversation
298
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
289
+ # @param [String] chat_service_sid The SID of the {Conversation
290
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
299
291
  # Participant resource is associated with.
300
292
  # @param [String] conversation_sid The unique ID of the
301
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
293
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
302
294
  # for this webhook.
303
295
  # @param [String] sid A 34 character string that uniquely identifies this
304
296
  # resource.
@@ -11,14 +11,12 @@ module Twilio
11
11
  class Conversations < Domain
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class RoleList < ListResource
17
15
  ##
18
16
  # Initialize the RoleList
19
17
  # @param [Version] version Version that contains the resource
20
- # @param [String] chat_service_sid The SID of the [Conversation
21
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
18
+ # @param [String] chat_service_sid The SID of the {Conversation
19
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
22
20
  # Role resource is associated with.
23
21
  # @return [RoleList] RoleList
24
22
  def initialize(version, chat_service_sid: nil)
@@ -34,9 +32,9 @@ module Twilio
34
32
  # @param [String] friendly_name A descriptive string that you create to describe
35
33
  # the new resource. It can be up to 64 characters long.
36
34
  # @param [role.RoleType] type The type of role. Can be: `conversation` for
37
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
38
- # roles or `service` for [Conversation
39
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
35
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
36
+ # roles or `service` for {Conversation
37
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] roles.
40
38
  # @param [String] permission A permission that you grant to the new role. Only one
41
39
  # permission can be granted per parameter. To assign more than one permission,
42
40
  # repeat this parameter for each permission value. The values for this parameter
@@ -141,8 +139,6 @@ module Twilio
141
139
  end
142
140
  end
143
141
 
144
- ##
145
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
146
142
  class RolePage < Page
147
143
  ##
148
144
  # Initialize the RolePage
@@ -172,14 +168,12 @@ module Twilio
172
168
  end
173
169
  end
174
170
 
175
- ##
176
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
177
171
  class RoleContext < InstanceContext
178
172
  ##
179
173
  # Initialize the RoleContext
180
174
  # @param [Version] version Version that contains the resource
181
- # @param [String] chat_service_sid The SID of the [Conversation
182
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) to
175
+ # @param [String] chat_service_sid The SID of the {Conversation
176
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] to
183
177
  # fetch the Role resource from.
184
178
  # @param [String] sid The SID of the Role resource to fetch.
185
179
  # @return [RoleContext] RoleContext
@@ -249,15 +243,13 @@ module Twilio
249
243
  end
250
244
  end
251
245
 
252
- ##
253
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
254
246
  class RoleInstance < InstanceResource
255
247
  ##
256
248
  # Initialize the RoleInstance
257
249
  # @param [Version] version Version that contains the resource
258
250
  # @param [Hash] payload payload that contains response from Twilio
259
- # @param [String] chat_service_sid The SID of the [Conversation
260
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
251
+ # @param [String] chat_service_sid The SID of the {Conversation
252
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
261
253
  # Role resource is associated with.
262
254
  # @param [String] sid The SID of the Role resource to fetch.
263
255
  # @return [RoleInstance] RoleInstance
@@ -342,7 +334,7 @@ module Twilio
342
334
  end
343
335
 
344
336
  ##
345
- # @return [String] The absolute URL of the Role resource
337
+ # @return [String] An absolute URL for this user role.
346
338
  def url
347
339
  @properties['url']
348
340
  end
@@ -11,14 +11,12 @@ module Twilio
11
11
  class Conversations < Domain
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class UserList < ListResource
17
15
  ##
18
16
  # Initialize the UserList
19
17
  # @param [Version] version Version that contains the resource
20
- # @param [String] chat_service_sid The SID of the [Conversation
21
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
18
+ # @param [String] chat_service_sid The SID of the {Conversation
19
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
22
20
  # User resource is associated with.
23
21
  # @return [UserList] UserList
24
22
  def initialize(version, chat_service_sid: nil)
@@ -32,26 +30,29 @@ module Twilio
32
30
  ##
33
31
  # Create the UserInstance
34
32
  # @param [String] identity The application-defined string that uniquely identifies
35
- # the resource's User within the [Conversation
36
- # Service](https://www.twilio.com/docs/conversations/api/service-resource). This
33
+ # the resource's User within the {Conversation
34
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource]. This
37
35
  # value is often a username or an email address, and is case-sensitive.
38
36
  # @param [String] friendly_name The string that you assigned to describe the
39
37
  # resource.
40
38
  # @param [String] attributes The JSON Object string that stores
41
39
  # application-specific data. If attributes have not been set, `{}` is returned.
42
40
  # @param [String] role_sid The SID of a service-level
43
- # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
41
+ # {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
44
42
  # the user.
43
+ # @param [user.WebhookEnabledType] x_twilio_webhook_enabled The
44
+ # X-Twilio-Webhook-Enabled HTTP request header
45
45
  # @return [UserInstance] Created UserInstance
46
- def create(identity: nil, friendly_name: :unset, attributes: :unset, role_sid: :unset)
46
+ def create(identity: nil, friendly_name: :unset, attributes: :unset, role_sid: :unset, x_twilio_webhook_enabled: :unset)
47
47
  data = Twilio::Values.of({
48
48
  'Identity' => identity,
49
49
  'FriendlyName' => friendly_name,
50
50
  'Attributes' => attributes,
51
51
  'RoleSid' => role_sid,
52
52
  })
53
+ headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
53
54
 
54
- payload = @version.create('POST', @uri, data: data)
55
+ payload = @version.create('POST', @uri, data: data, headers: headers)
55
56
 
56
57
  UserInstance.new(@version, payload, chat_service_sid: @solution[:chat_service_sid], )
57
58
  end
@@ -143,8 +144,6 @@ module Twilio
143
144
  end
144
145
  end
145
146
 
146
- ##
147
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
148
147
  class UserPage < Page
149
148
  ##
150
149
  # Initialize the UserPage
@@ -174,14 +173,12 @@ module Twilio
174
173
  end
175
174
  end
176
175
 
177
- ##
178
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
179
176
  class UserContext < InstanceContext
180
177
  ##
181
178
  # Initialize the UserContext
182
179
  # @param [Version] version Version that contains the resource
183
- # @param [String] chat_service_sid The SID of the [Conversation
184
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) to
180
+ # @param [String] chat_service_sid The SID of the {Conversation
181
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] to
185
182
  # fetch the User resource from.
186
183
  # @param [String] sid The SID of the User resource to fetch. This value can be
187
184
  # either the `sid` or the `identity` of the User resource to fetch.
@@ -201,17 +198,20 @@ module Twilio
201
198
  # @param [String] attributes The JSON Object string that stores
202
199
  # application-specific data. If attributes have not been set, `{}` is returned.
203
200
  # @param [String] role_sid The SID of a service-level
204
- # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
201
+ # {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
205
202
  # the user.
203
+ # @param [user.WebhookEnabledType] x_twilio_webhook_enabled The
204
+ # X-Twilio-Webhook-Enabled HTTP request header
206
205
  # @return [UserInstance] Updated UserInstance
207
- def update(friendly_name: :unset, attributes: :unset, role_sid: :unset)
206
+ def update(friendly_name: :unset, attributes: :unset, role_sid: :unset, x_twilio_webhook_enabled: :unset)
208
207
  data = Twilio::Values.of({
209
208
  'FriendlyName' => friendly_name,
210
209
  'Attributes' => attributes,
211
210
  'RoleSid' => role_sid,
212
211
  })
212
+ headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
213
213
 
214
- payload = @version.update('POST', @uri, data: data)
214
+ payload = @version.update('POST', @uri, data: data, headers: headers)
215
215
 
216
216
  UserInstance.new(
217
217
  @version,
@@ -223,9 +223,13 @@ module Twilio
223
223
 
224
224
  ##
225
225
  # Delete the UserInstance
226
+ # @param [user.WebhookEnabledType] x_twilio_webhook_enabled The
227
+ # X-Twilio-Webhook-Enabled HTTP request header
226
228
  # @return [Boolean] true if delete succeeds, false otherwise
227
- def delete
228
- @version.delete('DELETE', @uri)
229
+ def delete(x_twilio_webhook_enabled: :unset)
230
+ headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
231
+
232
+ @version.delete('DELETE', @uri, headers: headers)
229
233
  end
230
234
 
231
235
  ##
@@ -257,15 +261,13 @@ module Twilio
257
261
  end
258
262
  end
259
263
 
260
- ##
261
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
262
264
  class UserInstance < InstanceResource
263
265
  ##
264
266
  # Initialize the UserInstance
265
267
  # @param [Version] version Version that contains the resource
266
268
  # @param [Hash] payload payload that contains response from Twilio
267
- # @param [String] chat_service_sid The SID of the [Conversation
268
- # Service](https://www.twilio.com/docs/conversations/api/service-resource) the
269
+ # @param [String] chat_service_sid The SID of the {Conversation
270
+ # Service}[https://www.twilio.com/docs/conversations/api/service-resource] the
269
271
  # User resource is associated with.
270
272
  # @param [String] sid The SID of the User resource to fetch. This value can be
271
273
  # either the `sid` or the `identity` of the User resource to fetch.
@@ -365,7 +367,7 @@ module Twilio
365
367
  end
366
368
 
367
369
  ##
368
- # @return [String] The absolute URL of the User resource
370
+ # @return [String] An absolute URL for this user.
369
371
  def url
370
372
  @properties['url']
371
373
  end
@@ -377,18 +379,27 @@ module Twilio
377
379
  # @param [String] attributes The JSON Object string that stores
378
380
  # application-specific data. If attributes have not been set, `{}` is returned.
379
381
  # @param [String] role_sid The SID of a service-level
380
- # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
382
+ # {Role}[https://www.twilio.com/docs/conversations/api/role-resource] to assign to
381
383
  # the user.
384
+ # @param [user.WebhookEnabledType] x_twilio_webhook_enabled The
385
+ # X-Twilio-Webhook-Enabled HTTP request header
382
386
  # @return [UserInstance] Updated UserInstance
383
- def update(friendly_name: :unset, attributes: :unset, role_sid: :unset)
384
- context.update(friendly_name: friendly_name, attributes: attributes, role_sid: role_sid, )
387
+ def update(friendly_name: :unset, attributes: :unset, role_sid: :unset, x_twilio_webhook_enabled: :unset)
388
+ context.update(
389
+ friendly_name: friendly_name,
390
+ attributes: attributes,
391
+ role_sid: role_sid,
392
+ x_twilio_webhook_enabled: x_twilio_webhook_enabled,
393
+ )
385
394
  end
386
395
 
387
396
  ##
388
397
  # Delete the UserInstance
398
+ # @param [user.WebhookEnabledType] x_twilio_webhook_enabled The
399
+ # X-Twilio-Webhook-Enabled HTTP request header
389
400
  # @return [Boolean] true if delete succeeds, false otherwise
390
- def delete
391
- context.delete
401
+ def delete(x_twilio_webhook_enabled: :unset)
402
+ context.delete(x_twilio_webhook_enabled: x_twilio_webhook_enabled, )
392
403
  end
393
404
 
394
405
  ##