twilio-ruby 5.45.1 → 5.49.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +108 -0
  4. data/LICENSE +1 -1
  5. data/README.md +16 -2
  6. data/lib/twilio-ruby/rest/api.rb +1 -1
  7. data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
  8. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +8 -8
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +17 -17
  12. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +4 -4
  14. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +11 -11
  15. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  16. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  17. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
  18. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
  19. data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
  20. data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
  21. data/lib/twilio-ruby/rest/bulkexports/v1.rb +14 -10
  22. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
  23. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
  24. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
  25. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
  26. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
  27. data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
  28. data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
  29. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
  30. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
  31. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
  32. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
  33. data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
  34. data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
  35. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  36. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  37. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
  38. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  39. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
  40. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
  41. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
  42. data/lib/twilio-ruby/rest/client.rb +8 -1
  43. data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
  44. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
  45. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  46. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  47. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  48. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  49. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  50. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  51. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  52. data/lib/twilio-ruby/rest/events/v1.rb +20 -16
  53. data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
  54. data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
  55. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
  56. data/lib/twilio-ruby/rest/events/v1/sink.rb +8 -6
  57. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
  58. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
  59. data/lib/twilio-ruby/rest/events/v1/subscription.rb +7 -6
  60. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -3
  61. data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
  62. data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
  63. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
  64. data/lib/twilio-ruby/rest/insights.rb +1 -1
  65. data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
  66. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  67. data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
  68. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
  69. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
  70. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  71. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  72. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  73. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  74. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  75. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
  76. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  77. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  78. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  79. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  80. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  81. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  82. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  83. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  84. data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
  85. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  86. data/lib/twilio-ruby/rest/messaging.rb +8 -0
  87. data/lib/twilio-ruby/rest/messaging/v1.rb +21 -4
  88. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  89. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  90. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  91. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  92. data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
  93. data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
  94. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  95. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  96. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  97. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  98. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  99. data/lib/twilio-ruby/rest/preview.rb +4 -2
  100. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +14 -10
  101. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  102. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  103. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  104. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  105. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  106. data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
  107. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
  108. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  109. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  110. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  111. data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
  112. data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
  113. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  114. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
  115. data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
  116. data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
  117. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  118. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  119. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  120. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  121. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  122. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  123. data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
  124. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  125. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  126. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  127. data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
  128. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
  129. data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
  130. data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
  131. data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
  132. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  133. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  134. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  135. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  136. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
  137. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  138. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  139. data/lib/twilio-ruby/rest/supersim/v1.rb +25 -20
  140. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  141. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
  142. data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
  143. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
  144. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
  145. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  146. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  147. data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
  148. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  149. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +25 -52
  150. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  151. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +18 -40
  152. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +46 -76
  153. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  154. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +18 -40
  155. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +47 -79
  156. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
  157. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +14 -38
  158. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
  159. data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
  160. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
  161. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  162. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  163. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  164. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  165. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  166. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  167. data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
  168. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  169. data/lib/twilio-ruby/rest/trusthub.rb +100 -0
  170. data/lib/twilio-ruby/rest/trusthub/v1.rb +146 -0
  171. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
  172. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
  173. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
  174. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
  175. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
  176. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
  177. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
  178. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
  179. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
  180. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
  181. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
  182. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
  183. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
  184. data/lib/twilio-ruby/rest/verify.rb +9 -0
  185. data/lib/twilio-ruby/rest/verify/v2.rb +26 -8
  186. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +7 -6
  187. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
  188. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  189. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  190. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
  191. data/lib/twilio-ruby/rest/video/v1.rb +20 -16
  192. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  193. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  194. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  195. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  196. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  197. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  198. data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
  199. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  200. data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
  201. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  202. data/lib/twilio-ruby/twiml/voice_response.rb +38 -8
  203. data/lib/twilio-ruby/version.rb +1 -1
  204. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  205. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
  206. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  207. data/spec/integration/events/v1/sink_spec.rb +14 -0
  208. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  209. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  210. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  211. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  212. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  213. data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
  214. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  215. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
  216. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
  217. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
  218. data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
  219. data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
  220. data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
  221. data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
  222. data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
  223. data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
  224. data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
  225. data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
  226. data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
  227. data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
  228. data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
  229. data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
  230. data/spec/integration/video/v1/room_spec.rb +5 -0
  231. data/spec/twiml/voice_response_spec.rb +1 -1
  232. metadata +49 -2
@@ -36,11 +36,12 @@ module Twilio
36
36
  # @return [Twilio::REST::Conversations::V1::ConversationList]
37
37
  def conversations(sid=:unset)
38
38
  if sid.nil?
