twilio-ruby 5.25.4 → 5.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +1 -3
  3. data/.travis.yml +3 -0
  4. data/CHANGES.md +24 -0
  5. data/README.md +22 -14
  6. data/lib/twilio-ruby/http/http_client.rb +4 -3
  7. data/lib/twilio-ruby/rest/accounts/v1/credential/aws.rb +2 -2
  8. data/lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb +2 -2
  9. data/lib/twilio-ruby/rest/api/v2010/account/address.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/application.rb +2 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +10 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +2 -2
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/notification.rb +2 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +2 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -4
  16. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +2 -2
  17. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +2 -2
  18. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +2 -2
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +2 -2
  20. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -2
  21. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
  22. data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +2 -2
  23. data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +2 -2
  24. data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +2 -2
  25. data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +2 -2
  26. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +2 -2
  27. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +2 -2
  28. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +2 -2
  29. data/lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb +2 -2
  30. data/lib/twilio-ruby/rest/api/v2010/account/signing_key.rb +2 -2
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +2 -2
  32. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +2 -2
  33. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +2 -2
  34. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +2 -2
  35. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +2 -2
  36. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +2 -2
  37. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
  38. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
  39. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +2 -2
  40. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +2 -2
  41. data/lib/twilio-ruby/rest/api/v2010/account/transcription.rb +2 -2
  42. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -2
  43. data/lib/twilio-ruby/rest/authy/v1/service.rb +2 -2
  44. data/lib/twilio-ruby/rest/authy/v1/service/entity.rb +2 -2
  45. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +2 -2
  46. data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +2 -2
  47. data/lib/twilio-ruby/rest/autopilot/v1/assistant.rb +2 -2
  48. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type.rb +2 -2
  49. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +2 -2
  50. data/lib/twilio-ruby/rest/autopilot/v1/assistant/model_build.rb +2 -2
  51. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +2 -2
  52. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task.rb +2 -2
  53. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/field.rb +2 -2
  54. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +2 -2
  55. data/lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb +2 -2
  56. data/lib/twilio-ruby/rest/chat/v1/credential.rb +2 -2
  57. data/lib/twilio-ruby/rest/chat/v1/service.rb +2 -2
  58. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +2 -2
  59. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +2 -2
  60. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +2 -2
  61. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +2 -2
  62. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +2 -2
  63. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +2 -2
  64. data/lib/twilio-ruby/rest/chat/v2.rb +2 -4
  65. data/lib/twilio-ruby/rest/chat/v2/credential.rb +12 -14
  66. data/lib/twilio-ruby/rest/chat/v2/service.rb +35 -43
  67. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +17 -19
  68. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +28 -24
  69. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +17 -16
  70. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -44
  71. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +38 -37
  72. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +25 -26
  73. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +19 -17
  74. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +17 -17
  75. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +25 -27
  76. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +8 -5
  77. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +32 -6
  78. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +30 -6
  79. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -6
  80. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +2 -2
  81. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -2
  82. data/lib/twilio-ruby/rest/fax/v1/fax/fax_media.rb +2 -2
  83. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -2
  84. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
  85. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +2 -2
  86. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  87. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +2 -2
  88. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +2 -2
  89. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +2 -2
  90. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +2 -2
  91. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +2 -2
  92. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +2 -2
  93. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +2 -2
  94. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +2 -2
  95. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +2 -4
  96. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +12 -14
  97. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +35 -43
  98. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +17 -19
  99. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +28 -24
  100. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +17 -16
  101. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -44
  102. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +38 -37
  103. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +25 -26
  104. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -17
  105. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +17 -17
  106. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +25 -27
  107. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +8 -5
  108. data/lib/twilio-ruby/rest/messaging/v1/service.rb +2 -2
  109. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +2 -2
  110. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +2 -2
  111. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +2 -2
  112. data/lib/twilio-ruby/rest/messaging/v1/session.rb +2 -2
  113. data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +2 -2
  114. data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +2 -2
  115. data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +2 -2
  116. data/lib/twilio-ruby/rest/monitor/v1/alert.rb +2 -2
  117. data/lib/twilio-ruby/rest/notify/v1/credential.rb +2 -2
  118. data/lib/twilio-ruby/rest/notify/v1/service.rb +2 -2
  119. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +2 -2
  120. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +2 -2
  121. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +2 -2
  122. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +2 -2
  123. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +2 -2
  124. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +2 -2
  125. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +2 -2
  126. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +2 -2
  127. data/lib/twilio-ruby/rest/preview/sync/service.rb +2 -2
  128. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +2 -2
  129. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +2 -2
  130. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +2 -2
  131. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +2 -2
  132. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +2 -2
  133. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +2 -2
  134. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +2 -2
  135. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +2 -2
  136. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +10 -2
  137. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +2 -2
  138. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +2 -2
  139. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +2 -2
  140. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +2 -2
  141. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +2 -2
  142. data/lib/twilio-ruby/rest/preview/understand/assistant/task.rb +2 -2
  143. data/lib/twilio-ruby/rest/preview/understand/assistant/task/field.rb +2 -2
  144. data/lib/twilio-ruby/rest/preview/understand/assistant/task/sample.rb +2 -2
  145. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  146. data/lib/twilio-ruby/rest/proxy/v1/service.rb +2 -2
  147. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +2 -2
  148. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +2 -2
  149. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +2 -2
  150. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +2 -2
  151. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +2 -2
  152. data/lib/twilio-ruby/rest/serverless/v1/service.rb +2 -2
  153. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +2 -2
  154. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +2 -2
  155. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +2 -2
  156. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +2 -2
  157. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +2 -2
  158. data/lib/twilio-ruby/rest/studio.rb +2 -1
  159. data/lib/twilio-ruby/rest/studio/v1.rb +1 -1
  160. data/lib/twilio-ruby/rest/studio/v1/flow.rb +13 -13
  161. data/lib/twilio-ruby/rest/studio/v1/flow/engagement.rb +25 -24
  162. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/engagement_context.rb +11 -11
  163. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +20 -20
  164. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step/step_context.rb +15 -17
  165. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +44 -38
  166. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_context.rb +12 -11
  167. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +21 -20
  168. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step/execution_step_context.rb +18 -17
  169. data/lib/twilio-ruby/rest/sync.rb +2 -1
  170. data/lib/twilio-ruby/rest/sync/v1.rb +1 -1
  171. data/lib/twilio-ruby/rest/sync/v1/service.rb +90 -93
  172. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +46 -33
  173. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +36 -38
  174. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +44 -31
  175. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +94 -76
  176. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +37 -38
  177. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +45 -33
  178. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +98 -81
  179. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +35 -38
  180. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +39 -28
  181. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +14 -12
  182. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +2 -2
  183. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +2 -2
  184. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
  185. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +2 -2
  186. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +2 -2
  187. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +2 -2
  188. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +2 -2
  189. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +2 -2
  190. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +2 -2
  191. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -2
  192. data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +2 -2
  193. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -2
  194. data/lib/twilio-ruby/rest/trunking/v1/trunk/terminating_sip_domain.rb +2 -2
  195. data/lib/twilio-ruby/rest/verify/v2/service.rb +2 -2
  196. data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +2 -2
  197. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +3 -3
  198. data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +2 -2
  199. data/lib/twilio-ruby/rest/video/v1/composition.rb +2 -2
  200. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +2 -2
  201. data/lib/twilio-ruby/rest/video/v1/recording.rb +2 -2
  202. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +2 -2
  203. data/lib/twilio-ruby/rest/wireless.rb +3 -3
  204. data/lib/twilio-ruby/rest/wireless/v1.rb +3 -6
  205. data/lib/twilio-ruby/rest/wireless/v1/command.rb +54 -52
  206. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +64 -65
  207. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +147 -141
  208. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +34 -28
  209. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -32
  210. data/lib/twilio-ruby/rest/wireless/v1/usage_record.rb +19 -19
  211. data/lib/twilio-ruby/version.rb +1 -1
  212. data/spec/integration/api/v2010/account/call_spec.rb +45 -0
  213. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  214. data/spec/integration/conversations/v1/conversation/message_spec.rb +5 -0
  215. data/spec/integration/conversations/v1/conversation/participant_spec.rb +8 -10
  216. data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
  217. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  218. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +1 -0
  219. data/spec/integration/verify/v2/service/verification_spec.rb +1 -1
  220. metadata +2 -2
