twilio-ruby 5.25.4 → 5.26.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -16,8 +16,8 @@ module Twilio
16
16
  ##
17
17
  # Initialize the EngagementContextList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] flow_sid The unique SID identifier of the Flow.
20
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
19
+ # @param [String] flow_sid The SID of the Flow.
20
+ # @param [String] engagement_sid The SID of the Engagement.
21
21
  # @return [EngagementContextList] EngagementContextList
22
22
  def initialize(version, flow_sid: nil, engagement_sid: nil)
23
23
  super(version)
@@ -71,8 +71,8 @@ module Twilio
71
71
  ##
72
72
  # Initialize the EngagementContextContext
73
73
  # @param [Version] version Version that contains the resource
74
- # @param [String] flow_sid The unique SID identifier of the Flow.
75
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
74
+ # @param [String] flow_sid The SID of the Flow.
75
+ # @param [String] engagement_sid The SID of the Engagement.
76
76
  # @return [EngagementContextContext] EngagementContextContext
77
77
  def initialize(version, flow_sid, engagement_sid)
78
78
  super(version)
@@ -122,8 +122,8 @@ module Twilio
122
122
  # Initialize the EngagementContextInstance
123
123
  # @param [Version] version Version that contains the resource
124
124
  # @param [Hash] payload payload that contains response from Twilio
125
- # @param [String] flow_sid The unique SID identifier of the Flow.
126
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
125
+ # @param [String] flow_sid The SID of the Flow.
126
+ # @param [String] engagement_sid The SID of the Engagement.
127
127
  # @return [EngagementContextInstance] EngagementContextInstance
128
128
  def initialize(version, payload, flow_sid: nil, engagement_sid: nil)
129
129
  super(version)
@@ -158,31 +158,31 @@ module Twilio
158
158
  end
159
159
 
160
160
  ##
161
- # @return [String] Account Sid.
161
+ # @return [String] Account SID
162
162
  def account_sid
163
163
  @properties['account_sid']
164
164
  end
165
165
 
166
166
  ##
167
- # @return [Hash] Flow state.
167
+ # @return [Hash] Flow state
168
168
  def context
169
169
  @properties['context']
170
170
  end
171
171
 
172
172
  ##
173
- # @return [String] Engagement Sid.
173
+ # @return [String] Engagement SID
174
174
  def engagement_sid
175
175
  @properties['engagement_sid']
176
176
  end
177
177
 
178
178
  ##
179
- # @return [String] Flow Sid.
179
+ # @return [String] Flow SID
180
180
  def flow_sid
181
181
  @properties['flow_sid']
182
182
  end
183
183
 
184
184
  ##
185
- # @return [String] The URL of this resource.
185
+ # @return [String] The URL of the resource
186
186
  def url
187
187
  @properties['url']
188
188
  end
@@ -16,8 +16,8 @@ module Twilio
16
16
  ##
17
17
  # Initialize the StepList
18
18
  # @param [Version] version Version that contains the resource
19
- # @param [String] flow_sid The unique SID identifier of the Flow.
20
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
19
+ # @param [String] flow_sid The SID of the Flow.
20
+ # @param [String] engagement_sid The SID of the Engagement.
21
21
  # @return [StepList] StepList
22
22
  def initialize(version, flow_sid: nil, engagement_sid: nil)
23
23
  super(version)
@@ -154,9 +154,9 @@ module Twilio
154
154
  ##
155
155
  # Initialize the StepContext
156
156
  # @param [Version] version Version that contains the resource
157
- # @param [String] flow_sid The unique SID identifier of the Flow.
158
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
159
- # @param [String] sid The unique SID identifier of the Step.
157
+ # @param [String] flow_sid The SID of the Flow with the Step to fetch.
158
+ # @param [String] engagement_sid The SID of the Engagement with the Step to fetch.
159
+ # @param [String] sid The SID of the Step resource to fetch.
160
160
  # @return [StepContext] StepContext
