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
@@ -11,8 +11,6 @@ module Twilio
11
11
  class Sync < Domain
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
- ##
15
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
14
  class SyncStreamList < ListResource
17
15
  ##
18
16
  # Initialize the SyncStreamList
@@ -35,11 +33,9 @@ module Twilio
35
33
  # identifies the resource. This value must be unique within its Service and it can
36
34
  # be up to 320 characters long. The `unique_name` value can be used as an
37
35
  # alternative to the `sid` in the URL path to address the resource.
38
- # @param [String] ttl How long, in seconds, before the Stream expires and is
39
- # deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
40
- # default value is `0`, which means the Stream does not expire. The Stream will be
41
- # deleted automatically after it expires, but there can be a delay between the
42
- # expiration time and the resources's deletion.
36
+ # @param [String] ttl How long, {in
37
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
38
+ # the Stream expires and is deleted (time-to-live).
43
39
  # @return [SyncStreamInstance] Created SyncStreamInstance
44
40
  def create(unique_name: :unset, ttl: :unset)
45
41
  data = Twilio::Values.of({'UniqueName' => unique_name, 'Ttl' => ttl, })
@@ -53,9 +49,6 @@ module Twilio
53
49
  # Lists SyncStreamInstance records from the API as a list.
54
50
  # Unlike stream(), this operation is eager and will load `limit` records into
55
51
  # memory before returning.
56
- # @param [sync_stream.HideExpiredType] hide_expired The default list of Sync
57
- # Streams will show both active and expired items. It is possible to filter only
58
- # the active ones by hiding the expired ones.
59
52
  # @param [Integer] limit Upper limit for the number of records to return. stream()
60
53
  # guarantees to never return more than limit. Default is no limit
61
54
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -63,17 +56,14 @@ module Twilio
63
56
  # but a limit is defined, stream() will attempt to read the limit with the most
64
57
  # efficient page size, i.e. min(limit, 1000)
65
58
  # @return [Array] Array of up to limit results
66
- def list(hide_expired: :unset, limit: nil, page_size: nil)
67
- self.stream(hide_expired: hide_expired, limit: limit, page_size: page_size).entries
59
+ def list(limit: nil, page_size: nil)
60
+ self.stream(limit: limit, page_size: page_size).entries
68
61
  end
69
62
 
70
63
  ##
71
64
  # Streams SyncStreamInstance records from the API as an Enumerable.
72
65
  # This operation lazily loads records as efficiently as possible until the limit
73
66
  # is reached.
74
- # @param [sync_stream.HideExpiredType] hide_expired The default list of Sync
75
- # Streams will show both active and expired items. It is possible to filter only
76
- # the active ones by hiding the expired ones.
77
67
  # @param [Integer] limit Upper limit for the number of records to return. stream()
78
68
  # guarantees to never return more than limit. Default is no limit.
79
69
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -81,10 +71,10 @@ module Twilio
81
71
  # but a limit is defined, stream() will attempt to read the limit with the most
82
72
  # efficient page size, i.e. min(limit, 1000)
83
73
  # @return [Enumerable] Enumerable that will yield up to limit results
84
- def stream(hide_expired: :unset, limit: nil, page_size: nil)
74
+ def stream(limit: nil, page_size: nil)
85
75
  limits = @version.read_limits(limit, page_size)
86
76
 
87
- page = self.page(hide_expired: hide_expired, page_size: limits[:page_size], )
77
+ page = self.page(page_size: limits[:page_size], )
88
78
 
89
79
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
90
80
  end
@@ -106,16 +96,12 @@ module Twilio
106
96
  ##
107
97
  # Retrieve a single page of SyncStreamInstance records from the API.
108
98
  # Request is executed immediately.
109
- # @param [sync_stream.HideExpiredType] hide_expired The default list of Sync
110
- # Streams will show both active and expired items. It is possible to filter only
111
- # the active ones by hiding the expired ones.
112
99
  # @param [String] page_token PageToken provided by the API
113
100
  # @param [Integer] page_number Page Number, this value is simply for client state
114
101
  # @param [Integer] page_size Number of records to return, defaults to 50
115
102
  # @return [Page] Page of SyncStreamInstance
