twilio-ruby 5.44.0 → 5.47.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 (185) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +97 -0
  4. data/LICENSE +1 -1
  5. data/README.md +16 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -9
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +10 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +17 -12
  12. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  14. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
  16. data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
  17. data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
  18. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
  19. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
  20. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
  22. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
  24. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
  25. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
  27. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
  28. data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
  29. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  30. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  31. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
  32. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  33. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
  34. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
  35. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
  36. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  39. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  41. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  42. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  43. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  44. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  46. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  47. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  48. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  49. data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -2
  50. data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -2
  51. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  52. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  53. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  54. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
  55. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  56. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  57. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  58. data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
  59. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  60. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  61. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  62. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  63. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  64. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  65. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  66. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  67. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  68. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  69. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  70. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  71. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  72. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  73. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  74. data/lib/twilio-ruby/rest/messaging.rb +22 -0
  75. data/lib/twilio-ruby/rest/messaging/v1.rb +37 -0
  76. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  77. data/lib/twilio-ruby/rest/messaging/v1/campaign.rb +387 -0
  78. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  79. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  80. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  81. data/lib/twilio-ruby/rest/messaging/v1/use_case.rb +198 -0
  82. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  83. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  84. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  85. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  86. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  87. data/lib/twilio-ruby/rest/preview.rb +4 -23
  88. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
  89. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  90. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  91. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  92. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  93. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  94. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  95. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  96. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  97. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  98. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
  99. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  100. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  101. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  102. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  103. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  104. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  105. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  106. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  107. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
  108. data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
  109. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  110. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  111. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  112. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  113. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
  114. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  115. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  116. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  117. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
  118. data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
  119. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
  120. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
  121. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  122. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  123. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  124. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +16 -36
  125. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  126. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -25
  127. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +24 -43
  128. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  129. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -25
  130. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +25 -44
  131. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
  132. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -23
  133. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  137. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  138. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  139. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  140. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  141. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  142. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
  143. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  144. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  145. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  146. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  147. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
  148. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  149. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
  150. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  151. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  152. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  153. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  154. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  155. data/lib/twilio-ruby/twiml/voice_response.rb +18 -8
  156. data/lib/twilio-ruby/version.rb +1 -1
  157. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  158. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  159. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  160. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  161. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  162. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  163. data/spec/integration/events/v1/sink_spec.rb +14 -0
  164. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  165. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  166. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  167. data/spec/integration/messaging/v1/campaign_spec.rb +194 -0
  168. data/spec/integration/messaging/v1/use_case_spec.rb +55 -0
  169. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  170. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  171. data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
  172. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  173. data/spec/integration/video/v1/room_spec.rb +5 -0
  174. data/spec/twiml/voice_response_spec.rb +1 -1
  175. metadata +11 -17
  176. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
  177. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
  178. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
  179. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
  180. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
  181. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
  182. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
  183. data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
  184. data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
  185. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -75,8 +75,8 @@ module Twilio
75
75
  # Lists ChannelInstance records from the API as a list.
76
76
  # Unlike stream(), this operation is eager and will load `limit` records into
77
77
  # memory before returning.
78
- # @param [channel.ChannelType] type The visibility of the Channels to read. Can
79
- # be: `public` or `private` and defaults to `public`.
78
+ # @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
79
+ # Can be: `public` or `private` and defaults to `public`.
80
80
  # @param [Integer] limit Upper limit for the number of records to return. stream()
81
81
  # guarantees to never return more than limit. Default is no limit
82
82
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -92,8 +92,8 @@ module Twilio
92
92
  # Streams ChannelInstance records from the API as an Enumerable.
93
93
  # This operation lazily loads records as efficiently as possible until the limit
94
94
  # is reached.
95
- # @param [channel.ChannelType] type The visibility of the Channels to read. Can
96
- # be: `public` or `private` and defaults to `public`.
95
+ # @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
96
+ # Can be: `public` or `private` and defaults to `public`.
97
97
  # @param [Integer] limit Upper limit for the number of records to return. stream()
