twilio-ruby 5.42.0 → 5.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +95 -0
  4. data/LICENSE +1 -1
  5. data/README.md +18 -2
  6. data/lib/twilio-ruby.rb +1 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +34 -9
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +201 -0
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
  11. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +17 -5
  13. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +17 -12
  14. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
  17. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
  18. data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
  19. data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
  20. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
  22. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
  23. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
  24. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
  25. data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
  27. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
  28. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
  29. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
  30. data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
  31. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  32. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  33. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
  34. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  35. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
  36. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
  37. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
  38. data/lib/twilio-ruby/rest/client.rb +29 -3
  39. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
  40. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  41. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  42. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  43. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  44. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  45. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  46. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  47. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  48. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  49. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  50. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  51. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  52. data/lib/twilio-ruby/rest/events/v1/sink.rb +2 -1
  53. data/lib/twilio-ruby/rest/events/v1/subscription.rb +14 -7
  54. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  55. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  56. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  57. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +4 -4
  58. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  59. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  60. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  61. data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
  62. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +2 -9
  63. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  64. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  65. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  66. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  67. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  68. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  69. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  70. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  71. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  72. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  73. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  74. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  75. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  76. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  77. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  78. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  79. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  80. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  81. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  82. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  83. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  84. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  85. data/lib/twilio-ruby/rest/preview.rb +4 -23
  86. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
  87. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  88. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  89. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  90. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  91. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  92. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  93. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  94. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  95. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
  96. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  97. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  98. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  99. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  100. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  101. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  102. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  103. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  104. data/lib/twilio-ruby/rest/serverless/v1/service.rb +5 -5
  105. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +4 -4
  106. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +4 -4
  107. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +10 -10
  108. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +4 -4
  109. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +4 -4
  110. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -4
  111. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +4 -4
  112. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +4 -4
  113. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
  114. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +4 -4
  115. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +4 -4
  116. data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
  117. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
  118. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +3 -3
  119. data/lib/twilio-ruby/rest/supersim/v1/network.rb +1 -1
  120. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +2 -2
  121. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +1 -1
  122. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -5
  123. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +4 -2
  124. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +3 -3
  125. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +4 -2
  126. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +4 -4
  127. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
  128. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -1
  129. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -9
  130. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  131. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -16
  132. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  133. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  137. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  138. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +21 -24
  139. data/lib/twilio-ruby/rest/verify/v2/service.rb +3 -3
  140. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -1
  141. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +8 -6
  142. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  143. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  144. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  145. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  146. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
  147. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  148. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
  149. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  150. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  151. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  152. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  153. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  154. data/lib/twilio-ruby/twiml/voice_response.rb +8 -4
  155. data/lib/twilio-ruby/util/configuration.rb +5 -1
  156. data/lib/twilio-ruby/version.rb +1 -1
  157. data/spec/integration/api/v2010/account/call/event_spec.rb +102 -0
  158. data/spec/integration/api/v2010/account/call/recording_spec.rb +4 -0
  159. data/spec/integration/api/v2010/account/call_spec.rb +20 -10
  160. data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
  161. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  162. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  163. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  164. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  165. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  166. data/spec/integration/events/v1/sink_spec.rb +14 -0
  167. data/spec/integration/events/v1/subscription_spec.rb +49 -0
  168. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  169. data/spec/integration/insights/v1/room/participant_spec.rb +0 -2
  170. data/spec/integration/lookups/v1/phone_number_spec.rb +7 -7
  171. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +1 -1
  172. data/spec/integration/trunking/v1/trunk/recording_spec.rb +2 -6
  173. data/spec/integration/video/v1/room_spec.rb +5 -0
  174. data/spec/rest/client_spec.rb +24 -2
  175. data/spec/twiml/voice_response_spec.rb +1 -1
  176. data/twilio-ruby.gemspec +1 -0
  177. metadata +19 -17
  178. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
  179. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
  180. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
  181. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
  182. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
  183. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
  184. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
  185. data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
  186. data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
  187. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -68,7 +68,8 @@ module Twilio
68
68
  ##
69
69
  # Initialize the ExportConfigurationContext
70
70
  # @param [Version] version Version that contains the resource