@@ -229,7 +229,7 @@ module Twilio
229
229
 
230
230
  ##
231
231
  # Deletes the SessionInstance
232
- # @return [Boolean] true if delete succeeds, true otherwise
232
+ # @return [Boolean] true if delete succeeds, false otherwise
233
233
  def delete
234
234
  @version.delete('delete', @uri)
235
235
  end
@@ -476,7 +476,7 @@ module Twilio
476
476
 
477
477
  ##
478
478
  # Deletes the SessionInstance
479
- # @return [Boolean] true if delete succeeds, true otherwise
479
+ # @return [Boolean] true if delete succeeds, false otherwise
480
480
  def delete
481
481
  context.delete
482
482
  end
@@ -202,7 +202,7 @@ module Twilio
202
202
 
203
203
  ##
204
204
  # Deletes the InteractionInstance
205
- # @return [Boolean] true if delete succeeds, true otherwise
205
+ # @return [Boolean] true if delete succeeds, false otherwise
206
206
  def delete
207
207
  @version.delete('delete', @uri)
208
208
  end
@@ -410,7 +410,7 @@ module Twilio
410
410
 
411
411
  ##
412
412
  # Deletes the InteractionInstance
413
- # @return [Boolean] true if delete succeeds, true otherwise
413
+ # @return [Boolean] true if delete succeeds, false otherwise
414
414
  def delete
