twilio-ruby 5.45.1 → 5.49.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 (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
@@ -77,7 +77,7 @@ module Twilio
77
77
  # can be stored or obfuscated based on privacy settings
78
78
  # @param [Boolean] smart_encoded Whether to detect Unicode characters that have a
79
79
  # similar GSM-7 character and replace them. Can be: `true` or `false`.
80
- # @param [String] persistent_action Rich actions for Channels Messages.
80
+ # @param [Array[String]] persistent_action Rich actions for Channels Messages.
81
81
  # @param [String] from A Twilio phone number in
82
82
  # {E.164}[https://www.twilio.com/docs/glossary/what-e164] format, an {alphanumeric
83
83
  # sender
@@ -99,10 +99,10 @@ module Twilio
99
99
  # delivery.
100
100
  # @param [String] body The text of the message you want to send. Can be up to
101
101
  # 1,600 characters in length.
102
- # @param [String] media_url The URL of the media to send with the message. The
103
- # media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on
104
- # the recipient's device. The media size limit is 5MB for supported file types
105
- # (JPEG, PNG, GIF) and 500KB for {other
102
+ # @param [Array[String]] media_url The URL of the media to send with the message.
103
+ # The media can be of type `gif`, `png`, and `jpeg` and will be formatted
104
+ # correctly on the recipient's device. The media size limit is 5MB for supported
105
+ # file types (JPEG, PNG, GIF) and 500KB for {other
106
106
  # types}[https://www.twilio.com/docs/sms/accepted-mime-types] of accepted media.
107
107
  # To send more than one image in the message body, provide multiple `media_url`
108
108
  # parameters in the POST request. You can include up to 10 `media_url` parameters
@@ -110,7 +110,8 @@ module Twilio
110
110
  ##
111
111
  # Create the DomainInstance
112
112
  # @param [String] domain_name The unique address you reserve on Twilio to which
113
- # you route your SIP traffic. Domain names can contain letters, digits, and "-".
113
+ # you route your SIP traffic. Domain names can contain letters, digits, and "-"
114
+ # and must end with `sip.twilio.com`.
114
115
  # @param [String] friendly_name A descriptive string that you created to describe
115
116
  # the resource. It can be up to 64 characters long.
116
117
  # @param [String] voice_url The URL we should when the domain receives a call.
@@ -248,7 +249,8 @@ module Twilio
248
249
  # with the domain to receive calls. Can be `true` or `false`. `true` allows SIP
249
250
  # Endpoints to register with the domain to receive calls, `false` does not.
250
251
  # @param [String] domain_name The unique address you reserve on Twilio to which
251
- # you route your SIP traffic. Domain names can contain letters, digits, and "-".
252
+ # you route your SIP traffic. Domain names can contain letters, digits, and "-"
253
+ # and must end with `sip.twilio.com`.
252
254
  # @param [Boolean] emergency_calling_enabled Whether emergency calling is enabled
253
255
  # for the domain. If enabled, allows emergency calls on the domain from phone
254
256
  # numbers with validated addresses.
@@ -576,7 +578,8 @@ module Twilio
576
578
  # with the domain to receive calls. Can be `true` or `false`. `true` allows SIP
577
579
  # Endpoints to register with the domain to receive calls, `false` does not.
578
580
  # @param [String] domain_name The unique address you reserve on Twilio to which
579
- # you route your SIP traffic. Domain names can contain letters, digits, and "-".
581
+ # you route your SIP traffic. Domain names can contain letters, digits, and "-"
582
+ # and must end with `sip.twilio.com`.
580
583
  # @param [Boolean] emergency_calling_enabled Whether emergency calling is enabled
581
584
  # for the domain. If enabled, allows emergency calls on the domain from phone
582
585
  # numbers with validated addresses.
@@ -119,7 +119,7 @@ module Twilio
119
119
  end
120
120
 
121
121
  ##
122
- # @return [String] An array representing the ephemeral credentials
122
+ # @return [Array[String]] An array representing the ephemeral credentials
123
123
  def ice_servers
124
124
  @properties['ice_servers']
125
125
  end
@@ -26,11 +26,12 @@ module Twilio
26
26
  # @return [Twilio::REST::Autopilot::V1::AssistantList]
27
27
  def assistants(sid=:unset)
28
28
  if sid.nil?
29
- raise ArgumentError, 'sid cannot be nil'
30
- elsif sid == :unset
31
- @assistants ||= AssistantList.new self
29
+ raise ArgumentError, 'sid cannot be nil'
30
+ end
31
+ if sid == :unset
32
+ @assistants ||= AssistantList.new self
32
33
  else
33
- AssistantContext.new(self, sid)
34
+ AssistantContext.new(self, sid)
34
35
  end
35
36
  end
36
37
 
@@ -29,7 +29,8 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] resource_type The type of communication – Messages, Calls
32
+ # @param [String] resource_type The type of communication – Messages, Calls,
33
+ # Conferences, and Participants
33
34
  # @return [Twilio::REST::Bulkexports::V1::ExportInstance] if resource_type was passed.
34
35
  # @return [Twilio::REST::Bulkexports::V1::ExportList]