71
- # @param [String] resource_type The type of communication – Messages, Calls
71
+ # @param [String] resource_type The type of communication – Messages, Calls,
72
+ # Conferences, and Participants
72
73
  # @return [ExportConfigurationContext] ExportConfigurationContext
73
74
  def initialize(version, resource_type)
74
75
  super(version)
@@ -131,7 +132,8 @@ module Twilio
131
132
  # Initialize the ExportConfigurationInstance
132
133
  # @param [Version] version Version that contains the resource
133
134
  # @param [Hash] payload payload that contains response from Twilio
134
- # @param [String] resource_type The type of communication – Messages, Calls
135
+ # @param [String] resource_type The type of communication – Messages, Calls,
136
+ # Conferences, and Participants
135
137
  # @return [ExportConfigurationInstance] ExportConfigurationInstance
136
138
  def initialize(version, payload, resource_type: nil)
137
139
  super(version)
@@ -180,7 +182,7 @@ module Twilio
180
182
  end
181
183
 
182
184
  ##
183
- # @return [String] The type of communication – Messages, Calls
185
+ # @return [String] The type of communication – Messages, Calls, Conferences, and Participants
184
186
  def resource_type
185
187
  @properties['resource_type']
186
188
  end
@@ -246,8 +246,8 @@ module Twilio
246
246
  # `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
247
247
  # the default is `POST`. See {Webhook
248
248
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
249
- # @param [String] webhook_filters The list of WebHook events that are enabled for
250
- # this Service instance. See {Webhook
249
+ # @param [Array[String]] webhook_filters The list of WebHook events that are
250
+ # enabled for this Service instance. See {Webhook
251
251
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
252
252
  # @param [String] webhooks_on_message_send_url The URL of the webhook to call in
253
253
  # response to the `on_message_send` event using the
@@ -621,7 +621,7 @@ module Twilio
621
621
  end
622
622
 
623
623
  ##
624
- # @return [String] The list of WebHook events that are enabled for this Service instance
624
+ # @return [Array[String]] The list of WebHook events that are enabled for this Service instance
625
625
  def webhook_filters
626
626
  @properties['webhook_filters']
627
627
  end
@@ -716,8 +716,8 @@ module Twilio
716
716
  # `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
717
717
  # the default is `POST`. See {Webhook
718
718
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
719
- # @param [String] webhook_filters The list of WebHook events that are enabled for
720
- # this Service instance. See {Webhook
719
+ # @param [Array[String]] webhook_filters The list of WebHook events that are
720
+ # enabled for this Service instance. See {Webhook
721
721
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
722
722
  # @param [String] webhooks_on_message_send_url The URL of the webhook to call in
723
723
  # response to the `on_message_send` event using the
@@ -57,8 +57,8 @@ module Twilio
57
57
  # Lists ChannelInstance records from the API as a list.
58
58
  # Unlike stream(), this operation is eager and will load `limit` records into
59
59
  # memory before returning.
60
- # @param [channel.ChannelType] type The visibility of the Channels to read. Can
61
- # be: `public` or `private` and defaults to `public`.
60
+ # @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
61
+ # Can be: `public` or `private` and defaults to `public`.
62
62
  # @param [Integer] limit Upper limit for the number of records to return. stream()
63
63
  # guarantees to never return more than limit. Default is no limit
64
64
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -74,8 +74,8 @@ module Twilio
74
74
  # Streams ChannelInstance records from the API as an Enumerable.
75
75
  # This operation lazily loads records as efficiently as possible until the limit
76
76
  # is reached.
77
- # @param [channel.ChannelType] type The visibility of the Channels to read. Can
78
- # be: `public` or `private` and defaults to `public`.
77
+ # @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
78
+ # Can be: `public` or `private` and defaults to `public`.
79
79
  # @param [Integer] limit Upper limit for the number of records to return. stream()
80
80
  # guarantees to never return more than limit. Default is no limit.
81
81
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -108,8 +108,8 @@ module Twilio
108
108
  ##
109
109
  # Retrieve a single page of ChannelInstance records from the API.
110
110
  # Request is executed immediately.
111
- # @param [channel.ChannelType] type The visibility of the Channels to read. Can
112
- # be: `public` or `private` and defaults to `public`.
111
+ # @param [Array[channel.ChannelType]] type The visibility of the Channels to read.
112
+ # Can be: `public` or `private` and defaults to `public`.
113
113
  # @param [String] page_token PageToken provided by the API