98
98
  # guarantees to never return more than limit. Default is no limit.
99
99
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -126,8 +126,8 @@ module Twilio
126
126
  ##
127
127
  # Retrieve a single page of ChannelInstance records from the API.
128
128
  # Request is executed immediately.
129
- # @param [channel.ChannelType] type The visibility of the Channels to read. Can
130
- # be: `public` or `private` and defaults to `public`.
129
+ # @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
130
+ # Can be: `public` or `private` and defaults to `public`.
131
131
  # @param [String] page_token PageToken provided by the API
132
132
  # @param [Integer] page_number Page Number, this value is simply for client state
133
133
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -58,7 +58,7 @@ module Twilio
58
58
  # Lists InviteInstance records from the API as a list.
59
59
  # Unlike stream(), this operation is eager and will load `limit` records into
60
60
  # memory before returning.
61
- # @param [String] identity The
61
+ # @param [Array[String]] identity The
62
62
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
63
63
  # of the resources to read. See {access
64
64
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -77,7 +77,7 @@ module Twilio
77
77
  # Streams InviteInstance records from the API as an Enumerable.
78
78
  # This operation lazily loads records as efficiently as possible until the limit
79
79
  # is reached.
80
- # @param [String] identity The
80
+ # @param [Array[String]] identity The
81
81
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
82
82
  # of the resources to read. See {access
83
83
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -113,7 +113,7 @@ module Twilio
113
113
  ##
114
114
  # Retrieve a single page of InviteInstance records from the API.
115
115
  # Request is executed immediately.
116
- # @param [String] identity The
116
+ # @param [Array[String]] identity The
117
117
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
118
118
  # of the resources to read. See {access
119
119
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -91,7 +91,7 @@ module Twilio
91
91
  # Lists MemberInstance records from the API as a list.
92
92
  # Unlike stream(), this operation is eager and will load `limit` records into
93
93
  # memory before returning.
94
- # @param [String] identity The
94
+ # @param [Array[String]] identity The
95
95
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
96
96
  # of the Member resources to read. See {access
97
97
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -110,7 +110,7 @@ module Twilio
110
110
  # Streams MemberInstance records from the API as an Enumerable.
111
111
  # This operation lazily loads records as efficiently as possible until the limit
112
112
  # is reached.
113
- # @param [String] identity The
113
+ # @param [Array[String]] identity The
114
114
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
115
115
  # of the Member resources to read. See {access
116
116
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -146,7 +146,7 @@ module Twilio
146
146
  ##
147
147
  # Retrieve a single page of MemberInstance records from the API.
148
148
  # Request is executed immediately.
149
- # @param [String] identity The
149
+ # @param [Array[String]] identity The
150
150
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
151
151
  # of the Member resources to read. See {access
152
152
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -119,15 +119,16 @@ module Twilio
119
119
  # `configuration.method`.
120
120
  # @param [webhook.Method] configuration_method The HTTP method used to call
121
121
  # `configuration.url`. Can be: `GET` or `POST` and the default is `POST`.
122
- # @param [String] configuration_filters The events that cause us to call the
123
- # Channel Webhook. Used when `type` is `webhook`. This parameter takes only one
124
- # event. To specify more than one event, repeat this parameter for each event. For
125
- # the list of possible events, see {Webhook Event
122
+ # @param [Array[String]] configuration_filters The events that cause us to call
123
+ # the Channel Webhook. Used when `type` is `webhook`. This parameter takes only
124
+ # one event. To specify more than one event, repeat this parameter for each event.
125
+ # For the list of possible events, see {Webhook Event
126
126
  # Triggers}[https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger].