415
415
  context.delete
416
416
  end
@@ -239,7 +239,7 @@ module Twilio
239
239
 
240
240
  ##
241
241
  # Deletes the ParticipantInstance
242
- # @return [Boolean] true if delete succeeds, true otherwise
242
+ # @return [Boolean] true if delete succeeds, false otherwise
243
243
  def delete
244
244
  @version.delete('delete', @uri)
245
245
  end
@@ -434,7 +434,7 @@ module Twilio
434
434
 
435
435
  ##
436
436
  # Deletes the ParticipantInstance
437
- # @return [Boolean] true if delete succeeds, true otherwise
437
+ # @return [Boolean] true if delete succeeds, false otherwise
438
438
  def delete
439
439
  context.delete
440
440
  end
@@ -189,7 +189,7 @@ module Twilio
189
189
 
190
190
  ##
191
191
  # Deletes the ShortCodeInstance
192
- # @return [Boolean] true if delete succeeds, true otherwise
192
+ # @return [Boolean] true if delete succeeds, false otherwise
193
193
  def delete
194
194
  @version.delete('delete', @uri)
195
195
  end
@@ -350,7 +350,7 @@ module Twilio
350
350
 
351
351
  ##
352
352
  # Deletes the ShortCodeInstance
353
- # @return [Boolean] true if delete succeeds, true otherwise
353
+ # @return [Boolean] true if delete succeeds, false otherwise
354
354
  def delete
355
355
  context.delete
356
356
  end
@@ -212,7 +212,7 @@ module Twilio
212
212
 
213
213
  ##
214
214
  # Deletes the ServiceInstance
215
- # @return [Boolean] true if delete succeeds, true otherwise
215
+ # @return [Boolean] true if delete succeeds, false otherwise
216
216
  def delete
217
217
  @version.delete('delete', @uri)
218
218
  end
@@ -431,7 +431,7 @@ module Twilio
431
431
 
432
432
  ##
433
433
  # Deletes the ServiceInstance
434
- # @return [Boolean] true if delete succeeds, true otherwise
434
+ # @return [Boolean] true if delete succeeds, false otherwise
435
435
  def delete
436
436
  context.delete
437
437
  end
@@ -204,7 +204,7 @@ module Twilio
204
204
 
205
205
  ##
206
206
  # Deletes the AssetInstance
207
- # @return [Boolean] true if delete succeeds, true otherwise
207
+ # @return [Boolean] true if delete succeeds, false otherwise
208
208
  def delete
209
209
  @version.delete('delete', @uri)
210
210
  end
@@ -362,7 +362,7 @@ module Twilio
362
362
 
363
363
  ##
364
364
  # Deletes the AssetInstance
365
- # @return [Boolean] true if delete succeeds, true otherwise
365
+ # @return [Boolean] true if delete succeeds, false otherwise
366
366
  def delete
367
367
  context.delete
368
368
  end
@@ -209,7 +209,7 @@ module Twilio
209
209
 
210
210
  ##
211
211
  # Deletes the BuildInstance
212
- # @return [Boolean] true if delete succeeds, true otherwise
212
+ # @return [Boolean] true if delete succeeds, false otherwise
213
213
  def delete
214
214
  @version.delete('delete', @uri)
215
215
  end
@@ -342,7 +342,7 @@ module Twilio
342
342
 
343
343
  ##
344
344
  # Deletes the BuildInstance