35
36
  def exports(resource_type=:unset)
@@ -37,7 +38,8 @@ module Twilio
37
38
  end
38
39
 
39
40
  ##
40
- # @param [String] resource_type The type of communication – Messages, Calls
41
+ # @param [String] resource_type The type of communication – Messages, Calls,
42
+ # Conferences, and Participants
41
43
  # @return [Twilio::REST::Bulkexports::V1::ExportConfigurationInstance] if resource_type was passed.
42
44
  # @return [Twilio::REST::Bulkexports::V1::ExportConfigurationList]
43
45
  def export_configuration(resource_type=:unset)
@@ -20,30 +20,34 @@ module Twilio
20
20
  end
21
21
 
22
22
  ##
23
- # @param [String] resource_type The type of communication – Messages, Calls
23
+ # @param [String] resource_type The type of communication – Messages, Calls,
24
+ # Conferences, and Participants
24
25
  # @return [Twilio::REST::Bulkexports::V1::ExportContext] if resource_type was passed.
25
26
  # @return [Twilio::REST::Bulkexports::V1::ExportList]
26
27
  def exports(resource_type=:unset)
27
28
  if resource_type.nil?
28
- raise ArgumentError, 'resource_type cannot be nil'
29
- elsif resource_type == :unset
30
- @exports ||= ExportList.new self
29
+ raise ArgumentError, 'resource_type cannot be nil'
30
+ end
31
+ if resource_type == :unset
32
+ @exports ||= ExportList.new self
31
33
  else
32
- ExportContext.new(self, resource_type)
34
+ ExportContext.new(self, resource_type)
33
35
  end
34
36
  end
35
37
 
36
38
  ##
37
- # @param [String] resource_type The type of communication – Messages, Calls
39
+ # @param [String] resource_type The type of communication – Messages, Calls,
40
+ # Conferences, and Participants
38
41
  # @return [Twilio::REST::Bulkexports::V1::ExportConfigurationContext] if resource_type was passed.
39
42
  # @return [Twilio::REST::Bulkexports::V1::ExportConfigurationList]
40
43
  def export_configuration(resource_type=:unset)
41
44
  if resource_type.nil?
42
- raise ArgumentError, 'resource_type cannot be nil'
43
- elsif resource_type == :unset
44
- @export_configuration ||= ExportConfigurationList.new self
45
+ raise ArgumentError, 'resource_type cannot be nil'
46
+ end
47
+ if resource_type == :unset
48
+ @export_configuration ||= ExportConfigurationList.new self
45
49
  else
46
- ExportConfigurationContext.new(self, resource_type)
50
+ ExportConfigurationContext.new(self, resource_type)
47
51
  end
48
52
  end
49
53
 
@@ -29,7 +29,8 @@ module Twilio
29
29
 
30
30
  ##
31
31
  # Access the jobs
32
- # @param [String] job_sid The job_sid
32
+ # @param [String] job_sid The unique string that that we created to identify the
33
+ # Bulk Export job
33
34
  # @return [JobList]
34
35
  # @return [JobContext] if job_sid was passed.
35
36
  def jobs(job_sid=:unset)
@@ -86,7 +87,8 @@ module Twilio
86
87
  ##
87
88
  # Initialize the ExportContext
88
89
  # @param [Version] version Version that contains the resource
89
- # @param [String] resource_type The type of communication – Messages, Calls
90
+ # @param [String] resource_type The type of communication – Messages, Calls,
91
+ # Conferences, and Participants
90
92
  # @return [ExportContext] ExportContext
91
93
  def initialize(version, resource_type)
92
94
  super(version)
@@ -161,7 +163,8 @@ module Twilio
161
163
  # Initialize the ExportInstance
162
164
  # @param [Version] version Version that contains the resource
163
165
  # @param [Hash] payload payload that contains response from Twilio
164
- # @param [String] resource_type The type of communication – Messages, Calls
166
+ # @param [String] resource_type The type of communication – Messages, Calls,
167
+ # Conferences, and Participants
165
168
  # @return [ExportInstance] ExportInstance
166
169
  def initialize(version, payload, resource_type: nil)
167
170
  super(version)
@@ -190,7 +193,7 @@ module Twilio
190
193
  end
191
194
 
192
195
  ##
193
- # @return [String] The type of communication – Messages, Calls
196
+ # @return [String] The type of communication – Messages, Calls, Conferences, and Participants
194
197
  def resource_type
195
198
  @properties['resource_type']
196
199
  end
@@ -17,7 +17,8 @@ module Twilio
17
17
  ##
18
18
  # Initialize the DayList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] resource_type The type of communication – Messages, Calls
20
+ # @param [String] resource_type The type of communication – Messages, Calls,
21
+ # Conferences, and Participants
21
22
  # @return [DayList] DayList
22
23
  def initialize(version, resource_type: nil)
23
24
  super(version)
@@ -151,7 +152,8 @@ module Twilio
151
152
  ##
152
153
  # Initialize the DayContext
153
154
  # @param [Version] version Version that contains the resource