127
- # @param [String] configuration_triggers A string that will cause us to call the
128
- # webhook when it is present in a message body. This parameter takes only one
129
- # trigger string. To specify more than one, repeat this parameter for each trigger
130
- # string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
127
+ # @param [Array[String]] configuration_triggers A string that will cause us to
128
+ # call the webhook when it is present in a message body. This parameter takes only
129
+ # one trigger string. To specify more than one, repeat this parameter for each
130
+ # trigger string up to a total of 5 trigger strings. Used only when `type` =
131
+ # `trigger`.
131
132
  # @param [String] configuration_flow_sid The SID of the Studio
132
133
  # {Flow}[https://www.twilio.com/docs/studio/rest-api/flow] to call when an event
133
134
  # in `configuration.filters` occurs. Used only when `type` is `studio`.
@@ -239,15 +240,16 @@ module Twilio
239
240
  # `configuration.method`.
240
241
  # @param [webhook.Method] configuration_method The HTTP method used to call
241
242
  # `configuration.url`. Can be: `GET` or `POST` and the default is `POST`.
242
- # @param [String] configuration_filters The events that cause us to call the
243
- # Channel Webhook. Used when `type` is `webhook`. This parameter takes only one
244
- # event. To specify more than one event, repeat this parameter for each event. For
245
- # the list of possible events, see {Webhook Event
243
+ # @param [Array[String]] configuration_filters The events that cause us to call
244
+ # the Channel Webhook. Used when `type` is `webhook`. This parameter takes only
245
+ # one event. To specify more than one event, repeat this parameter for each event.
246
+ # For the list of possible events, see {Webhook Event
246
247
  # Triggers}[https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger].
247
- # @param [String] configuration_triggers A string that will cause us to call the
248
- # webhook when it is present in a message body. This parameter takes only one
249
- # trigger string. To specify more than one, repeat this parameter for each trigger
250
- # string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
248
+ # @param [Array[String]] configuration_triggers A string that will cause us to
249
+ # call the webhook when it is present in a message body. This parameter takes only
250
+ # one trigger string. To specify more than one, repeat this parameter for each
251
+ # trigger string up to a total of 5 trigger strings. Used only when `type` =
252
+ # `trigger`.
251
253
  # @param [String] configuration_flow_sid The SID of the Studio
252
254
  # {Flow}[https://www.twilio.com/docs/studio/rest-api/flow] to call when an event
253
255
  # in `configuration.filters` occurs. Used only when `type` = `studio`.
@@ -419,15 +421,16 @@ module Twilio
419
421
  # `configuration.method`.
420
422
  # @param [webhook.Method] configuration_method The HTTP method used to call
421
423
  # `configuration.url`. Can be: `GET` or `POST` and the default is `POST`.
422
- # @param [String] configuration_filters The events that cause us to call the
423
- # Channel Webhook. Used when `type` is `webhook`. This parameter takes only one
424
- # event. To specify more than one event, repeat this parameter for each event. For
425
- # the list of possible events, see {Webhook Event
424
+ # @param [Array[String]] configuration_filters The events that cause us to call
425
+ # the Channel Webhook. Used when `type` is `webhook`. This parameter takes only
426
+ # one event. To specify more than one event, repeat this parameter for each event.
427
+ # For the list of possible events, see {Webhook Event
426
428
  # Triggers}[https://www.twilio.com/docs/chat/webhook-events#webhook-event-trigger].
427
- # @param [String] configuration_triggers A string that will cause us to call the
428
- # webhook when it is present in a message body. This parameter takes only one
429
- # trigger string. To specify more than one, repeat this parameter for each trigger
430
- # string up to a total of 5 trigger strings. Used only when `type` = `trigger`.
429
+ # @param [Array[String]] configuration_triggers A string that will cause us to
430
+ # call the webhook when it is present in a message body. This parameter takes only
431
+ # one trigger string. To specify more than one, repeat this parameter for each
432
+ # trigger string up to a total of 5 trigger strings. Used only when `type` =
433
+ # `trigger`.
431
434
  # @param [String] configuration_flow_sid The SID of the Studio
432
435
  # {Flow}[https://www.twilio.com/docs/studio/rest-api/flow] to call when an event