345
- # @return [Boolean] true if delete succeeds, true otherwise
345
+ # @return [Boolean] true if delete succeeds, false otherwise
346
346
  def delete
347
347
  context.delete
348
348
  end
@@ -214,7 +214,7 @@ module Twilio
214
214
 
215
215
  ##
216
216
  # Deletes the EnvironmentInstance
217
- # @return [Boolean] true if delete succeeds, true otherwise
217
+ # @return [Boolean] true if delete succeeds, false otherwise
218
218
  def delete
219
219
  @version.delete('delete', @uri)
220
220
  end
@@ -420,7 +420,7 @@ module Twilio
420
420
 
421
421
  ##
422
422
  # Deletes the EnvironmentInstance
423
- # @return [Boolean] true if delete succeeds, true otherwise
423
+ # @return [Boolean] true if delete succeeds, false otherwise
424
424
  def delete
425
425
  context.delete
426
426
  end
@@ -249,7 +249,7 @@ module Twilio
249
249
 
250
250
  ##
251
251
  # Deletes the VariableInstance
252
- # @return [Boolean] true if delete succeeds, true otherwise
252
+ # @return [Boolean] true if delete succeeds, false otherwise
253
253
  def delete
254
254
  @version.delete('delete', @uri)
255
255
  end
@@ -397,7 +397,7 @@ module Twilio
397
397
 
398
398
  ##
399
399
  # Deletes the VariableInstance
400
- # @return [Boolean] true if delete succeeds, true otherwise
400
+ # @return [Boolean] true if delete succeeds, false otherwise
401
401
  def delete
402
402
  context.delete
403
403
  end
@@ -204,7 +204,7 @@ module Twilio
204
204
 
205
205
  ##
206
206
  # Deletes the FunctionInstance
207
- # @return [Boolean] true if delete succeeds, true otherwise
207
+ # @return [Boolean] true if delete succeeds, false otherwise
208
208
  def delete
209
209
  @version.delete('delete', @uri)
210
210
  end
@@ -362,7 +362,7 @@ module Twilio
362
362
 
363
363
  ##
364
364
  # Deletes the FunctionInstance
365
- # @return [Boolean] true if delete succeeds, true otherwise
365
+ # @return [Boolean] true if delete succeeds, false otherwise
366
366
  def delete
367
367
  context.delete
368
368
  end
@@ -29,7 +29,8 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid A 34 character string that uniquely identifies this Flow.
32
+ # @param [String] sid The unique string that we created to identify the Flow
33
+ # resource.
33
34
  # @return [Twilio::REST::Studio::V1::FlowInstance] if sid was passed.
34
35
  # @return [Twilio::REST::Studio::V1::FlowList]
35
36
  def flows(sid=:unset)
@@ -19,7 +19,7 @@ module Twilio
19
19
  end
20
20
 
21
21
  ##
22
- # @param [String] sid A 34 character string that uniquely identifies this Flow.
22
+ # @param [String] sid The SID of the Flow resource to fetch.
23
23
  # @return [Twilio::REST::Studio::V1::FlowContext] if sid was passed.
24
24
  # @return [Twilio::REST::Studio::V1::FlowList]
25
25
  def flows(sid=:unset)
@@ -145,7 +145,7 @@ module Twilio
145
145
  ##
146
146
  # Initialize the FlowContext
147
147
  # @param [Version] version Version that contains the resource
148
- # @param [String] sid A 34 character string that uniquely identifies this Flow.
148
+ # @param [String] sid The SID of the Flow resource to fetch.
149
149
  # @return [FlowContext] FlowContext
150
150
  def initialize(version, sid)
151
151
  super(version)
@@ -176,7 +176,7 @@ module Twilio
176
176
 
177
177
  ##
178
178
  # Deletes the FlowInstance
179
- # @return [Boolean] true if delete succeeds, true otherwise
179
+ # @return [Boolean] true if delete succeeds, false otherwise
180
180
  def delete
181
181
  @version.delete('delete', @uri)
182
182
  end
@@ -237,7 +237,7 @@ module Twilio
237
237
  # Initialize the FlowInstance
238
238
  # @param [Version] version Version that contains the resource
239
239
  # @param [Hash] payload payload that contains response from Twilio
240
- # @param [String] sid A 34 character string that uniquely identifies this Flow.
240
+ # @param [String] sid The SID of the Flow resource to fetch.
241
241
  # @return [FlowInstance] FlowInstance
