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
@@ -17,8 +17,8 @@ module Twilio
17
17
  # Initialize the UserChannelList
18
18
  # @param [Version] version Version that contains the resource
19
19
  # @param [String] service_sid The SID of the
20
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
21
- # associated with.
20
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
21
+ # resource is associated with.
22
22
  # @param [String] user_sid The SID of the
23
23
  # [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
24
24
  # @return [UserChannelList] UserChannelList
@@ -162,9 +162,11 @@ module Twilio
162
162
  # Channel resource from.
163
163
  # @param [String] user_sid The SID of the
164
164
  # [User](https://www.twilio.com/docs/chat/rest/users) to fetch the User Channel
165
- # resource from.
165
+ # resource from. This value can be either the `sid` or the `identity` of the User
166
+ # resource.
166
167
  # @param [String] channel_sid The SID of the
167
168
  # [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
169
+ # to fetch. This value can be either the `sid` or the `unique_name` of the Channel
168
170
  # to fetch.
169
171
  # @return [UserChannelContext] UserChannelContext
170
172
  def initialize(version, service_sid, user_sid, channel_sid)
@@ -240,12 +242,13 @@ module Twilio
240
242
  # @param [Version] version Version that contains the resource
241
243
  # @param [Hash] payload payload that contains response from Twilio
242
244
  # @param [String] service_sid The SID of the
243
- # [Service](https://www.twilio.com/docs/chat/rest/services) the resource is
244
- # associated with.
245
+ # [Service](https://www.twilio.com/docs/chat/rest/services) the User Channel
246
+ # resource is associated with.
245
247
  # @param [String] user_sid The SID of the
246
248
  # [User](https://www.twilio.com/docs/chat/rest/users) the User Channel belongs to.
247
249
  # @param [String] channel_sid The SID of the
248
250
  # [Channel](https://www.twilio.com/docs/chat/channels) that has the User Channel
251
+ # to fetch. This value can be either the `sid` or the `unique_name` of the Channel
249
252
  # to fetch.
250
253
  # @return [UserChannelInstance] UserChannelInstance
251
254
  def initialize(version, payload, service_sid: nil, user_sid: nil, channel_sid: nil)
@@ -35,13 +35,18 @@ module Twilio
35
35
  # @param [String] messaging_service_sid The unique id of the [SMS
36
36
  # Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs
37
37
  # to.
38
+ # @param [String] attributes An optional string metadata field you can use to
39
+ # store any data you wish. The string value must contain structurally valid JSON
40
+ # if specified. **Note** that if the attributes are not set "{}" will be
41
+ # returned.
38
42
  # @return [ConversationInstance] Newly created ConversationInstance
39
- def create(friendly_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset)
43
+ def create(friendly_name: :unset, date_created: :unset, date_updated: :unset, messaging_service_sid: :unset, attributes: :unset)
40
44
  data = Twilio::Values.of({
41
45
  'FriendlyName' => friendly_name,
42
46
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
43
47
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
44
48
  'MessagingServiceSid' => messaging_service_sid,
49
+ 'Attributes' => attributes,
45
50
  })
46
51
 