154
- # @param [String] resource_type The type of communication – Messages, Calls
155
+ # @param [String] resource_type The type of communication – Messages, Calls,
156
+ # Conferences, and Participants
155
157
  # @param [String] day The ISO 8601 format date of the resources in the file, for a
156
158
  # UTC day
157
159
  # @return [DayContext] DayContext
@@ -194,7 +196,8 @@ module Twilio
194
196
  # Initialize the DayInstance
195
197
  # @param [Version] version Version that contains the resource
196
198
  # @param [Hash] payload payload that contains response from Twilio
197
- # @param [String] resource_type The type of communication – Messages, Calls
199
+ # @param [String] resource_type The type of communication – Messages, Calls,
200
+ # Conferences, and Participants
198
201
  # @param [String] day The ISO 8601 format date of the resources in the file, for a
199
202
  # UTC day
200
203
  # @return [DayInstance] DayInstance
@@ -258,7 +261,7 @@ module Twilio
258
261
  end
259
262
 
260
263
  ##
261
- # @return [String] The type of communication – Messages, Calls
264
+ # @return [String] The type of communication – Messages, Calls, Conferences, and Participants
262
265
  def resource_type
263
266
  @properties['resource_type']
264
267
  end
@@ -17,7 +17,8 @@ module Twilio
17
17
  ##
18
18
  # Initialize the ExportCustomJobList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] resource_type The type of communication – Messages, Calls
20
+ # @param [String] resource_type The type of communication – Messages, Calls,
21
+ # Conferences, and Participants
21
22
  # @return [ExportCustomJobList] ExportCustomJobList
22
23
  def initialize(version, resource_type: nil)
23
24
  super(version)
@@ -184,7 +185,8 @@ module Twilio
184
185
  # Initialize the ExportCustomJobInstance
185
186
  # @param [Version] version Version that contains the resource
186
187
  # @param [Hash] payload payload that contains response from Twilio
187
- # @param [String] resource_type The type of communication – Messages, Calls
188
+ # @param [String] resource_type The type of communication – Messages, Calls,
189
+ # Conferences, and Participants
188
190
  # @return [ExportCustomJobInstance] ExportCustomJobInstance
189
191
  def initialize(version, payload, resource_type: nil)
190
192
  super(version)
@@ -210,7 +212,7 @@ module Twilio
210
212
  end
211
213
 
212
214
  ##
213
- # @return [String] The type of communication – Messages, Calls
215
+ # @return [String] The type of communication – Messages, Calls, Conferences, and Participants
214
216
  def resource_type
215
217
  @properties['resource_type']
216
218
  end
@@ -69,7 +69,8 @@ module Twilio
69
69
  ##
70
70
  # Initialize the JobContext
71
71
  # @param [Version] version Version that contains the resource
72
- # @param [String] job_sid The job_sid
72
+ # @param [String] job_sid The unique string that that we created to identify the
73
+ # Bulk Export job
73
74
  # @return [JobContext] JobContext
74
75
  def initialize(version, job_sid)
75
76
  super(version)
@@ -117,7 +118,8 @@ module Twilio
117
118
  # Initialize the JobInstance
118
119
  # @param [Version] version Version that contains the resource
119
120
  # @param [Hash] payload payload that contains response from Twilio
120
- # @param [String] job_sid The job_sid
121
+ # @param [String] job_sid The unique string that that we created to identify the
122
+ # Bulk Export job
121
123
  # @return [JobInstance] JobInstance
122
124
  def initialize(version, payload, job_sid: nil)
123
125
  super(version)
@@ -153,7 +155,7 @@ module Twilio
153
155
  end
154
156
 
155
157
  ##
156
- # @return [String] The type of communication – Messages, Calls
158
+ # @return [String] The type of communication – Messages, Calls, Conferences, and Participants
157
159
  def resource_type
158
160
  @properties['resource_type']
159
161
  end
@@ -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
@@ -26,11 +26,12 @@ module Twilio
26
26
  # @return [Twilio::REST::Chat::V1::CredentialList]
27
27
  def credentials(sid=:unset)
28
28
  if sid.nil?
29
- raise ArgumentError, 'sid cannot be nil'
30
- elsif sid == :unset
31
- @credentials ||= CredentialList.new self
29
+ raise ArgumentError, 'sid cannot be nil'
30
+ end
31
+ if sid == :unset
32
+ @credentials ||= CredentialList.new self
32
33
  else
33
- CredentialContext.new(self, sid)
34
+ CredentialContext.new(self, sid)
34
35
  end
35
36
  end
36
37
 
@@ -41,11 +42,12 @@ module Twilio
41
42
  # @return [Twilio::REST::Chat::V1::ServiceList]
42
43
  def services(sid=:unset)
43
44
  if sid.nil?
44
- raise ArgumentError, 'sid cannot be nil'
45
- elsif sid == :unset
46
- @services ||= ServiceList.new self
45
+ raise ArgumentError, 'sid cannot be nil'
46
+ end
47
+ if sid == :unset
48
+ @services ||= ServiceList.new self
47
49
  else
48
- ServiceContext.new(self, sid)
50
+ ServiceContext.new(self, sid)
49
51
  end
50
52
  end
51
53
 
@@ -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