242
242
  def initialize(version, payload, sid: nil)
243
243
  super(version)
@@ -272,55 +272,55 @@ module Twilio
272
272
  end
273
273
 
274
274
  ##
275
- # @return [String] A string that uniquely identifies this Flow.
275
+ # @return [String] The unique string that identifies the resource
276
276
  def sid
277
277
  @properties['sid']
278
278
  end
279
279
 
280
280
  ##
281
- # @return [String] Account Sid.
281
+ # @return [String] The SID of the Account that created the resource
282
282
  def account_sid
283
283
  @properties['account_sid']
284
284
  end
285
285
 
286
286
  ##
287
- # @return [String] A human readable description of this resource.
287
+ # @return [String] The string that you assigned to describe the Flow
288
288
  def friendly_name
289
289
  @properties['friendly_name']
290
290
  end
291
291
 
292
292
  ##
293
- # @return [flow.Status] The Status of this Flow
293
+ # @return [flow.Status] The status of the Flow
294
294
  def status
295
295
  @properties['status']
296
296
  end
297
297
 
298
298
  ##
299
- # @return [String] The latest version number of this Flow's definition.
299
+ # @return [String] The latest version number of the Flow's definition
300
300
  def version
301
301
  @properties['version']
302
302
  end
303
303
 
304
304
  ##
305
- # @return [Time] The date this Flow was created
305
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
306
306
  def date_created
307
307
  @properties['date_created']
308
308
  end
309
309
 
310
310
  ##
311
- # @return [Time] The date this Flow was updated
311
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
312
312
  def date_updated
313
313
  @properties['date_updated']
314
314
  end
315
315
 
316
316
  ##
317
- # @return [String] The URL of this resource.
317
+ # @return [String] The absolute URL of the resource
318
318
  def url
319
319
  @properties['url']
320
320
  end
321
321
 
322
322
  ##
323
- # @return [String] Nested resource URLs.
323
+ # @return [String] Nested resource URLs
324
324
  def links
325
325
  @properties['links']
326
326
  end
@@ -334,7 +334,7 @@ module Twilio
334
334
 
335
335
  ##
336
336
  # Deletes the FlowInstance
337
- # @return [Boolean] true if delete succeeds, true otherwise
337
+ # @return [Boolean] true if delete succeeds, false otherwise
338
338
  def delete
339
339
  context.delete
340
340
  end
@@ -15,7 +15,7 @@ module Twilio
15
15
  ##
16
16
  # Initialize the EngagementList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] flow_sid The unique SID identifier of the Flow.
18
+ # @param [String] flow_sid The SID of the Flow.
19
19
  # @return [EngagementList] EngagementList
20
20
  def initialize(version, flow_sid: nil)
21
21
  super(version)
@@ -111,13 +111,14 @@ module Twilio
111
111
  # Retrieve a single page of EngagementInstance records from the API.
112
112
  # Request is executed immediately.
113
113
  # @param [String] to The Contact phone number to start a Studio Flow Engagement,
114
- # available as variable {{contact.channel.address}}.
114
+ # available as variable `{{contact.channel.address}}`.
115
115
  # @param [String] from The Twilio phone number to send messages or initiate calls
116
- # from during the Flow Engagement, available as variable {{flow.channel.address}}
117
- # @param [Hash] parameters JSON data that will be added to your flow's context and
118
- # can accessed as variables inside your flow. For example, if you pass in
119
- # Parameters={'name':'Zeke'} then inside a widget you can reference the variable
120
- # {{flow.data.name}} which will return the string 'Zeke'. Note: the JSON value
116
+ # from during the Flow Engagement. Available as variable
117
+ # `{{flow.channel.address}}`
118
+ # @param [Hash] parameters A JSON string we will add to your flow's context and
119
+ # that you can access as variables inside your flow. For example, if you pass in
120
+ # `Parameters={'name':'Zeke'}` then inside a widget you can reference the variable
121
+ # `{{flow.data.name}}` which will return the string 'Zeke'. Note: the JSON value
121
122
  # must explicitly be passed as a string, not as a hash object. Depending on your
122
123
  # particular HTTP library, you may need to add quotes or URL encode your JSON
123
124
  # string.
@@ -178,8 +179,8 @@ module Twilio
178
179
  ##
179
180
  # Initialize the EngagementContext
180
181
  # @param [Version] version Version that contains the resource