114
114
  # @param [Integer] page_number Page Number, this value is simply for client state
115
115
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -59,7 +59,7 @@ module Twilio
59
59
  # Lists InviteInstance records from the API as a list.
60
60
  # Unlike stream(), this operation is eager and will load `limit` records into
61
61
  # memory before returning.
62
- # @param [String] identity The
62
+ # @param [Array[String]] identity The
63
63
  # {User}[https://www.twilio.com/docs/api/chat/rest/v1/user]'s `identity` value of
64
64
  # the resources to read. See {access
65
65
  # tokens}[https://www.twilio.com/docs/api/chat/guides/create-tokens] for more
@@ -79,7 +79,7 @@ module Twilio
79
79
  # Streams InviteInstance records from the API as an Enumerable.
80
80
  # This operation lazily loads records as efficiently as possible until the limit
81
81
  # is reached.
82
- # @param [String] identity The
82
+ # @param [Array[String]] identity The
83
83
  # {User}[https://www.twilio.com/docs/api/chat/rest/v1/user]'s `identity` value of
84
84
  # the resources to read. See {access
85
85
  # tokens}[https://www.twilio.com/docs/api/chat/guides/create-tokens] for more
@@ -116,7 +116,7 @@ module Twilio
116
116
  ##
117
117
  # Retrieve a single page of InviteInstance records from the API.
118
118
  # Request is executed immediately.
119
- # @param [String] identity The
119
+ # @param [Array[String]] identity The
120
120
  # {User}[https://www.twilio.com/docs/api/chat/rest/v1/user]'s `identity` value of
121
121
  # the resources to read. See {access
122
122
  # tokens}[https://www.twilio.com/docs/api/chat/guides/create-tokens] for more
@@ -59,7 +59,7 @@ module Twilio
59
59
  # Lists MemberInstance records from the API as a list.
60
60
  # Unlike stream(), this operation is eager and will load `limit` records into
61
61
  # memory before returning.
62
- # @param [String] identity The
62
+ # @param [Array[String]] identity The
63
63
  # {User}[https://www.twilio.com/docs/api/chat/rest/v1/user]'s `identity` value of
64
64
  # the resources to read. See {access
65
65
  # tokens}[https://www.twilio.com/docs/api/chat/guides/create-tokens] for more
@@ -79,7 +79,7 @@ module Twilio
79
79
  # Streams MemberInstance records from the API as an Enumerable.
80
80
  # This operation lazily loads records as efficiently as possible until the limit
81
81
  # is reached.
82
- # @param [String] identity The
82
+ # @param [Array[String]] identity The
83
83
  # {User}[https://www.twilio.com/docs/api/chat/rest/v1/user]'s `identity` value of
84
84
  # the resources to read. See {access
85
85
  # tokens}[https://www.twilio.com/docs/api/chat/guides/create-tokens] for more
@@ -116,7 +116,7 @@ module Twilio
116
116
  ##
117
117
  # Retrieve a single page of MemberInstance records from the API.
118
118
  # Request is executed immediately.
119
- # @param [String] identity The
119
+ # @param [Array[String]] identity The
120
120
  # {User}[https://www.twilio.com/docs/api/chat/rest/v1/user]'s `identity` value of
121
121
  # the resources to read. See {access
122
122
  # tokens}[https://www.twilio.com/docs/api/chat/guides/create-tokens] for more
@@ -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/api/channels] roles or `deployment`
36
36
  # for {Service}[https://www.twilio.com/docs/chat/api/services] 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` and are described in the documentation.
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` and are described in the documentation.
41
41
  # @return [RoleInstance] Created RoleInstance
42
42
  def create(friendly_name: nil, type: nil, permission: nil)
43
43
  data = Twilio::Values.of({
@@ -203,8 +203,8 @@ module Twilio
203
203
 
204
204
  ##
205
205
  # Update the RoleInstance
206
- # @param [String] permission A permission that you grant to the role. Only one
207
- # permission can be granted per parameter. To assign more than one permission,
206
+ # @param [Array[String]] permission A permission that you grant to the role. Only
207
+ # one permission can be granted per parameter. To assign more than one permission,
208
208
  # repeat this parameter for each permission value. The values for this parameter
209
209
  # depend on the role's `type` and are described in the documentation.
210
210
  # @return [RoleInstance] Updated RoleInstance
@@ -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. The values for this parameter
350
350
  # depend on the role's `type` and are described in the documentation.
351
351
  # @return [RoleInstance] Updated RoleInstance
@@ -260,8 +260,8 @@ module Twilio
260
260
  # `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