161
161
  def initialize(version, flow_sid, engagement_sid, sid)
162
162
  super(version)
@@ -218,9 +218,9 @@ module Twilio
218
218
  # Initialize the StepInstance
219
219
  # @param [Version] version Version that contains the resource
220
220
  # @param [Hash] payload payload that contains response from Twilio
221
- # @param [String] flow_sid The unique SID identifier of the Flow.
222
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
223
- # @param [String] sid The unique SID identifier of the Step.
221
+ # @param [String] flow_sid The SID of the Flow.
222
+ # @param [String] engagement_sid The SID of the Engagement.
223
+ # @param [String] sid The SID of the Step resource to fetch.
224
224
  # @return [StepInstance] StepInstance
225
225
  def initialize(version, payload, flow_sid: nil, engagement_sid: nil, sid: nil)
226
226
  super(version)
@@ -267,73 +267,73 @@ module Twilio
267
267
  end
268
268
 
269
269
  ##
270
- # @return [String] A string that uniquely identifies this Step.
270
+ # @return [String] The unique string that identifies the resource
271
271
  def sid
272
272
  @properties['sid']
273
273
  end
274
274
 
275
275
  ##
276
- # @return [String] Account Sid.
276
+ # @return [String] The SID of the Account that created the resource
277
277
  def account_sid
278
278
  @properties['account_sid']
279
279
  end
280
280
 
281
281
  ##
282
- # @return [String] Flow Sid.
282
+ # @return [String] The SID of the Flow
283
283
  def flow_sid
284
284
  @properties['flow_sid']
285
285
  end
286
286
 
287
287
  ##
288
- # @return [String] Engagement Sid.
288
+ # @return [String] The SID of the Engagement
289
289
  def engagement_sid
290
290
  @properties['engagement_sid']
291
291
  end
292
292
 
293
293
  ##
294
- # @return [String] The event that caused the flow to transition to this Step.
294
+ # @return [String] The event that caused the Flow to transition to the Step
295
295
  def name
296
296
  @properties['name']
297
297
  end
298
298
 
299
299
  ##
300
- # @return [Hash] The context
300
+ # @return [Hash] The current state of the flow
301
301
  def context
302
302
  @properties['context']
303
303
  end
304
304
 
305
305
  ##
306
- # @return [String] The Widget that preceded the Widget for this Step.
306
+ # @return [String] The Widget that preceded the Widget for the Step
307
307
  def transitioned_from
308
308
  @properties['transitioned_from']
309
309
  end
310
310
 
311
311
  ##
312
- # @return [String] The Widget that will follow the Widget for this Step.
312
+ # @return [String] The Widget that will follow the Widget for the Step
313
313
  def transitioned_to
314
314
  @properties['transitioned_to']
315
315
  end
316
316
 
317
317
  ##
318
- # @return [Time] The date this Step was created
318
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
319
319
  def date_created
320
320
  @properties['date_created']
321
321
  end
322
322
 
323
323
  ##
324
- # @return [Time] The date this Step was updated
324
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
325
325
  def date_updated
326
326
  @properties['date_updated']
327
327
  end
328
328
 
329
329
  ##
330
- # @return [String] The URL of this resource.
330
+ # @return [String] The absolute URL of the resource
331
331
  def url
332
332
  @properties['url']
333
333
  end
334
334
 
335
335
  ##
336
- # @return [String] The links
336
+ # @return [String] The URLs of related resources
337
337
  def links
338
338
  @properties['links']
339
339
  end
@@ -17,10 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the StepContextList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] flow_sid The unique SID identifier of the Flow.
21
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
22
- # @param [String] step_sid The unique SID identifier of the Step this context is
23
- # associated with.
20
+ # @param [String] flow_sid The SID of the Flow.
21
+ # @param [String] engagement_sid The SID of the Engagement.
22
+ # @param [String] step_sid The SID of the Step the context is associated with.
24
23
  # @return [StepContextList] StepContextList