181
- # @param [String] flow_sid The unique SID identifier of the Flow.
182
- # @param [String] sid The unique SID identifier of the Engagement.
182
+ # @param [String] flow_sid The SID of the Flow.
183
+ # @param [String] sid The SID of the Engagement resource to fetch.
183
184
  # @return [EngagementContext] EngagementContext
184
185
  def initialize(version, flow_sid, sid)
185
186
  super(version)
@@ -210,7 +211,7 @@ module Twilio
210
211
 
211
212
  ##
212
213
  # Deletes the EngagementInstance
213
- # @return [Boolean] true if delete succeeds, true otherwise
214
+ # @return [Boolean] true if delete succeeds, false otherwise
214
215
  def delete
215
216
  @version.delete('delete', @uri)
216
217
  end
@@ -261,8 +262,8 @@ module Twilio
261
262
  # Initialize the EngagementInstance
262
263
  # @param [Version] version Version that contains the resource
263
264
  # @param [Hash] payload payload that contains response from Twilio
264
- # @param [String] flow_sid The unique SID identifier of the Flow.
265
- # @param [String] sid The unique SID identifier of the Engagement.
265
+ # @param [String] flow_sid The SID of the Flow.
266
+ # @param [String] sid The SID of the Engagement resource to fetch.
266
267
  # @return [EngagementInstance] EngagementInstance
267
268
  def initialize(version, payload, flow_sid: nil, sid: nil)
268
269
  super(version)
@@ -299,67 +300,67 @@ module Twilio
299
300
  end
300
301
 
301
302
  ##
302
- # @return [String] A string that uniquely identifies this Engagement.
303
+ # @return [String] The unique string that identifies the resource
303
304
  def sid
304
305
  @properties['sid']
305
306
  end
306
307
 
307
308
  ##
308
- # @return [String] Account Sid.
309
+ # @return [String] The SID of the Account that created the resource
309
310
  def account_sid
310
311
  @properties['account_sid']
311
312
  end
312
313
 
313
314
  ##
314
- # @return [String] Flow Sid.
315
+ # @return [String] The SID of the Flow
315
316
  def flow_sid
316
317
  @properties['flow_sid']
317
318
  end
318
319
 
319
320
  ##
320
- # @return [String] Contact Sid.
321
+ # @return [String] The SID of the Contact
321
322
  def contact_sid
322
323
  @properties['contact_sid']
323
324
  end
324
325
 
325
326
  ##
326
- # @return [String] The phone number, SIP address or Client identifier that triggered this Engagement.
327
+ # @return [String] The phone number, SIP address or Client identifier that triggered this Engagement
327
328
  def contact_channel_address
328
329
  @properties['contact_channel_address']
329
330
  end
330
331
 
331
332
  ##
332
- # @return [Hash] Flow state.
333
+ # @return [Hash] The current state of the execution flow
333
334
  def context
334
335
  @properties['context']
335
336
  end
336
337
 
337
338
  ##
338
- # @return [engagement.Status] The Status of this Engagement
339
+ # @return [engagement.Status] The status of the Engagement
339
340
  def status
340
341
  @properties['status']
341
342
  end
342
343
 
343
344
  ##
344
- # @return [Time] The date this Engagement was created
345
+ # @return [Time] The ISO 8601 date and time in GMT when the Engagement was created
345
346
  def date_created
346
347
  @properties['date_created']
347
348
  end
348
349
 
349
350
  ##
350
- # @return [Time] The date this Engagement was updated
351
+ # @return [Time] The ISO 8601 date and time in GMT when the Engagement was last updated
351
352
  def date_updated
352
353
  @properties['date_updated']
353
354
  end
354
355
 
355
356
  ##
356
- # @return [String] The URL of this resource.
357
+ # @return [String] The absolute URL of the resource
357
358
  def url
358
359
  @properties['url']
359
360
  end
360
361
 
361
362
  ##
362
- # @return [String] Nested resource URLs.
363
+ # @return [String] The URLs of the Engagement's nested resources
363
364
  def links
364
365
  @properties['links']
365
366
  end
@@ -373,7 +374,7 @@ module Twilio
373
374
 
374
375
  ##
375
376
  # Deletes the EngagementInstance
376
- # @return [Boolean] true if delete succeeds, true otherwise
377
+ # @return [Boolean] true if delete succeeds, false otherwise
377
378
  def delete
378
379
  context.delete
379
380
  end