433
436
  # in `configuration.filters` occurs. Used only when `type` = `studio`.
@@ -34,10 +34,10 @@ module Twilio
34
34
  # @param [role.RoleType] type The type of role. Can be: `channel` for
35
35
  # {Channel}[https://www.twilio.com/docs/chat/channels] roles or `deployment` for
36
36
  # {Service}[https://www.twilio.com/docs/chat/rest/service-resource] roles.
37
- # @param [String] permission A permission that you grant to the new role. Only one
38
- # permission can be granted per parameter. To assign more than one permission,
39
- # repeat this parameter for each permission value. The values for this parameter
40
- # depend on the role's `type`.
37
+ # @param [Array[String]] permission A permission that you grant to the new role.
38
+ # Only one permission can be granted per parameter. To assign more than one
39
+ # permission, repeat this parameter for each permission value. The values for this
40
+ # parameter depend on the role's `type`.
41
41
  # @return [RoleInstance] Created RoleInstance
42
42
  def create(friendly_name: nil, type: nil, permission: nil)
43
43
  data = Twilio::Values.of({
@@ -202,8 +202,8 @@ module Twilio
202
202
 
203
203
  ##
204
204
  # Update the RoleInstance
205
- # @param [String] permission A permission that you grant to the role. Only one
206
- # permission can be granted per parameter. To assign more than one permission,
205
+ # @param [Array[String]] permission A permission that you grant to the role. Only
206
+ # one permission can be granted per parameter. To assign more than one permission,
207
207
  # repeat this parameter for each permission value. Note that the update action
208
208
  # replaces all previously assigned permissions with those defined in the update
209
209
  # action. To remove a permission, do not include it in the subsequent update
@@ -305,7 +305,7 @@ module Twilio
305
305
  end
306
306
 
307
307
  ##
308
- # @return [String] An array of the permissions the role has been granted
308
+ # @return [Array[String]] An array of the permissions the role has been granted
309
309
  def permissions
310
310
  @properties['permissions']
311
311
  end
@@ -344,8 +344,8 @@ module Twilio
344
344
 
345
345
  ##
346
346
  # Update the RoleInstance
347
- # @param [String] permission A permission that you grant to the role. Only one
348
- # permission can be granted per parameter. To assign more than one permission,
347
+ # @param [Array[String]] permission A permission that you grant to the role. Only
348
+ # one permission can be granted per parameter. To assign more than one permission,
349
349
  # repeat this parameter for each permission value. Note that the update action
350
350
  # replaces all previously assigned permissions with those defined in the update
351
351
  # action. To remove a permission, do not include it in the subsequent update
@@ -37,9 +37,9 @@ module Twilio
37
37
  # Lists UserBindingInstance records from the API as a list.
38
38
  # Unlike stream(), this operation is eager and will load `limit` records into
39
39
  # memory before returning.
40
- # @param [user_binding.BindingType] binding_type The push technology used by the
41
- # User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
42
- # notification
40
+ # @param [Array[user_binding.BindingType]] binding_type The push technology used
41
+ # by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
42
+ # {push notification
43
43
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
44
44
  # for more info.
45
45
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -57,9 +57,9 @@ module Twilio
57
57
  # Streams UserBindingInstance records from the API as an Enumerable.
58
58
  # This operation lazily loads records as efficiently as possible until the limit
59
59
  # is reached.
60
- # @param [user_binding.BindingType] binding_type The push technology used by the
61
- # User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
62
- # notification
60
+ # @param [Array[user_binding.BindingType]] binding_type The push technology used
61
+ # by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
62
+ # {push notification
63
63
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
64
64
  # for more info.
65
65
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -94,9 +94,9 @@ module Twilio
94
94
  ##
95
95
  # Retrieve a single page of UserBindingInstance records from the API.
96
96
  # Request is executed immediately.
97
- # @param [user_binding.BindingType] binding_type The push technology used by the
98
- # User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
99
- # notification
97
+ # @param [Array[user_binding.BindingType]] binding_type The push technology used
98
+ # by the User Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See
99
+ # {push notification
100
100
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
101
101
  # for more info.
102
102
  # @param [String] page_token PageToken provided by the API
@@ -345,7 +345,7 @@ module Twilio
345
345
  end
346
346
 
347
347
  ##
348
- # @return [String] The Programmable Chat message types the binding is subscribed to
348
+ # @return [Array[String]] The Programmable Chat message types the binding is subscribed to
349
349
  def message_types
350
350
  @properties['message_types']
351
351
  end
@@ -85,10 +85,10 @@ module Twilio
85
85
  # Update the WebhookInstance
86
86
  # @param [String] method The HTTP method to be used when sending a webhook
87
87
  # request.
88
- # @param [String] filters The list of webhook event triggers that are enabled for
89
- # this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`,
90
- # `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`,
91
- # `onParticipantUpdated`, `onParticipantRemoved`
88
+ # @param [Array[String]] filters The list of webhook event triggers that are
89
+ # enabled for this Service: `onMessageAdded`, `onMessageUpdated`,
90
+ # `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`,
91
+ # `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
92
92
  # @param [String] pre_webhook_url The absolute url the pre-event webhook request
93
93
  # should be sent to.
94
94
  # @param [String] post_webhook_url The absolute url the post-event webhook request
@@ -173,7 +173,7 @@ module Twilio
173
173
  end
174
174
 
175
175
  ##
176
- # @return [String] The list of webhook event triggers that are enabled for this Service.
176
+ # @return [Array[String]] The list of webhook event triggers that are enabled for this Service.
177
177
  def filters
178
178
  @properties['filters']
179
179
  end
@@ -213,10 +213,10 @@ module Twilio
213
213
  # Update the WebhookInstance
214
214
  # @param [String] method The HTTP method to be used when sending a webhook
215
215
  # request.
216
- # @param [String] filters The list of webhook event triggers that are enabled for
217
- # this Service: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`,
218
- # `onConversationUpdated`, `onConversationRemoved`, `onParticipantAdded`,
219
- # `onParticipantUpdated`, `onParticipantRemoved`
216
+ # @param [Array[String]] filters The list of webhook event triggers that are
217
+ # enabled for this Service: `onMessageAdded`, `onMessageUpdated`,
218
+ # `onMessageRemoved`, `onConversationUpdated`, `onConversationRemoved`,
219
+ # `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`
220
220
  # @param [String] pre_webhook_url The absolute url the pre-event webhook request
221
221
  # should be sent to.
222
222
  # @param [String] post_webhook_url The absolute url the post-event webhook request
@@ -378,7 +378,7 @@ module Twilio
378
378
  end
379
379
 
380
380
  ##
381
- # @return [Hash] An array of objects that describe the Message's media if attached, otherwise, null.
381
+ # @return [Array[Hash]] An array of objects that describe the Message's media if attached, otherwise, null.
382
382
  def media
383
383
  @properties['media']
384
384
  end
@@ -230,10 +230,16 @@ module Twilio
230
230
  # User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
231
231
  # parameter is non-null if (and only if) the participant is using the
232
232
  # Conversations SDK to communicate. Limited to 256 characters.
233
+ # @param [String] last_read_message_index Index of last “read” message in the
234
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
235
+ # for the Participant.
236
+ # @param [String] last_read_timestamp Timestamp of last “read” message in the
237
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
238
+ # for the Participant.
233
239
  # @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
234
240
  # X-Twilio-Webhook-Enabled HTTP request header
235
241
  # @return [ParticipantInstance] Updated ParticipantInstance
236
- def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, identity: :unset, x_twilio_webhook_enabled: :unset)
242
+ def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, identity: :unset, last_read_message_index: :unset, last_read_timestamp: :unset, x_twilio_webhook_enabled: :unset)
237
243
  data = Twilio::Values.of({
238
244
  'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
239
245
  'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
@@ -242,6 +248,8 @@ module Twilio
242
248
  'MessagingBinding.ProxyAddress' => messaging_binding_proxy_address,
243
249
  'MessagingBinding.ProjectedAddress' => messaging_binding_projected_address,
244
250
  'Identity' => identity,
251
+ 'LastReadMessageIndex' => last_read_message_index,
252
+ 'LastReadTimestamp' => last_read_timestamp,
245
253
  })