116
- def page(hide_expired: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
103
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
117
104
  params = Twilio::Values.of({
118
- 'HideExpired' => hide_expired,
119
105
  'PageToken' => page_token,
120
106
  'Page' => page_number,
121
107
  'PageSize' => page_size,
@@ -146,8 +132,6 @@ module Twilio
146
132
  end
147
133
  end
148
134
 
149
- ##
150
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
151
135
  class SyncStreamPage < Page
152
136
  ##
153
137
  # Initialize the SyncStreamPage
@@ -177,8 +161,6 @@ module Twilio
177
161
  end
178
162
  end
179
163
 
180
- ##
181
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
182
164
  class SyncStreamContext < InstanceContext
183
165
  ##
184
166
  # Initialize the SyncStreamContext
@@ -222,11 +204,9 @@ module Twilio
222
204
 
223
205
  ##
224
206
  # Update the SyncStreamInstance
225
- # @param [String] ttl How long, in seconds, before the Stream expires and is
226
- # deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
227
- # default value is `0`, which means the Stream does not expire. The Stream will be
228
- # deleted automatically after it expires, but there can be a delay between the
229
- # expiration time and the resources's deletion.
207
+ # @param [String] ttl How long, {in
208
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
209
+ # the Stream expires and is deleted (time-to-live).
230
210
  # @return [SyncStreamInstance] Updated SyncStreamInstance
231
211
  def update(ttl: :unset)
232
212
  data = Twilio::Values.of({'Ttl' => ttl, })
@@ -272,8 +252,6 @@ module Twilio
272
252
  end
273
253
  end
274
254
 
275
- ##
276
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
277
255
  class SyncStreamInstance < InstanceResource
278
256
  ##
279
257
  # Initialize the SyncStreamInstance
@@ -393,11 +371,9 @@ module Twilio
393
371
 
394
372
  ##
395
373
  # Update the SyncStreamInstance
396
- # @param [String] ttl How long, in seconds, before the Stream expires and is
397
- # deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
398
- # default value is `0`, which means the Stream does not expire. The Stream will be
399
- # deleted automatically after it expires, but there can be a delay between the
400
- # expiration time and the resources's deletion.
374
+ # @param [String] ttl How long, {in
375
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
376
+ # the Stream expires and is deleted (time-to-live).
401
377
  # @return [SyncStreamInstance] Updated SyncStreamInstance
402
378
  def update(ttl: :unset)
403
379
  context.update(ttl: ttl, )
@@ -12,8 +12,6 @@ module Twilio
12
12
  class V1 < Version
13
13
  class ServiceContext < InstanceContext
14
14
  class SyncStreamContext < InstanceContext
15
- ##
16
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
15
  class StreamMessageList < ListResource
18
16
  ##
19
17
  # Initialize the StreamMessageList
@@ -35,7 +33,7 @@ module Twilio
35
33
  ##
36
34
  # Create the StreamMessageInstance
37
35
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
38
- # object that makes up the Stream Message body. Can be up to 4KB in length.
36
+ # object that makes up the Stream Message body. Can be up to 4 KiB in length.
39
37
  # @return [StreamMessageInstance] Created StreamMessageInstance
40
38
  def create(data: nil)
41
39
  data = Twilio::Values.of({'Data' => Twilio.serialize_object(data), })
@@ -57,8 +55,6 @@ module Twilio
57
55
  end
58
56
  end
59
57
 
60
- ##
61
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
62
58
  class StreamMessagePage < Page
63
59
  ##
64
60
  # Initialize the StreamMessagePage
@@ -93,8 +89,6 @@ module Twilio
93
89
  end
94
90
  end
95
91
 
96
- ##
97
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
98
92
  class StreamMessageInstance < InstanceResource
99
93
  ##
100
94
  # Initialize the StreamMessageInstance
@@ -24,11 +24,12 @@ module Twilio
24
24
  # @return [Twilio::REST::Taskrouter::V1::WorkspaceList]
25
25
  def workspaces(sid=:unset)
26
26
  if sid.nil?
27
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @workspaces ||= WorkspaceList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @workspaces ||= WorkspaceList.new self
30
31
  else
31
- WorkspaceContext.new(self, sid)
32
+ WorkspaceContext.new(self, sid)
32
33
  end
33
34
  end
34
35
 
@@ -31,10 +31,10 @@ module Twilio
31
31
  # memory before returning.
32
32
  # @param [String] priority The priority value of the Tasks to read. Returns the
33
33
  # list of all Tasks in the Workspace with the specified priority.
34
- # @param [String] assignment_status The `assignment_status` of the Tasks you want
35
- # to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or
36
- # `completed`. Returns all Tasks in the Workspace with the specified
37
- # `assignment_status`.
34
+ # @param [Array[String]] assignment_status The `assignment_status` of the Tasks
35
+ # you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
36
+ # `wrapping`, or `completed`. Returns all Tasks in the Workspace with the
37
+ # specified `assignment_status`.
38
38
  # @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
39
39
  # Returns the Tasks controlled by the Workflow identified by this SID.
40
40
  # @param [String] workflow_name The friendly name of the Workflow with the Tasks
@@ -86,10 +86,10 @@ module Twilio
86
86
  # is reached.
87
87
  # @param [String] priority The priority value of the Tasks to read. Returns the
88
88
  # list of all Tasks in the Workspace with the specified priority.
89
- # @param [String] assignment_status The `assignment_status` of the Tasks you want
90
- # to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or
91
- # `completed`. Returns all Tasks in the Workspace with the specified
92
- # `assignment_status`.
89
+ # @param [Array[String]] assignment_status The `assignment_status` of the Tasks
90
+ # you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
91
+ # `wrapping`, or `completed`. Returns all Tasks in the Workspace with the
92
+ # specified `assignment_status`.
93
93
  # @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
94
94
  # Returns the Tasks controlled by the Workflow identified by this SID.
95
95
  # @param [String] workflow_name The friendly name of the Workflow with the Tasks
@@ -157,10 +157,10 @@ module Twilio
157
157
  # Request is executed immediately.
158
158
  # @param [String] priority The priority value of the Tasks to read. Returns the
159
159
  # list of all Tasks in the Workspace with the specified priority.
160
- # @param [String] assignment_status The `assignment_status` of the Tasks you want
161
- # to read. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or
162
- # `completed`. Returns all Tasks in the Workspace with the specified
163
- # `assignment_status`.
160
+ # @param [Array[String]] assignment_status The `assignment_status` of the Tasks
161
+ # you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
162
+ # `wrapping`, or `completed`. Returns all Tasks in the Workspace with the
163
+ # specified `assignment_status`.
164
164
  # @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
165
165
  # Returns the Tasks controlled by the Workflow identified by this SID.
166
166
  # @param [String] workflow_name The friendly name of the Workflow with the Tasks
@@ -223,10 +223,10 @@ module Twilio
223
223
 
224
224
  ##
225
225
  # Create the TaskInstance
226
- # @param [String] timeout The amount of time in seconds the new task is allowed to
227
- # live. Can be up to a maximum of 2 weeks (1,209,600 seconds). The default value
228
- # is 24 hours (86,400 seconds). On timeout, the `task.canceled` event will fire
229
- # with description `Task TTL Exceeded`.
226
+ # @param [String] timeout The amount of time in seconds the new task can live
227
+ # before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds).
228
+ # The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled`
229
+ # event will fire with description `Task TTL Exceeded`.
230
230
  # @param [String] priority The priority to assign the new task and override the
231
231
  # default. When supplied, the new Task will have this priority unless it matches a
232
232
  # Workflow Target with a Priority set. When not supplied, the new Task will have
@@ -539,7 +539,7 @@ module Twilio
539
539
  end
540
540
 
541
541
  ##
542
- # @return [String] The amount of time in seconds that the Task is allowed to live
542
+ # @return [String] The amount of time in seconds that the Task can live before being assigned
543
543
  def timeout
544
544
  @properties['timeout']
545
545
  end
@@ -244,8 +244,8 @@ module Twilio
244
244
  # `status_callback_method` to send status information to your application.
245
245
  # @param [String] status_callback_method The HTTP method we should use to call
246
246
  # `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
247
- # @param [reservation.CallStatus] status_callback_event The call progress events
248
- # that we will send to `status_callback`. Can be: `initiated`, `ringing`,
247
+ # @param [Array[reservation.CallStatus]] status_callback_event The call progress
248
+ # events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
249
249
  # `answered`, or `completed`.
250
250
  # @param [String] timeout Timeout for call when executing a Conference
251
251
  # instruction.
@@ -282,7 +282,7 @@ module Twilio
282
282
  # @param [String] conference_status_callback_method The HTTP method we should use
283
283
  # to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
284
284
  # `POST`.
285
- # @param [reservation.ConferenceEvent] conference_status_callback_event The
285
+ # @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
286
286
  # conference status events that we will send to `conference_status_callback`. Can
287
287
  # be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
288
288
  # @param [String] conference_record Whether to record the conference the
@@ -310,8 +310,8 @@ module Twilio
310
310
  # `br1`, `au1`, or `jp1`.
311
311
  # @param [String] sip_auth_username The SIP username used for authentication.
312
312
  # @param [String] sip_auth_password The SIP password for authentication.
313
- # @param [String] dequeue_status_callback_event The Call progress events sent via
314
- # webhooks as a result of a Dequeue instruction.
313
+ # @param [Array[String]] dequeue_status_callback_event The Call progress events
314
+ # sent via webhooks as a result of a Dequeue instruction.
315
315
  # @param [String] post_work_activity_sid The new worker activity SID after
316
316
  # executing a Conference instruction.
317
317
  # @param [reservation.SupervisorMode] supervisor_mode The Supervisor mode when
@@ -584,8 +584,8 @@ module Twilio
584
584
  # `status_callback_method` to send status information to your application.
585
585
  # @param [String] status_callback_method The HTTP method we should use to call
586
586
  # `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
587
- # @param [reservation.CallStatus] status_callback_event The call progress events
588
- # that we will send to `status_callback`. Can be: `initiated`, `ringing`,
587
+ # @param [Array[reservation.CallStatus]] status_callback_event The call progress
588
+ # events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
589
589
  # `answered`, or `completed`.
590
590
  # @param [String] timeout Timeout for call when executing a Conference
591
591
  # instruction.
@@ -622,7 +622,7 @@ module Twilio
622
622
  # @param [String] conference_status_callback_method The HTTP method we should use
623
623
  # to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
624
624
  # `POST`.
625
- # @param [reservation.ConferenceEvent] conference_status_callback_event The
625
+ # @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
626
626
  # conference status events that we will send to `conference_status_callback`. Can
627
627
  # be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
628
628
  # @param [String] conference_record Whether to record the conference the
@@ -650,8 +650,8 @@ module Twilio
650
650
  # `br1`, `au1`, or `jp1`.
651
651
  # @param [String] sip_auth_username The SIP username used for authentication.
652
652
  # @param [String] sip_auth_password The SIP password for authentication.
653
- # @param [String] dequeue_status_callback_event The Call progress events sent via
654
- # webhooks as a result of a Dequeue instruction.
653
+ # @param [Array[String]] dequeue_status_callback_event The Call progress events
654
+ # sent via webhooks as a result of a Dequeue instruction.
655
655
  # @param [String] post_work_activity_sid The new worker activity SID after
656
656
  # executing a Conference instruction.
657
657
  # @param [reservation.SupervisorMode] supervisor_mode The Supervisor mode when
@@ -178,7 +178,7 @@ module Twilio
178
178
  end
179
179
 
180
180
  ##
181
- # @return [Hash] The number of current Workers by Activity
181
+ # @return [Array[Hash]] The number of current Workers by Activity
182
182
  def activity_statistics
183
183
  @properties['activity_statistics']
184
184
  end
@@ -246,8 +246,8 @@ module Twilio
246
246
  # `status_callback_method` to send status information to your application.
247
247
  # @param [String] status_callback_method The HTTP method we should use to call
248
248
  # `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
249
- # @param [reservation.CallStatus] status_callback_event The call progress events
250
- # that we will send to `status_callback`. Can be: `initiated`, `ringing`,
249
+ # @param [Array[reservation.CallStatus]] status_callback_event The call progress
250
+ # events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
251
251
  # `answered`, or `completed`.
252
252
  # @param [String] timeout The timeout for a call when executing a Conference
253
253
  # instruction.
@@ -286,7 +286,7 @@ module Twilio
286
286
  # @param [String] conference_status_callback_method The HTTP method we should use
287
287
  # to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
288
288
  # `POST`.
289
- # @param [reservation.ConferenceEvent] conference_status_callback_event The
289
+ # @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
290
290
  # conference status events that we will send to `conference_status_callback`. Can
291
291
  # be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
292
292
  # @param [String] conference_record Whether to record the conference the
@@ -314,8 +314,8 @@ module Twilio
314
314
  # `br1`, `au1`, or `jp1`.
315
315
  # @param [String] sip_auth_username The SIP username used for authentication.
316
316
  # @param [String] sip_auth_password The SIP password for authentication.
317
- # @param [String] dequeue_status_callback_event The call progress events sent via
318
- # webhooks as a result of a Dequeue instruction.
317
+ # @param [Array[String]] dequeue_status_callback_event The call progress events
318
+ # sent via webhooks as a result of a Dequeue instruction.
319
319
  # @param [String] post_work_activity_sid The new worker activity SID after
320
320
  # executing a Conference instruction.
321
321
  # @param [Boolean] end_conference_on_customer_exit Whether to end the conference
@@ -584,8 +584,8 @@ module Twilio
584
584
  # `status_callback_method` to send status information to your application.
585
585
  # @param [String] status_callback_method The HTTP method we should use to call
586
586
  # `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
587
- # @param [reservation.CallStatus] status_callback_event The call progress events
588
- # that we will send to `status_callback`. Can be: `initiated`, `ringing`,
587
+ # @param [Array[reservation.CallStatus]] status_callback_event The call progress
588
+ # events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
589
589
  # `answered`, or `completed`.
590
590
  # @param [String] timeout The timeout for a call when executing a Conference
591
591
  # instruction.
@@ -624,7 +624,7 @@ module Twilio
624
624
  # @param [String] conference_status_callback_method The HTTP method we should use
625
625
  # to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
626
626
  # `POST`.
627
- # @param [reservation.ConferenceEvent] conference_status_callback_event The
627
+ # @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
628
628
  # conference status events that we will send to `conference_status_callback`. Can
629
629
  # be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
630
630
  # @param [String] conference_record Whether to record the conference the
@@ -652,8 +652,8 @@ module Twilio
652
652
  # `br1`, `au1`, or `jp1`.
653
653
  # @param [String] sip_auth_username The SIP username used for authentication.
654
654
  # @param [String] sip_auth_password The SIP password for authentication.
655
- # @param [String] dequeue_status_callback_event The call progress events sent via
656
- # webhooks as a result of a Dequeue instruction.
655
+ # @param [Array[String]] dequeue_status_callback_event The call progress events
656
+ # sent via webhooks as a result of a Dequeue instruction.
657
657
  # @param [String] post_work_activity_sid The new worker activity SID after
658
658
  # executing a Conference instruction.
659
659
  # @param [Boolean] end_conference_on_customer_exit Whether to end the conference
@@ -180,7 +180,7 @@ module Twilio
180
180
  end
181
181
 
182
182
  ##
183
- # @return [Hash] The minimum, average, maximum, and total time that Workers spent in each Activity
183
+ # @return [Array[Hash]] The minimum, average, maximum, and total time that Workers spent in each Activity
184
184
  def activity_durations
185
185
  @properties['activity_durations']
186
186
  end
@@ -149,7 +149,7 @@ module Twilio
149
149
  end
150
150
 
151
151
  ##
152
- # @return [Hash] The number of current Workers by Activity
152
+ # @return [Array[Hash]] The number of current Workers by Activity
153
153
  def activity_statistics
154
154
  @properties['activity_statistics']
155
155
  end
@@ -150,7 +150,7 @@ module Twilio
150
150
  end
151
151
 
152
152
  ##
153
- # @return [Hash] The number of current Workers by Activity
153
+ # @return [Array[Hash]] The number of current Workers by Activity
154
154
  def activity_statistics
155
155
  @properties['activity_statistics']
156
156
  end
@@ -25,11 +25,12 @@ module Twilio
25
25
  # @return [Twilio::REST::Trunking::V1::TrunkList]
26
26
  def trunks(sid=:unset)
27
27
  if sid.nil?
28
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @trunks ||= TrunkList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @trunks ||= TrunkList.new self
31
32
  else
32
- TrunkContext.new(self, sid)
33
+ TrunkContext.new(self, sid)
33
34
  end
34
35
  end
35
36
 
@@ -476,7 +476,7 @@ module Twilio
476
476
  end
477
477
 
478
478
  ##
479
- # @return [String] Reserved
479
+ # @return [Array[String]] Reserved
480
480
  def auth_type_set
481
481
  @properties['auth_type_set']
482
482
  end