261
261
  # the default is `POST`. See {Webhook
262
262
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
263
- # @param [String] webhook_filters The list of webhook events that are enabled for
264
- # this Service instance. See {Webhook
263
+ # @param [Array[String]] webhook_filters The list of webhook events that are
264
+ # enabled for this Service instance. See {Webhook
265
265
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
266
266
  # @param [String] limits_channel_members The maximum number of Members that can be
267
267
  # added to Channels within this Service. Can be up to 1,000.
@@ -557,7 +557,7 @@ module Twilio
557
557
  end
558
558
 
559
559
  ##
560
- # @return [String] The list of webhook events that are enabled for this Service instance
560
+ # @return [Array[String]] The list of webhook events that are enabled for this Service instance
561
561
  def webhook_filters
562
562
  @properties['webhook_filters']
563
563
  end
@@ -684,8 +684,8 @@ module Twilio
684
684
  # `pre_webhook_url` and `post_webhook_url` webhooks. Can be: `POST` or `GET` and
685
685
  # the default is `POST`. See {Webhook
686
686
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
687
- # @param [String] webhook_filters The list of webhook events that are enabled for
688
- # this Service instance. See {Webhook
687
+ # @param [Array[String]] webhook_filters The list of webhook events that are
688
+ # enabled for this Service instance. See {Webhook
689
689
  # Events}[https://www.twilio.com/docs/chat/webhook-events] for more details.
690
690
  # @param [String] limits_channel_members The maximum number of Members that can be
691
691
  # added to Channels within this Service. Can be up to 1,000.
@@ -31,12 +31,12 @@ module Twilio
31
31
  # Lists BindingInstance records from the API as a list.
32
32
  # Unlike stream(), this operation is eager and will load `limit` records into
33
33
  # memory before returning.
34
- # @param [binding.BindingType] binding_type The push technology used by the
34
+ # @param [Array[binding.BindingType]] binding_type The push technology used by the
35
35
  # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
36
36
  # notification
37
37
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
38
38
  # for more info.
39
- # @param [String] identity The
39
+ # @param [Array[String]] identity The
40
40
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
41
41
  # of the resources to read. See {access
42
42
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -60,12 +60,12 @@ module Twilio
60
60
  # Streams BindingInstance records from the API as an Enumerable.
61
61
  # This operation lazily loads records as efficiently as possible until the limit
62
62
  # is reached.
63
- # @param [binding.BindingType] binding_type The push technology used by the
63
+ # @param [Array[binding.BindingType]] binding_type The push technology used by the
64
64
  # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
65
65
  # notification
66
66
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
67
67
  # for more info.
68
- # @param [String] identity The
68
+ # @param [Array[String]] identity The
69
69
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
70
70
  # of the resources to read. See {access
71
71
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -101,12 +101,12 @@ module Twilio
101
101
  ##
102
102
  # Retrieve a single page of BindingInstance records from the API.
103
103
  # Request is executed immediately.
104
- # @param [binding.BindingType] binding_type The push technology used by the
104
+ # @param [Array[binding.BindingType]] binding_type The push technology used by the
105
105
  # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
106
106
  # notification
107
107
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
108
108
  # for more info.
109
- # @param [String] identity The
109
+ # @param [Array[String]] identity The
110
110
  # {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
111
111
  # of the resources to read. See {access
112
112
  # tokens}[https://www.twilio.com/docs/chat/create-tokens] for more details.
@@ -325,7 +325,7 @@ module Twilio
325
325
  end
326
326
 
327
327
  ##
328
- # @return [String] The Programmable Chat message types the binding is subscribed to
328
+ # @return [Array[String]] The Programmable Chat message types the binding is subscribed to
329
329
  def message_types
330
330
  @properties['message_types']
331
331
  end
@@ -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