246
254
  headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
247
255
 
@@ -321,6 +329,8 @@ module Twilio
321
329
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
322
330
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
323
331
  'url' => payload['url'],
332
+ 'last_read_message_index' => payload['last_read_message_index'] == nil ? payload['last_read_message_index'] : payload['last_read_message_index'].to_i,
333
+ 'last_read_timestamp' => payload['last_read_timestamp'],
324
334
  }
325
335
 
326
336
  # Context
@@ -399,6 +409,18 @@ module Twilio
399
409
  @properties['url']
400
410
  end
401
411
 
412
+ ##
413
+ # @return [String] Index of last “read” message in the Conversation for the Participant.
414
+ def last_read_message_index
415
+ @properties['last_read_message_index']
416
+ end
417
+
418
+ ##
419
+ # @return [String] Timestamp of last “read” message in the Conversation for the Participant.
420
+ def last_read_timestamp
421
+ @properties['last_read_timestamp']
422
+ end
423
+
402
424
  ##
403
425
  # Update the ParticipantInstance
404
426
  # @param [Time] date_created The date that this resource was created.
@@ -419,10 +441,16 @@ module Twilio
419
441
  # User}[https://www.twilio.com/docs/conversations/api/user-resource]. This
420
442
  # parameter is non-null if (and only if) the participant is using the