25
24
  def initialize(version, flow_sid: nil, engagement_sid: nil, step_sid: nil)
26
25
  super(version)
@@ -75,9 +74,9 @@ module Twilio
75
74
  ##
76
75
  # Initialize the StepContextContext
77
76
  # @param [Version] version Version that contains the resource
78
- # @param [String] flow_sid The unique SID identifier of the Flow.
79
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
80
- # @param [String] step_sid The unique SID identifier of the Step.
77
+ # @param [String] flow_sid The SID of the Flow with the Step to fetch.
78
+ # @param [String] engagement_sid The SID of the Engagement with the Step to fetch.
79
+ # @param [String] step_sid The SID of the Step to fetch
81
80
  # @return [StepContextContext] StepContextContext
82
81
  def initialize(version, flow_sid, engagement_sid, step_sid)
83
82
  super(version)
@@ -128,10 +127,9 @@ module Twilio
128
127
  # Initialize the StepContextInstance
129
128
  # @param [Version] version Version that contains the resource
130
129
  # @param [Hash] payload payload that contains response from Twilio
131
- # @param [String] flow_sid The unique SID identifier of the Flow.
132
- # @param [String] engagement_sid The unique SID identifier of the Engagement.
133
- # @param [String] step_sid The unique SID identifier of the Step this context is
134
- # associated with.
130
+ # @param [String] flow_sid The SID of the Flow.
131
+ # @param [String] engagement_sid The SID of the Engagement.
132
+ # @param [String] step_sid The SID of the Step the context is associated with.
135
133
  # @return [StepContextInstance] StepContextInstance
136
134
  def initialize(version, payload, flow_sid: nil, engagement_sid: nil, step_sid: nil)
137
135
  super(version)
@@ -168,37 +166,37 @@ module Twilio
168
166
  end
169
167
 
170
168
  ##
171
- # @return [String] Account Sid.
169
+ # @return [String] The SID of the Account that created the resource
172
170
  def account_sid
173
171
  @properties['account_sid']
174
172
  end
175
173
 
176
174
  ##
177
- # @return [Hash] Flow state.
175
+ # @return [Hash] The current state of the flow
178
176
  def context
179
177
  @properties['context']
180
178
  end
181
179
 
182
180
  ##
183
- # @return [String] Engagement Sid.
181
+ # @return [String] The SID of the Engagement
184
182
  def engagement_sid
185
183
  @properties['engagement_sid']
186
184
  end
187
185
 
188
186
  ##
189
- # @return [String] Flow Sid.
187
+ # @return [String] The SID of the Flow
190
188
  def flow_sid
191
189
  @properties['flow_sid']
192
190
  end
193
191
 
194
192
  ##
195
- # @return [String] Step Sid.
193
+ # @return [String] Step SID
196
194
  def step_sid
197
195
  @properties['step_sid']
198
196
  end
199
197
 
200
198
  ##
201
- # @return [String] The URL of this resource.
199
+ # @return [String] The absolute URL of the resource
202
200
  def url
203
201
  @properties['url']
204
202
  end
@@ -15,7 +15,7 @@ module Twilio
15
15
  ##
16
16
  # Initialize the ExecutionList
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 [ExecutionList] ExecutionList
20
20
  def initialize(version, flow_sid: nil)
21
21
  super(version)
@@ -29,10 +29,12 @@ module Twilio
29
29
  # Lists ExecutionInstance records from the API as a list.
30
30
  # Unlike stream(), this operation is eager and will load `limit` records into
31
31
  # memory before returning.
32
- # @param [Time] date_created_from Only show Executions that started on or after
33
- # this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
34
- # @param [Time] date_created_to Only show Executions that started before this this
35
- # ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
32
+ # @param [Time] date_created_from Only show Execution resources starting on or
33
+ # after this [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm)
34
+ # date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
35
+ # @param [Time] date_created_to Only show Execution resources starting before this
36
+ # [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) date-time, given
37
+ # as `YYYY-MM-DDThh:mm:ss-hh:mm`.
36
38
  # @param [Integer] limit Upper limit for the number of records to return. stream()