39
- raise ArgumentError, 'sid cannot be nil'
40
- elsif sid == :unset
41
- @conversations ||= ConversationList.new self
39
+ raise ArgumentError, 'sid cannot be nil'
40
+ end
41
+ if sid == :unset
42
+ @conversations ||= ConversationList.new self
42
43
  else
43
- ConversationContext.new(self, sid)
44
+ ConversationContext.new(self, sid)
44
45
  end
45
46
  end
46
47
 
@@ -51,11 +52,12 @@ module Twilio
51
52
  # @return [Twilio::REST::Conversations::V1::CredentialList]
52
53
  def credentials(sid=:unset)
53
54
  if sid.nil?
54
- raise ArgumentError, 'sid cannot be nil'
55
- elsif sid == :unset
56
- @credentials ||= CredentialList.new self
55
+ raise ArgumentError, 'sid cannot be nil'
56
+ end
57
+ if sid == :unset
58
+ @credentials ||= CredentialList.new self
57
59
  else
58
- CredentialContext.new(self, sid)
60
+ CredentialContext.new(self, sid)
59
61
  end
60
62
  end
61
63
 
@@ -65,11 +67,12 @@ module Twilio
65
67
  # @return [Twilio::REST::Conversations::V1::RoleList]
66
68
  def roles(sid=:unset)
67
69
  if sid.nil?
68
- raise ArgumentError, 'sid cannot be nil'
69
- elsif sid == :unset
70
- @roles ||= RoleList.new self
70
+ raise ArgumentError, 'sid cannot be nil'
71
+ end
72
+ if sid == :unset
73
+ @roles ||= RoleList.new self
71
74
  else
72
- RoleContext.new(self, sid)
75
+ RoleContext.new(self, sid)
73
76
  end
74
77
  end
75
78
 
@@ -80,11 +83,12 @@ module Twilio
80
83
  # @return [Twilio::REST::Conversations::V1::ServiceList]
81
84
  def services(sid=:unset)
82
85
  if sid.nil?
83
- raise ArgumentError, 'sid cannot be nil'
84
- elsif sid == :unset
85
- @services ||= ServiceList.new self
86
+ raise ArgumentError, 'sid cannot be nil'
87
+ end
88
+ if sid == :unset
89
+ @services ||= ServiceList.new self
86
90
  else
87
- ServiceContext.new(self, sid)
91
+ ServiceContext.new(self, sid)
88
92
  end
89
93
  end
90
94
 
@@ -95,11 +99,12 @@ module Twilio
95
99
  # @return [Twilio::REST::Conversations::V1::UserList]
96
100
  def users(sid=:unset)
97
101
  if sid.nil?
98
- raise ArgumentError, 'sid cannot be nil'
99
- elsif sid == :unset
100
- @users ||= UserList.new self
102
+ raise ArgumentError, 'sid cannot be nil'
103
+ end
104
+ if sid == :unset
105
+ @users ||= UserList.new self
101
106
  else
102
- UserContext.new(self, sid)
107
+ UserContext.new(self, sid)
103
108
  end
104
109
  end
105
110
 