421
443
  # Conversations SDK to communicate. Limited to 256 characters.
444
+ # @param [String] last_read_message_index Index of last “read” message in the
445
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
446
+ # for the Participant.
447
+ # @param [String] last_read_timestamp Timestamp of last “read” message in the
448
+ # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
449
+ # for the Participant.
422
450
  # @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
423
451
  # X-Twilio-Webhook-Enabled HTTP request header
424
452
  # @return [ParticipantInstance] Updated ParticipantInstance
425
- def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, identity: :unset, x_twilio_webhook_enabled: :unset)
453
+ def update(date_created: :unset, date_updated: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, identity: :unset, last_read_message_index: :unset, last_read_timestamp: :unset, x_twilio_webhook_enabled: :unset)
426
454
  context.update(
427
455
  date_created: date_created,
428
456
  date_updated: date_updated,
@@ -431,6 +459,8 @@ module Twilio
431
459
  messaging_binding_proxy_address: messaging_binding_proxy_address,
432
460
  messaging_binding_projected_address: messaging_binding_projected_address,
433
461
  identity: identity,
462
+ last_read_message_index: last_read_message_index,
463
+ last_read_timestamp: last_read_timestamp,
434
464
  x_twilio_webhook_enabled: x_twilio_webhook_enabled,
435
465
  )
436
466
  end
@@ -115,10 +115,10 @@ module Twilio
115
115
  # sent to.
116
116
  # @param [webhook.Method] configuration_method The HTTP method to be used when
117
117
  # sending a webhook request.
118
- # @param [String] configuration_filters The list of events, firing webhook event
119
- # for this Conversation.
120
- # @param [String] configuration_triggers The list of keywords, firing webhook
118
+ # @param [Array[String]] configuration_filters The list of events, firing webhook
121
119
  # event for this Conversation.
120
+ # @param [Array[String]] configuration_triggers The list of keywords, firing
121
+ # webhook event for this Conversation.
122
122
  # @param [String] configuration_flow_sid The studio flow SID, where the webhook
123
123
  # should be sent to.
124
124
  # @param [String] configuration_replay_after The message index for which and it's
@@ -214,10 +214,10 @@ module Twilio
214
214
  # sent to.