47
52
  payload = @version.create(
@@ -201,12 +206,17 @@ module Twilio
201
206
  # limited to 256 characters. Optional.
202
207
  # @param [Time] date_created The date that this resource was created.
203
208
  # @param [Time] date_updated The date that this resource was last updated.
209
+ # @param [String] attributes An optional string metadata field you can use to
210
+ # store any data you wish. The string value must contain structurally valid JSON
211
+ # if specified. **Note** that if the attributes are not set "{}" will be
212
+ # returned.
204
213
  # @return [ConversationInstance] Updated ConversationInstance
205
- def update(friendly_name: :unset, date_created: :unset, date_updated: :unset)
214
+ def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
206
215
  data = Twilio::Values.of({
207
216
  'FriendlyName' => friendly_name,
208
217
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
209
218
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
219
+ 'Attributes' => attributes,
210
220
  })
211
221
 
212
222
  payload = @version.update(
@@ -220,7 +230,7 @@ module Twilio
220
230
 
221
231
  ##
222
232
  # Deletes the ConversationInstance
223
- # @return [Boolean] true if delete succeeds, true otherwise
233
+ # @return [Boolean] true if delete succeeds, false otherwise
224
234
  def delete
225
235
  @version.delete('delete', @uri)
226
236
  end
@@ -329,6 +339,7 @@ module Twilio
329
339
  'messaging_service_sid' => payload['messaging_service_sid'],
330
340
  'sid' => payload['sid'],
331
341
  'friendly_name' => payload['friendly_name'],
342
+ 'attributes' => payload['attributes'],
332
343
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
333
344
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
334
345
  'url' => payload['url'],
@@ -381,6 +392,12 @@ module Twilio
381
392
  @properties['friendly_name']
382
393
  end
383
394
 
395
+ ##
396
+ # @return [String] An optional string metadata field you can use to store any data you wish.
397
+ def attributes
398
+ @properties['attributes']
399
+ end
400
+
384
401
  ##
385
402
  # @return [Time] The date that this resource was created.
386
403
  def date_created
@@ -411,14 +428,23 @@ module Twilio
411
428
  # limited to 256 characters. Optional.
412
429
  # @param [Time] date_created The date that this resource was created.
413
430
  # @param [Time] date_updated The date that this resource was last updated.
431
+ # @param [String] attributes An optional string metadata field you can use to
432
+ # store any data you wish. The string value must contain structurally valid JSON
433
+ # if specified. **Note** that if the attributes are not set "{}" will be
434
+ # returned.
414
435
  # @return [ConversationInstance] Updated ConversationInstance
415
- def update(friendly_name: :unset, date_created: :unset, date_updated: :unset)
416
- context.update(friendly_name: friendly_name, date_created: date_created, date_updated: date_updated, )
436
+ def update(friendly_name: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
437
+ context.update(
438
+ friendly_name: friendly_name,
439
+ date_created: date_created,
440
+ date_updated: date_updated,
441
+ attributes: attributes,
442
+ )
417
443
  end
418
444
 
419
445
  ##
420
446
  # Deletes the ConversationInstance
421
- # @return [Boolean] true if delete succeeds, true otherwise
447
+ # @return [Boolean] true if delete succeeds, false otherwise
422
448
  def delete
423
449
  context.delete
424
450
  end
@@ -38,13 +38,17 @@ module Twilio
38
38
  # @param [Time] date_created The date that this resource was created.
39
39
  # @param [Time] date_updated The date that this resource was last updated. `null`
40
40
  # if the message has not been edited.
41
+ # @param [String] attributes A string metadata field you can use to store any data
42
+ # you wish. The string value must contain structurally valid JSON if specified.
43
+ # **Note** that if the attributes are not set "{}" will be returned.
41
44
  # @return [MessageInstance] Newly created MessageInstance
42
- def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset)
45
+ def create(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
43
46
  data = Twilio::Values.of({
44
47
  'Author' => author,
45
48
  'Body' => body,
46
49
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
47
50
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
51
+ 'Attributes' => attributes,
48
52
  })
49
53
 
50
54
  payload = @version.create(
@@ -204,13 +208,17 @@ module Twilio
204
208
  # @param [Time] date_created The date that this resource was created.
205
209
  # @param [Time] date_updated The date that this resource was last updated. `null`
206
210
  # if the message has not been edited.
211
+ # @param [String] attributes A string metadata field you can use to store any data
212
+ # you wish. The string value must contain structurally valid JSON if specified.
213
+ # **Note** that if the attributes are not set "{}" will be returned.
207
214
  # @return [MessageInstance] Updated MessageInstance
208
- def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset)
215
+ def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
209
216
  data = Twilio::Values.of({
210
217
  'Author' => author,
211
218
  'Body' => body,
212
219
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
213
220
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
221
+ 'Attributes' => attributes,
214
222
  })
215
223
 
216
224
  payload = @version.update(
@@ -229,7 +237,7 @@ module Twilio
229
237
 
230
238
  ##
231
239
  # Deletes the MessageInstance
232
- # @return [Boolean] true if delete succeeds, true otherwise
240
+ # @return [Boolean] true if delete succeeds, false otherwise
233
241
  def delete
234
242
  @version.delete('delete', @uri)
235
243
  end
@@ -292,6 +300,7 @@ module Twilio
292
300
  'index' => payload['index'].to_i,
293
301
  'author' => payload['author'],
294
302
  'body' => payload['body'],
303
+ 'attributes' => payload['attributes'],
295
304
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
296
305
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
297
306
  'url' => payload['url'],
@@ -349,6 +358,12 @@ module Twilio
349
358
  @properties['body']
350
359
  end
351
360
 
361
+ ##
362
+ # @return [String] A string metadata field you can use to store any data you wish.
363
+ def attributes
364
+ @properties['attributes']
365
+ end
366
+
352
367
  ##
353
368
  # @return [Time] The date that this resource was created.
354
369
  def date_created
@@ -376,14 +391,23 @@ module Twilio
376
391
  # @param [Time] date_created The date that this resource was created.
377
392
  # @param [Time] date_updated The date that this resource was last updated. `null`
378
393
  # if the message has not been edited.
394
+ # @param [String] attributes A string metadata field you can use to store any data
395
+ # you wish. The string value must contain structurally valid JSON if specified.
396
+ # **Note** that if the attributes are not set "{}" will be returned.
379
397
  # @return [MessageInstance] Updated MessageInstance
380
- def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset)
381
- context.update(author: author, body: body, date_created: date_created, date_updated: date_updated, )
398
+ def update(author: :unset, body: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
399
+ context.update(
400
+ author: author,
401
+ body: body,
402
+ date_created: date_created,
403
+ date_updated: date_updated,
404
+ attributes: attributes,
405
+ )
382
406
  end
383
407
 
384
408
  ##
385
409
  # Deletes the MessageInstance
386
- # @return [Boolean] true if delete succeeds, true otherwise
410
+ # @return [Boolean] true if delete succeeds, false otherwise
387
411
  def delete
388
412
  context.delete
389
413
  end
@@ -47,14 +47,19 @@ module Twilio
47
47
  # Limited to 256 characters.
48
48
  # @param [Time] date_created The date that this resource was created.
49
49
  # @param [Time] date_updated The date that this resource was last updated.
50
+ # @param [String] attributes An optional string metadata field you can use to
51
+ # store any data you wish. The string value must contain structurally valid JSON
52
+ # if specified. **Note** that if the attributes are not set "{}" will be
53
+ # returned.
50
54
  # @return [ParticipantInstance] Newly created ParticipantInstance
51
- def create(identity: :unset, messaging_binding_address: :unset, messaging_binding_proxy_address: :unset, date_created: :unset, date_updated: :unset)
55
+ def create(identity: :unset, messaging_binding_address: :unset, messaging_binding_proxy_address: :unset, date_created: :unset, date_updated: :unset, attributes: :unset)
52
56
  data = Twilio::Values.of({
53
57
  'Identity' => identity,
54
58
  'MessagingBinding.Address' => messaging_binding_address,
55
59
  'MessagingBinding.ProxyAddress' => messaging_binding_proxy_address,
56
60
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
57
61
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
62
+ 'Attributes' => attributes,
58
63
  })
59
64
 
60
65
  payload = @version.create(
@@ -209,11 +214,16 @@ module Twilio
209
214
  # Update the ParticipantInstance
210
215
  # @param [Time] date_created The date that this resource was created.
211
216
  # @param [Time] date_updated The date that this resource was last updated.
217
+ # @param [String] attributes An optional string metadata field you can use to
218
+ # store any data you wish. The string value must contain structurally valid JSON
219
+ # if specified. **Note** that if the attributes are not set "{}" will be
220
+ # returned.
212
221
  # @return [ParticipantInstance] Updated ParticipantInstance
213
- def update(date_created: :unset, date_updated: :unset)
222
+ def update(date_created: :unset, date_updated: :unset, attributes: :unset)
214
223
  data = Twilio::Values.of({
215
224
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
216
225
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
226
+ 'Attributes' => attributes,
217
227
  })
218
228
 
219
229
  payload = @version.update(
@@ -232,7 +242,7 @@ module Twilio
232
242
 
233
243
  ##
234
244
  # Deletes the ParticipantInstance
235
- # @return [Boolean] true if delete succeeds, true otherwise
245
+ # @return [Boolean] true if delete succeeds, false otherwise
236
246
  def delete
237
247
  @version.delete('delete', @uri)
238
248
  end
@@ -293,6 +303,7 @@ module Twilio
293
303
  'conversation_sid' => payload['conversation_sid'],
294
304
  'sid' => payload['sid'],
295
305
  'identity' => payload['identity'],
306
+ 'attributes' => payload['attributes'],
296
307
  'messaging_binding' => payload['messaging_binding'],
297
308
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
298
309
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
@@ -339,6 +350,12 @@ module Twilio
339
350
  @properties['identity']
340
351
  end
341
352
 
353
+ ##
354
+ # @return [String] An optional string metadata field you can use to store any data you wish.
355
+ def attributes
356
+ @properties['attributes']
357
+ end
358
+
342
359
  ##
343
360
  # @return [Hash] Information about how this participant exchanges messages with the conversation.
344
361
  def messaging_binding
@@ -367,14 +384,18 @@ module Twilio
367
384
  # Update the ParticipantInstance
368
385
  # @param [Time] date_created The date that this resource was created.
369
386
  # @param [Time] date_updated The date that this resource was last updated.
387
+ # @param [String] attributes An optional string metadata field you can use to
388
+ # store any data you wish. The string value must contain structurally valid JSON
389
+ # if specified. **Note** that if the attributes are not set "{}" will be
390
+ # returned.
370
391
  # @return [ParticipantInstance] Updated ParticipantInstance
371
- def update(date_created: :unset, date_updated: :unset)
372
- context.update(date_created: date_created, date_updated: date_updated, )
392
+ def update(date_created: :unset, date_updated: :unset, attributes: :unset)
393
+ context.update(date_created: date_created, date_updated: date_updated, attributes: attributes, )
373
394
  end
374
395
 
375
396
  ##
376
397
  # Deletes the ParticipantInstance
377
- # @return [Boolean] true if delete succeeds, true otherwise
398
+ # @return [Boolean] true if delete succeeds, false otherwise
378
399
  def delete
379
400
  context.delete
380
401
  end
@@ -263,7 +263,7 @@ module Twilio
263
263
 
264
264
  ##
265
265
  # Deletes the WebhookInstance
266
- # @return [Boolean] true if delete succeeds, true otherwise
266
+ # @return [Boolean] true if delete succeeds, false otherwise
267
267
  def delete
268
268
  @version.delete('delete', @uri)
269
269
  end
@@ -406,7 +406,7 @@ module Twilio
406
406
 
407
407
  ##
408
408
  # Deletes the WebhookInstance
409
- # @return [Boolean] true if delete succeeds, true otherwise
409
+ # @return [Boolean] true if delete succeeds, false otherwise
410
410
  def delete
411
411
  context.delete
412
412
  end
@@ -299,7 +299,7 @@ module Twilio
299
299
 
300
300
  ##
301
301
  # Deletes the FaxInstance
302
- # @return [Boolean] true if delete succeeds, true otherwise
302
+ # @return [Boolean] true if delete succeeds, false otherwise
303
303
  def delete
304
304
  @version.delete('delete', @uri)
305
305
  end
@@ -514,7 +514,7 @@ module Twilio
514
514
 
515
515
  ##
516
516
  # Deletes the FaxInstance
517
- # @return [Boolean] true if delete succeeds, true otherwise
517
+ # @return [Boolean] true if delete succeeds, false otherwise
518
518
  def delete
519
519
  context.delete
520
520
  end
@@ -183,7 +183,7 @@ module Twilio
183
183
 
184
184
  ##
185
185
  # Deletes the FaxMediaInstance
186
- # @return [Boolean] true if delete succeeds, true otherwise
186
+ # @return [Boolean] true if delete succeeds, false otherwise
187
187
  def delete
188
188
  @version.delete('delete', @uri)
189
189
  end
@@ -296,7 +296,7 @@ module Twilio
296
296
 
297
297
  ##
298
298
  # Deletes the FaxMediaInstance
299
- # @return [Boolean] true if delete succeeds, true otherwise
299
+ # @return [Boolean] true if delete succeeds, false otherwise
300
300
  def delete
301
301
  context.delete
302
302
  end
@@ -212,7 +212,7 @@ module Twilio
212
212
 
213
213
  ##
214
214
  # Deletes the ChannelInstance
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
@@ -327,7 +327,7 @@ module Twilio
327
327
 
328
328
  ##
329
329
  # Deletes the ChannelInstance
330
- # @return [Boolean] true if delete succeeds, true otherwise
330
+ # @return [Boolean] true if delete succeeds, false otherwise
331
331
  def delete
332
332
  context.delete
333
333
  end
@@ -176,6 +176,8 @@ module Twilio
176
176
  'plugin_service_attributes' => payload['plugin_service_attributes'],
177
177
  'integrations' => payload['integrations'],
178
178
  'outbound_call_flows' => payload['outbound_call_flows'],
179
+ 'features_enabled' => payload['features_enabled'],
180
+ 'serverless_service_sids' => payload['serverless_service_sids'],
179
181
  'url' => payload['url'],
180
182
  }
181
183
 
@@ -387,6 +389,18 @@ module Twilio
387
389
  @properties['outbound_call_flows']
388
390
  end
389
391
 
392
+ ##
393
+ # @return [String] List of enabled features
394
+ def features_enabled
395
+ @properties['features_enabled']
396
+ end
397
+
398
+ ##
399
+ # @return [String] List of serverless services sids
400
+ def serverless_service_sids
401
+ @properties['serverless_service_sids']
402
+ end
403
+
390
404
  ##
391
405
  # @return [String] The URL for this resource
392
406
  def url
@@ -291,7 +291,7 @@ module Twilio
291
291
 
292
292
  ##
293
293
  # Deletes the FlexFlowInstance
294
- # @return [Boolean] true if delete succeeds, true otherwise
294
+ # @return [Boolean] true if delete succeeds, false otherwise
295
295
  def delete
296
296
  @version.delete('delete', @uri)
297
297
  end
@@ -490,7 +490,7 @@ module Twilio
490
490
 
491
491
  ##
492
492
  # Deletes the FlexFlowInstance
493
- # @return [Boolean] true if delete succeeds, true otherwise
493
+ # @return [Boolean] true if delete succeeds, false otherwise
494
494
  def delete
495
495
  context.delete
496
496
  end
@@ -222,7 +222,7 @@ module Twilio
222
222
 
223
223
  ##
224
224
  # Deletes the WebChannelInstance
225
- # @return [Boolean] true if delete succeeds, true otherwise
225
+ # @return [Boolean] true if delete succeeds, false otherwise
226
226
  def delete
227
227
  @version.delete('delete', @uri)
228
228
  end
@@ -333,7 +333,7 @@ module Twilio
333
333
 
334
334
  ##
335
335
  # Deletes the WebChannelInstance
336
- # @return [Boolean] true if delete succeeds, true otherwise
336
+ # @return [Boolean] true if delete succeeds, false otherwise
337
337
  def delete
338
338
  context.delete
339
339
  end