37
39
  # guarantees to never return more than limit. Default is no limit
38
40
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -53,10 +55,12 @@ module Twilio
53
55
  # Streams ExecutionInstance records from the API as an Enumerable.
54
56
  # This operation lazily loads records as efficiently as possible until the limit
55
57
  # is reached.
56
- # @param [Time] date_created_from Only show Executions that started on or after
57
- # this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
58
- # @param [Time] date_created_to Only show Executions that started before this this
59
- # ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
58
+ # @param [Time] date_created_from Only show Execution resources starting on or
59
+ # after this [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm)
60
+ # date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
61
+ # @param [Time] date_created_to Only show Execution resources starting before this
62
+ # [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) date-time, given
63
+ # as `YYYY-MM-DDThh:mm:ss-hh:mm`.
60
64
  # @param [Integer] limit Upper limit for the number of records to return. stream()
61
65
  # guarantees to never return more than limit. Default is no limit.
62
66
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -93,10 +97,12 @@ module Twilio
93
97
  ##
94
98
  # Retrieve a single page of ExecutionInstance records from the API.
95
99
  # Request is executed immediately.
96
- # @param [Time] date_created_from Only show Executions that started on or after
97
- # this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
98
- # @param [Time] date_created_to Only show Executions that started before this this
99
- # ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
100
+ # @param [Time] date_created_from Only show Execution resources starting on or
101
+ # after this [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm)
102
+ # date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
103
+ # @param [Time] date_created_to Only show Execution resources starting before this
104
+ # [ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm) date-time, given
105
+ # as `YYYY-MM-DDThh:mm:ss-hh:mm`.
100
106
  # @param [String] page_token PageToken provided by the API
101
107
  # @param [Integer] page_number Page Number, this value is simply for client state
102
108
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -136,15 +142,14 @@ module Twilio
136
142
  # @param [String] to The Contact phone number to start a Studio Flow Execution,
137
143
  # available as variable `{{contact.channel.address}}`.
138
144
  # @param [String] from The Twilio phone number to send messages or initiate calls
139
- # from during the Flow Execution, available as variable
145
+ # from during the Flow's Execution. Available as variable
140
146
  # `{{flow.channel.address}}`.
141
- # @param [Hash] parameters JSON data that will be added to your flow's context and
142
- # can accessed as variables inside your flow. For example, if you pass in
143
- # `Parameters={"name":"Zeke"}`, then inside a widget you can reference the
144
- # variable `{{flow.data.name}}` which will return the string "Zeke". Note: the
145
- # JSON value must explicitly be passed as a string, not as a hash object.
146
- # Depending on your particular HTTP library, you may need to add quotes or URL
147
- # encode your JSON string.
147
+ # @param [Hash] parameters JSON data that will be added to the Flow's context and
148
+ # that can be accessed as variables inside your Flow. For example, if you pass in
149
+ # `Parameters={"name":"Zeke"}`, a widget in your Flow can reference the variable
150
+ # `{{flow.data.name}}`, which returns "Zeke". Note: the JSON value must explicitly
151
+ # be passed as a string, not as a hash object. Depending on your particular HTTP
152
+ # library, you may need to add quotes or URL encode the JSON string.
148
153
  # @return [ExecutionInstance] Newly created ExecutionInstance
149
154
  def create(to: nil, from: nil, parameters: :unset)