@@ -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
@@ -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
@@ -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 identity of a {Conversation
39
+ # @param [Array[String]] identity The identity of a {Conversation
40
40
  # User}[https://www.twilio.com/docs/conversations/api/user-resource] this binding
41
41
  # belongs to. See {access
42
42
  # tokens}[https://www.twilio.com/docs/conversations/create-tokens] for more
@@ -61,12 +61,12 @@ module Twilio
61
61
  # Streams BindingInstance records from the API as an Enumerable.
62
62
  # This operation lazily loads records as efficiently as possible until the limit
63
63
  # is reached.
64
- # @param [binding.BindingType] binding_type The push technology used by the
64
+ # @param [Array[binding.BindingType]] binding_type The push technology used by the
65
65
  # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
66
66
  # notification
67
67
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
68
68
  # for more info.
69
- # @param [String] identity The identity of a {Conversation
69
+ # @param [Array[String]] identity The identity of a {Conversation
70
70
  # User}[https://www.twilio.com/docs/conversations/api/user-resource] this binding
71
71
  # belongs to. See {access
72
72
  # tokens}[https://www.twilio.com/docs/conversations/create-tokens] for more
@@ -103,12 +103,12 @@ module Twilio
103
103
  ##
104
104
  # Retrieve a single page of BindingInstance records from the API.
105
105
  # Request is executed immediately.
106
- # @param [binding.BindingType] binding_type The push technology used by the
106
+ # @param [Array[binding.BindingType]] binding_type The push technology used by the
107
107
  # Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
108
108
  # notification
109
109
  # configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
110
110
  # for more info.
111
- # @param [String] identity The identity of a {Conversation
111
+ # @param [Array[String]] identity The identity of a {Conversation
112
112
  # User}[https://www.twilio.com/docs/conversations/api/user-resource] this binding
113
113
  # belongs to. See {access
114
114
  # tokens}[https://www.twilio.com/docs/conversations/create-tokens] for more
@@ -334,7 +334,7 @@ module Twilio
334
334
  end
335
335
 
336
336
  ##
337
- # @return [String] The Conversation message types the binding is subscribed to.
337
+ # @return [Array[String]] The Conversation message types the binding is subscribed to.
338
338
  def message_types
339
339
  @properties['message_types']
340
340
  end
@@ -423,7 +423,7 @@ module Twilio
423
423
  end
424
424
 
425
425
  ##
426
- # @return [Hash] An array of objects that describe the Message's media if attached, otherwise, null.
426
+ # @return [Array[Hash]] An array of objects that describe the Message's media if attached, otherwise, null.
427
427
  def media
428
428
  @properties['media']
429
429
  end
@@ -39,10 +39,10 @@ module Twilio
39
39
  # sent to.
40
40
  # @param [webhook.Method] configuration_method The HTTP method to be used when
41
41
  # sending a webhook request.
42
- # @param [String] configuration_filters The list of events, firing webhook event
43
- # for this Conversation.
44
- # @param [String] configuration_triggers The list of keywords, firing webhook
42
+ # @param [Array[String]] configuration_filters The list of events, firing webhook
45
43
  # event for this Conversation.
44
+ # @param [Array[String]] configuration_triggers The list of keywords, firing
45
+ # webhook event for this Conversation.
46
46
  # @param [String] configuration_flow_sid The studio flow SID, where the webhook
47
47
  # should be sent to.
48
48
  # @param [String] configuration_replay_after The message index for which and it's
@@ -217,10 +217,10 @@ module Twilio
217
217
  # sent to.
218
218
  # @param [webhook.Method] configuration_method The HTTP method to be used when
219
219
  # sending a webhook request.
220
- # @param [String] configuration_filters The list of events, firing webhook event
221
- # for this Conversation.
222
- # @param [String] configuration_triggers The list of keywords, firing webhook
220
+ # @param [Array[String]] configuration_filters The list of events, firing webhook
223
221
  # event for this Conversation.
222
+ # @param [Array[String]] configuration_triggers The list of keywords, firing
223
+ # webhook event for this Conversation.
224
224
  # @param [String] configuration_flow_sid The studio flow SID, where the webhook
225
225
  # should be sent to.
226
226
  # @return [WebhookInstance] Updated WebhookInstance
@@ -396,10 +396,10 @@ module Twilio
396
396
  # sent to.
397
397
  # @param [webhook.Method] configuration_method The HTTP method to be used when
398
398
  # sending a webhook request.
399
- # @param [String] configuration_filters The list of events, firing webhook event
400
- # for this Conversation.
401
- # @param [String] configuration_triggers The list of keywords, firing webhook
399
+ # @param [Array[String]] configuration_filters The list of events, firing webhook
402
400
  # event for this Conversation.
401
+ # @param [Array[String]] configuration_triggers The list of keywords, firing
402
+ # webhook event for this Conversation.
403
403
  # @param [String] configuration_flow_sid The studio flow SID, where the webhook
404
404
  # should be sent to.
405
405
  # @return [WebhookInstance] Updated WebhookInstance
@@ -35,10 +35,10 @@ module Twilio
35
35
  # {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
36
36
  # roles or `service` for {Conversation
37
37
  # Service}[https://www.twilio.com/docs/conversations/api/service-resource] roles.
38
- # @param [String] permission A permission that you grant to the new role. Only one
39
- # permission can be granted per parameter. To assign more than one permission,
40
- # repeat this parameter for each permission value. The values for this parameter
41
- # depend on the role's `type`.
38
+ # @param [Array[String]] permission A permission that you grant to the new role.
39
+ # Only one permission can be granted per parameter. To assign more than one
40
+ # permission, repeat this parameter for each permission value. The values for this
41
+ # parameter depend on the role's `type`.
42
42
  # @return [RoleInstance] Created RoleInstance
43
43
  def create(friendly_name: nil, type: nil, permission: nil)
44
44
  data = Twilio::Values.of({
@@ -187,8 +187,8 @@ module Twilio
187
187
 
188
188
  ##
189
189
  # Update the RoleInstance
190
- # @param [String] permission A permission that you grant to the role. Only one
191
- # permission can be granted per parameter. To assign more than one permission,
190
+ # @param [Array[String]] permission A permission that you grant to the role. Only
191
+ # one permission can be granted per parameter. To assign more than one permission,
192
192
  # repeat this parameter for each permission value. Note that the update action
193
193
  # replaces all previously assigned permissions with those defined in the update
194
194
  # action. To remove a permission, do not include it in the subsequent update
@@ -316,7 +316,7 @@ module Twilio
316
316
  end
317
317
 
318
318
  ##
319
- # @return [String] An array of the permissions the role has been granted
319
+ # @return [Array[String]] An array of the permissions the role has been granted
320
320
  def permissions
321
321
  @properties['permissions']
322
322
  end
@@ -341,8 +341,8 @@ module Twilio
341
341
 
342
342
  ##
343
343
  # Update the RoleInstance
344
- # @param [String] permission A permission that you grant to the role. Only one
345
- # permission can be granted per parameter. To assign more than one permission,
344
+ # @param [Array[String]] permission A permission that you grant to the role. Only
345
+ # one permission can be granted per parameter. To assign more than one permission,
346
346
  # repeat this parameter for each permission value. Note that the update action
347
347
  # replaces all previously assigned permissions with those defined in the update
348
348
  # action. To remove a permission, do not include it in the subsequent update
@@ -27,11 +27,12 @@ module Twilio
27
27
  # @return [Twilio::REST::Events::V1::EventTypeList]
28
28
  def event_types(type=:unset)
29
29
  if type.nil?
30
- raise ArgumentError, 'type cannot be nil'
31
- elsif type == :unset
32
- @event_types ||= EventTypeList.new self
30
+ raise ArgumentError, 'type cannot be nil'
31
+ end
32
+ if type == :unset
33
+ @event_types ||= EventTypeList.new self
33
34
  else
34
- EventTypeContext.new(self, type)
35
+ EventTypeContext.new(self, type)
35
36
  end
36
37
  end
37
38
 
@@ -42,11 +43,12 @@ module Twilio
42
43
  # @return [Twilio::REST::Events::V1::SchemaList]
43
44
  def schemas(id=:unset)
44
45
  if id.nil?
45
- raise ArgumentError, 'id cannot be nil'
46
- elsif id == :unset
47
- @schemas ||= SchemaList.new self
46
+ raise ArgumentError, 'id cannot be nil'
47
+ end
48
+ if id == :unset
49
+ @schemas ||= SchemaList.new self
48
50
  else
49
- SchemaContext.new(self, id)
51
+ SchemaContext.new(self, id)
50
52
  end
51
53
  end
52
54
 
@@ -56,11 +58,12 @@ module Twilio
56
58
  # @return [Twilio::REST::Events::V1::SinkList]
57
59
  def sinks(sid=:unset)
58
60
  if sid.nil?
59
- raise ArgumentError, 'sid cannot be nil'
60
- elsif sid == :unset
61
- @sinks ||= SinkList.new self
61
+ raise ArgumentError, 'sid cannot be nil'
62
+ end
63
+ if sid == :unset
64
+ @sinks ||= SinkList.new self
62
65
  else
63
- SinkContext.new(self, sid)
66
+ SinkContext.new(self, sid)
64
67
  end
65
68
  end
66
69
 
@@ -71,11 +74,12 @@ module Twilio
71
74
  # @return [Twilio::REST::Events::V1::SubscriptionList]
72
75
  def subscriptions(sid=:unset)
73
76
  if sid.nil?
74
- raise ArgumentError, 'sid cannot be nil'
75
- elsif sid == :unset
76
- @subscriptions ||= SubscriptionList.new self
77
+ raise ArgumentError, 'sid cannot be nil'
78
+ end
79
+ if sid == :unset
80
+ @subscriptions ||= SubscriptionList.new self
77
81
  else
78
- SubscriptionContext.new(self, sid)
82
+ SubscriptionContext.new(self, sid)
79
83
  end
80
84
  end
81
85
 
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Events < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class EventTypeList < ListResource
16
16
  ##
17
17
  # Initialize the EventTypeList
@@ -113,7 +113,7 @@ module Twilio
113
113
  end
114
114
 
115
115
  ##
116
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
116
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
117
117
  class EventTypePage < Page
118
118
  ##
119
119
  # Initialize the EventTypePage
@@ -144,7 +144,7 @@ module Twilio
144
144
  end
145
145
 
146
146
  ##
147
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
147
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
148
148
  class EventTypeContext < InstanceContext
149
149
  ##
150
150
  # Initialize the EventTypeContext
@@ -184,7 +184,7 @@ module Twilio
184
184
  end
185
185
 
186
186
  ##
187
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
187
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
188
188
  class EventTypeInstance < InstanceResource
189
189
  ##
190
190
  # Initialize the EventTypeInstance