215
215
  # @param [webhook.Method] configuration_method The HTTP method to be used when
216
216
  # sending a webhook request.
217
- # @param [String] configuration_filters The list of events, firing webhook event
218
- # for this Conversation.
219
- # @param [String] configuration_triggers The list of keywords, firing webhook
217
+ # @param [Array[String]] configuration_filters The list of events, firing webhook
220
218
  # event for this Conversation.
219
+ # @param [Array[String]] configuration_triggers The list of keywords, firing
220
+ # webhook event for this Conversation.
221
221
  # @param [String] configuration_flow_sid The studio flow SID, where the webhook
222
222
  # should be sent to.
223
223
  # @return [WebhookInstance] Updated WebhookInstance
@@ -365,10 +365,10 @@ module Twilio
365
365
  # sent to.
366
366
  # @param [webhook.Method] configuration_method The HTTP method to be used when
367
367
  # sending a webhook request.
368
- # @param [String] configuration_filters The list of events, firing webhook event
369
- # for this Conversation.
370
- # @param [String] configuration_triggers The list of keywords, firing webhook
368
+ # @param [Array[String]] configuration_filters The list of events, firing webhook
371
369
  # event for this Conversation.
370
+ # @param [Array[String]] configuration_triggers The list of keywords, firing
371
+ # webhook event for this Conversation.
372
372
  # @param [String] configuration_flow_sid The studio flow SID, where the webhook
373
373
  # should be sent to.
374
374
  # @return [WebhookInstance] Updated WebhookInstance
@@ -31,10 +31,10 @@ module Twilio
31
31
  # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
32
32
  # roles or `service` for {Conversation
33
33
  # Service}[https://www.twilio.com/docs/conversations/api/service-resource] roles.
34
- # @param [String] permission A permission that you grant to the new role. Only one
35
- # permission can be granted per parameter. To assign more than one permission,
36
- # repeat this parameter for each permission value. The values for this parameter
37
- # depend on the role's `type`.
34
+ # @param [Array[String]] permission A permission that you grant to the new role.
35
+ # Only one permission can be granted per parameter. To assign more than one
36
+ # permission, repeat this parameter for each permission value. The values for this
37
+ # parameter depend on the role's `type`.
38
38
  # @return [RoleInstance] Created RoleInstance
39
39
  def create(friendly_name: nil, type: nil, permission: nil)
40
40
  data = Twilio::Values.of({
@@ -180,8 +180,8 @@ module Twilio
180
180
 
181
181
  ##
182
182
  # Update the RoleInstance
183
- # @param [String] permission A permission that you grant to the role. Only one
184
- # permission can be granted per parameter. To assign more than one permission,
183
+ # @param [Array[String]] permission A permission that you grant to the role. Only
184
+ # one permission can be granted per parameter. To assign more than one permission,
185
185
  # repeat this parameter for each permission value. Note that the update action
186
186
  # replaces all previously assigned permissions with those defined in the update
187
187
  # action. To remove a permission, do not include it in the subsequent update
@@ -296,7 +296,7 @@ module Twilio
296
296
  end
297
297
 
298
298
  ##
299
- # @return [String] An array of the permissions the role has been granted
299
+ # @return [Array[String]] An array of the permissions the role has been granted
300
300
  def permissions
301
301
  @properties['permissions']
302
302
  end
@@ -321,8 +321,8 @@ module Twilio
321
321
 
322
322
  ##
323
323
  # Update the RoleInstance
324
- # @param [String] permission A permission that you grant to the role. Only one
325
- # permission can be granted per parameter. To assign more than one permission,
324
+ # @param [Array[String]] permission A permission that you grant to the role. Only
325
+ # one permission can be granted per parameter. To assign more than one permission,
326
326
  # repeat this parameter for each permission value. Note that the update action
327
327
  # replaces all previously assigned permissions with those defined in the update
328
328
  # action. To remove a permission, do not include it in the subsequent update