150
155
  data = Twilio::Values.of({
@@ -202,8 +207,9 @@ module Twilio
202
207
  ##
203
208
  # Initialize the ExecutionContext
204
209
  # @param [Version] version Version that contains the resource
205
- # @param [String] flow_sid The unique SID identifier of the Flow.
206
- # @param [String] sid The unique SID identifier of the Execution.
210
+ # @param [String] flow_sid The SID of the Flow with the Execution resource to
211
+ # fetch
212
+ # @param [String] sid The SID of the Execution resource to fetch.
207
213
  # @return [ExecutionContext] ExecutionContext
208
214
  def initialize(version, flow_sid, sid)
209
215
  super(version)
@@ -234,7 +240,7 @@ module Twilio
234
240
 
235
241
  ##
236
242
  # Deletes the ExecutionInstance
237
- # @return [Boolean] true if delete succeeds, true otherwise
243
+ # @return [Boolean] true if delete succeeds, false otherwise
238
244
  def delete
239
245
  @version.delete('delete', @uri)
240
246
  end
@@ -289,8 +295,8 @@ module Twilio
289
295
  # Initialize the ExecutionInstance
290
296
  # @param [Version] version Version that contains the resource
291
297
  # @param [Hash] payload payload that contains response from Twilio
292
- # @param [String] flow_sid The unique SID identifier of the Flow.
293
- # @param [String] sid The unique SID identifier of the Execution.
298
+ # @param [String] flow_sid The SID of the Flow.
299
+ # @param [String] sid The SID of the Execution resource to fetch.
294
300
  # @return [ExecutionInstance] ExecutionInstance
295
301
  def initialize(version, payload, flow_sid: nil, sid: nil)
296
302
  super(version)
@@ -327,67 +333,67 @@ module Twilio
327
333
  end
328
334
 
329
335
  ##
330
- # @return [String] A string that uniquely identifies this Execution.
336
+ # @return [String] The unique string that identifies the resource
331
337
  def sid
332
338
  @properties['sid']
333
339
  end
334
340
 
335
341
  ##
336
- # @return [String] Account Sid.
342
+ # @return [String] The SID of the Account that created the resource
337
343
  def account_sid
338
344
  @properties['account_sid']
339
345
  end
340
346
 
341
347
  ##
342
- # @return [String] Flow Sid.
348
+ # @return [String] The SID of the Flow
343
349
  def flow_sid
344
350
  @properties['flow_sid']
345
351
  end
346
352
 
347
353
  ##
348
- # @return [String] Contact Sid.
354
+ # @return [String] The SID of the Contact
349
355
  def contact_sid
350
356
  @properties['contact_sid']
351
357
  end
352
358
 
353
359
  ##
354
- # @return [String] The phone number, SIP address or Client identifier that triggered this Execution.
360
+ # @return [String] The phone number, SIP address or Client identifier that triggered the Execution
355
361
  def contact_channel_address
356
362
  @properties['contact_channel_address']
357
363
  end
358
364
 
359
365
  ##
360
- # @return [Hash] The context
366
+ # @return [Hash] The current state of the flow
361
367
  def context
362
368
  @properties['context']
363
369
  end
364
370
 
365
371
  ##
366
- # @return [execution.Status] The Status of this Execution
372
+ # @return [execution.Status] The status of the Execution
367
373
  def status
368
374
  @properties['status']
369
375
  end
370
376
 
371
377
  ##
372
- # @return [Time] The date this Execution was created
378
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was created
373
379
  def date_created
374
380
  @properties['date_created']
375
381
  end
376
382
 
377
383
  ##
378
- # @return [Time] The date this Execution was updated
384
+ # @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
379
385
  def date_updated
380
386
  @properties['date_updated']
381
387
  end
382
388
 
383
389
  ##
384
- # @return [String] The URL of this resource.
390
+ # @return [String] The absolute URL of the resource
385
391
  def url
386
392
  @properties['url']
387
393
  end
388
394
 
389
395
  ##
390
- # @return [String] Nested resource URLs.
396
+ # @return [String] Nested resource URLs
391
397
  def links
392
398
  @properties['links']
393
399
  end
@@ -401,7 +407,7 @@ module Twilio
401
407
 
402
408
  ##
403
409
  # Deletes the ExecutionInstance
404
- # @return [Boolean] true if delete succeeds, true otherwise
410
+ # @return [Boolean] true if delete succeeds, false otherwise
405
411
  def delete
406
412
  context.delete
407
413
  end