twilio-ruby 5.45.0 → 5.48.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 (202) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +104 -0
  4. data/LICENSE +1 -1
  5. data/README.md +16 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
  7. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +12 -12
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +15 -15
  12. data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
  13. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
  14. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
  15. data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
  16. data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
  17. data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
  18. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
  19. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
  20. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
  21. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
  22. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
  23. data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
  24. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
  25. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
  26. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
  27. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
  28. data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
  29. data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
  30. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
  31. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
  32. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
  33. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
  34. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
  35. data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
  36. data/lib/twilio-ruby/rest/client.rb +7 -0
  37. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  39. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  40. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  41. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  42. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  43. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  44. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  46. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  47. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  48. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  49. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  50. data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -2
  51. data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -2
  52. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  53. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  54. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  55. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
  56. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  57. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  58. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  59. data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
  60. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  61. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  62. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  63. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  64. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  65. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  66. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  67. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  68. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  69. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  70. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  71. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  72. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  73. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  74. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  75. data/lib/twilio-ruby/rest/messaging.rb +8 -0
  76. data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
  77. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  78. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
  79. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
  80. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
  81. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  82. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  83. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  84. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  85. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  86. data/lib/twilio-ruby/rest/preview.rb +4 -2
  87. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
  88. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  89. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  90. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  91. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  92. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  93. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  94. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  95. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  96. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  97. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  98. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  99. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  100. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  101. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  102. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  103. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  104. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  105. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
  106. data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
  107. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  108. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  109. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  110. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  111. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
  112. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  113. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  114. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  115. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
  116. data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
  117. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
  118. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
  119. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  120. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  121. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  122. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +16 -36
  123. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  124. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -25
  125. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +24 -43
  126. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  127. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -25
  128. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +25 -44
  129. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
  130. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -23
  131. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
  132. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
  133. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  137. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  138. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  139. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  140. data/lib/twilio-ruby/rest/trusthub.rb +100 -0
  141. data/lib/twilio-ruby/rest/trusthub/v1.rb +139 -0
  142. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb +523 -0
  143. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb +359 -0
  144. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +330 -0
  145. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb +328 -0
  146. data/lib/twilio-ruby/rest/trusthub/v1/end_user.rb +356 -0
  147. data/lib/twilio-ruby/rest/trusthub/v1/end_user_type.rb +271 -0
  148. data/lib/twilio-ruby/rest/trusthub/v1/policies.rb +262 -0
  149. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document.rb +369 -0
  150. data/lib/twilio-ruby/rest/trusthub/v1/supporting_document_type.rb +271 -0
  151. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +523 -0
  152. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment.rb +359 -0
  153. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +330 -0
  154. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_evaluations.rb +328 -0
  155. data/lib/twilio-ruby/rest/verify.rb +9 -0
  156. data/lib/twilio-ruby/rest/verify/v2.rb +15 -0
  157. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
  158. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  159. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  160. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +329 -0
  161. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  162. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  163. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  164. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  165. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  166. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  167. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  168. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  169. data/lib/twilio-ruby/twiml/voice_response.rb +17 -8
  170. data/lib/twilio-ruby/version.rb +1 -1
  171. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  172. data/spec/integration/api/v2010/account/incoming_phone_number_spec.rb +4 -16
  173. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  174. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  175. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  176. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  177. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  178. data/spec/integration/events/v1/sink_spec.rb +14 -0
  179. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  180. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  181. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  182. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  183. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  184. data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
  185. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  186. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment_spec.rb +192 -0
  187. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_entity_assignments_spec.rb +186 -0
  188. data/spec/integration/trusthub/v1/customer_profiles/customer_profiles_evaluations_spec.rb +615 -0
  189. data/spec/integration/trusthub/v1/customer_profiles_spec.rb +255 -0
  190. data/spec/integration/trusthub/v1/end_user_spec.rb +247 -0
  191. data/spec/integration/trusthub/v1/end_user_type_spec.rb +176 -0
  192. data/spec/integration/trusthub/v1/policies_spec.rb +252 -0
  193. data/spec/integration/trusthub/v1/supporting_document_spec.rb +235 -0
  194. data/spec/integration/trusthub/v1/supporting_document_type_spec.rb +159 -0
  195. data/spec/integration/trusthub/v1/trust_products/trust_products_channel_endpoint_assignment_spec.rb +192 -0
  196. data/spec/integration/trusthub/v1/trust_products/trust_products_entity_assignments_spec.rb +186 -0
  197. data/spec/integration/trusthub/v1/trust_products/trust_products_evaluations_spec.rb +615 -0
  198. data/spec/integration/trusthub/v1/trust_products_spec.rb +255 -0
  199. data/spec/integration/verify/v2/verification_attempt_spec.rb +146 -0
  200. data/spec/integration/video/v1/room_spec.rb +5 -0
  201. data/spec/twiml/voice_response_spec.rb +1 -1
  202. metadata +49 -2
@@ -155,20 +155,21 @@ module Twilio
155
155
  # Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
156
156
  # for more info. Please, be aware that either video_layout or audio_sources have
157
157
  # to be provided to get a valid creation request
158
- # @param [String] audio_sources An array of track names from the same group room
159
- # to merge into the new composition. Can include zero or more track names. The new
160
- # composition includes all audio sources specified in `audio_sources` except for
161
- # those specified in `audio_sources_excluded`. The track names in this parameter
162
- # can include an asterisk as a wild card character, which will match zero or more
163
- # characters in a track name. For example, `student*` includes `student` as well
164
- # as `studentTeam`. Please, be aware that either video_layout or audio_sources
165
- # have to be provided to get a valid creation request
166
- # @param [String] audio_sources_excluded An array of track names to exclude. The
167
- # new composition includes all audio sources specified in `audio_sources` except
168
- # for those specified in `audio_sources_excluded`. The track names in this
158
+ # @param [Array[String]] audio_sources An array of track names from the same group
159
+ # room to merge into the new composition. Can include zero or more track names.
160
+ # The new composition includes all audio sources specified in `audio_sources`
161
+ # except for those specified in `audio_sources_excluded`. The track names in this
169
162
  # parameter can include an asterisk as a wild card character, which will match
170
- # zero or more characters in a track name. For example, `student*` excludes
171
- # `student` as well as `studentTeam`. This parameter can also be empty.
163
+ # zero or more characters in a track name. For example, `student*` includes
164
+ # `student` as well as `studentTeam`. Please, be aware that either video_layout or
165
+ # audio_sources have to be provided to get a valid creation request
166
+ # @param [Array[String]] audio_sources_excluded An array of track names to
167
+ # exclude. The new composition includes all audio sources specified in
168
+ # `audio_sources` except for those specified in `audio_sources_excluded`. The
169
+ # track names in this parameter can include an asterisk as a wild card character,
170
+ # which will match zero or more characters in a track name. For example,
171
+ # `student*` excludes `student` as well as `studentTeam`. This parameter can also
172
+ # be empty.
172
173
  # @param [String] resolution A string that describes the columns (width) and rows
173
174
  # (height) of the generated composed video in pixels. Defaults to `640x480`.
174
175
  # The string's format is `{width}x{height}` where:
@@ -404,13 +405,13 @@ module Twilio
404
405
  end
405
406
 
406
407
  ##
407
- # @return [String] The array of track names to include in the composition
408
+ # @return [Array[String]] The array of track names to include in the composition
408
409
  def audio_sources
409
410
  @properties['audio_sources']
410
411
  end
411
412
 
412
413
  ##
413
- # @return [String] The array of track names to exclude from the composition
414
+ # @return [Array[String]] The array of track names to exclude from the composition
414
415
  def audio_sources_excluded
415
416
  @properties['audio_sources_excluded']
416
417
  end
@@ -167,17 +167,17 @@ module Twilio
167
167
  # composition hook in terms of regions. See {Specifying Video
168
168
  # Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
169
169
  # for more info.
170
- # @param [String] audio_sources An array of track names from the same group room
171
- # to merge into the compositions created by the composition hook. Can include zero
172
- # or more track names. A composition triggered by the composition hook includes
173
- # all audio sources specified in `audio_sources` except those specified in
174
- # `audio_sources_excluded`. The track names in this parameter can include an
170
+ # @param [Array[String]] audio_sources An array of track names from the same group
171
+ # room to merge into the compositions created by the composition hook. Can include
172
+ # zero or more track names. A composition triggered by the composition hook
173
+ # includes all audio sources specified in `audio_sources` except those specified
174
+ # in `audio_sources_excluded`. The track names in this parameter can include an
175
175
  # asterisk as a wild card character, which matches zero or more characters in a
176
176
  # track name. For example, `student*` includes tracks named `student` as well as
177
177
  # `studentTeam`.
178
- # @param [String] audio_sources_excluded An array of track names to exclude. A
179
- # composition triggered by the composition hook includes all audio sources
180
- # specified in `audio_sources` except for those specified in
178
+ # @param [Array[String]] audio_sources_excluded An array of track names to
179
+ # exclude. A composition triggered by the composition hook includes all audio
180
+ # sources specified in `audio_sources` except for those specified in
181
181
  # `audio_sources_excluded`. The track names in this parameter can include an
182
182
  # asterisk as a wild card character, which matches zero or more characters in a
183
183
  # track name. For example, `student*` excludes `student` as well as `studentTeam`.
@@ -323,17 +323,17 @@ module Twilio
323
323
  # composition hook in terms of regions. See {Specifying Video
324
324
  # Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
325
325
  # for more info.
326
- # @param [String] audio_sources An array of track names from the same group room
327
- # to merge into the compositions created by the composition hook. Can include zero
328
- # or more track names. A composition triggered by the composition hook includes
329
- # all audio sources specified in `audio_sources` except those specified in
330
- # `audio_sources_excluded`. The track names in this parameter can include an
326
+ # @param [Array[String]] audio_sources An array of track names from the same group
327
+ # room to merge into the compositions created by the composition hook. Can include
328
+ # zero or more track names. A composition triggered by the composition hook
329
+ # includes all audio sources specified in `audio_sources` except those specified
330
+ # in `audio_sources_excluded`. The track names in this parameter can include an
331
331
  # asterisk as a wild card character, which matches zero or more characters in a
332
332
  # track name. For example, `student*` includes tracks named `student` as well as
333
333
  # `studentTeam`.
334
- # @param [String] audio_sources_excluded An array of track names to exclude. A
335
- # composition triggered by the composition hook includes all audio sources
336
- # specified in `audio_sources` except for those specified in
334
+ # @param [Array[String]] audio_sources_excluded An array of track names to
335
+ # exclude. A composition triggered by the composition hook includes all audio
336
+ # sources specified in `audio_sources` except for those specified in
337
337
  # `audio_sources_excluded`. The track names in this parameter can include an
338
338
  # asterisk as a wild card character, which matches zero or more characters in a
339
339
  # track name. For example, `student*` excludes `student` as well as `studentTeam`.
@@ -496,13 +496,13 @@ module Twilio
496
496
  end
497
497
 
498
498
  ##
499
- # @return [String] The array of track names to include in the compositions created by the composition hook
499
+ # @return [Array[String]] The array of track names to include in the compositions created by the composition hook
500
500
  def audio_sources
501
501
  @properties['audio_sources']
502
502
  end
503
503
 
504
504
  ##
505
- # @return [String] The array of track names to exclude from the compositions created by the composition hook
505
+ # @return [Array[String]] The array of track names to exclude from the compositions created by the composition hook
506
506
  def audio_sources_excluded
507
507
  @properties['audio_sources_excluded']
508
508
  end
@@ -575,17 +575,17 @@ module Twilio
575
575
  # composition hook in terms of regions. See {Specifying Video
576
576
  # Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
577
577
  # for more info.
578
- # @param [String] audio_sources An array of track names from the same group room
579
- # to merge into the compositions created by the composition hook. Can include zero
580
- # or more track names. A composition triggered by the composition hook includes
581
- # all audio sources specified in `audio_sources` except those specified in
582
- # `audio_sources_excluded`. The track names in this parameter can include an
578
+ # @param [Array[String]] audio_sources An array of track names from the same group
579
+ # room to merge into the compositions created by the composition hook. Can include
580
+ # zero or more track names. A composition triggered by the composition hook
581
+ # includes all audio sources specified in `audio_sources` except those specified
582
+ # in `audio_sources_excluded`. The track names in this parameter can include an
583
583
  # asterisk as a wild card character, which matches zero or more characters in a
584
584
  # track name. For example, `student*` includes tracks named `student` as well as
585
585
  # `studentTeam`.
586
- # @param [String] audio_sources_excluded An array of track names to exclude. A
587
- # composition triggered by the composition hook includes all audio sources
588
- # specified in `audio_sources` except for those specified in
586
+ # @param [Array[String]] audio_sources_excluded An array of track names to
587
+ # exclude. A composition triggered by the composition hook includes all audio
588
+ # sources specified in `audio_sources` except for those specified in
589
589
  # `audio_sources_excluded`. The track names in this parameter can include an
590
590
  # asterisk as a wild card character, which matches zero or more characters in a
591
591
  # track name. For example, `student*` excludes `student` as well as `studentTeam`.
@@ -30,8 +30,8 @@ module Twilio
30
30
  # @param [recording.Status] status Read only the recordings that have this status.
31
31
  # Can be: `processing`, `completed`, or `deleted`.
32
32
  # @param [String] source_sid Read only the recordings that have this `source_sid`.
33
- # @param [String] grouping_sid Read only recordings with this `grouping_sid`,
34
- # which may include a `participant_sid` and/or a `room_sid`.
33
+ # @param [Array[String]] grouping_sid Read only recordings with this
34
+ # `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`.
35
35
  # @param [Time] date_created_after Read only recordings that started on or after
36
36
  # this {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] date-time with time
37
37
  # zone.
@@ -67,8 +67,8 @@ module Twilio
67
67
  # @param [recording.Status] status Read only the recordings that have this status.
68
68
  # Can be: `processing`, `completed`, or `deleted`.
69
69
  # @param [String] source_sid Read only the recordings that have this `source_sid`.
70
- # @param [String] grouping_sid Read only recordings with this `grouping_sid`,
71
- # which may include a `participant_sid` and/or a `room_sid`.
70
+ # @param [Array[String]] grouping_sid Read only recordings with this
71
+ # `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`.
72
72
  # @param [Time] date_created_after Read only recordings that started on or after
73
73
  # this {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] date-time with time
74
74
  # zone.
@@ -120,8 +120,8 @@ module Twilio
120
120
  # @param [recording.Status] status Read only the recordings that have this status.
121
121
  # Can be: `processing`, `completed`, or `deleted`.
122
122
  # @param [String] source_sid Read only the recordings that have this `source_sid`.
123
- # @param [String] grouping_sid Read only recordings with this `grouping_sid`,
124
- # which may include a `participant_sid` and/or a `room_sid`.
123
+ # @param [Array[String]] grouping_sid Read only recordings with this
124
+ # `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`.
125
125
  # @param [Time] date_created_after Read only recordings that started on or after
126
126
  # this {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] date-time with time
127
127
  # zone.
@@ -48,8 +48,8 @@ module Twilio
48
48
  # @param [Boolean] record_participants_on_connect Whether to start recording when
49
49
  # Participants connect. ***This feature is not available in `peer-to-peer`
50
50
  # rooms.***
51
- # @param [room.VideoCodec] video_codecs An array of the video codecs that are
52
- # supported when publishing a track in the room. Can be: `VP8` and `H264`.
51
+ # @param [Array[room.VideoCodec]] video_codecs An array of the video codecs that
52
+ # are supported when publishing a track in the room. Can be: `VP8` and `H264`.
53
53
  # ***This feature is not available in `peer-to-peer` rooms***
54
54
  # @param [String] media_region The region for the media server in Group Rooms.
55
55
  # Can be: one of the {available Media
@@ -357,6 +357,7 @@ module Twilio
357
357
  'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
358
358
  'type' => payload['type'],
359
359
  'max_participants' => payload['max_participants'].to_i,
360
+ 'max_concurrent_published_tracks' => payload['max_concurrent_published_tracks'] == nil ? payload['max_concurrent_published_tracks'] : payload['max_concurrent_published_tracks'].to_i,
360
361
  'record_participants_on_connect' => payload['record_participants_on_connect'],
361
362
  'video_codecs' => payload['video_codecs'],
362
363
  'media_region' => payload['media_region'],
@@ -458,6 +459,12 @@ module Twilio
458
459
  @properties['max_participants']
459
460
  end
460
461
 
462
+ ##
463
+ # @return [String] The maximum number of published tracks allowed in the room at the same time
464
+ def max_concurrent_published_tracks
465
+ @properties['max_concurrent_published_tracks']
466
+ end
467
+
461
468
  ##
462
469
  # @return [Boolean] Whether to start recording when Participants connect
463
470
  def record_participants_on_connect
@@ -465,7 +472,7 @@ module Twilio
465
472
  end
466
473
 
467
474
  ##
468
- # @return [room.VideoCodec] An array of the video codecs that are supported when publishing a track in the room
475
+ # @return [Array[room.VideoCodec]] An array of the video codecs that are supported when publishing a track in the room
469
476
  def video_codecs
470
477
  @properties['video_codecs']
471
478
  end
@@ -138,7 +138,7 @@ module Twilio
138
138
  end
139
139
 
140
140
  ##
141
- # @return [String] A collection of Subscribe Rules that describe how to include or exclude matching tracks
141
+ # @return [Array[String]] A collection of Subscribe Rules that describe how to include or exclude matching tracks
142
142
  def rules
143
143
  @properties['rules']
144
144
  end
@@ -114,7 +114,7 @@ module Twilio
114
114
  end
115
115
 
116
116
  ##
117
- # @return [String] A collection of recording Rules that describe how to include or exclude matching tracks for recording
117
+ # @return [Array[String]] A collection of recording Rules that describe how to include or exclude matching tracks for recording
118
118
  def rules
119
119
  @properties['rules']
120
120
  end
@@ -334,7 +334,7 @@ module Twilio
334
334
  end
335
335
 
336
336
  ##
337
- # @return [String] The E.164 assigned country codes(s)
337
+ # @return [Array[String]] The E.164 assigned country codes(s)
338
338
  def country_codes
339
339
  @properties['country_codes']
340
340
  end
@@ -127,9 +127,9 @@ module Twilio
127
127
  # @param [Boolean] national_roaming_enabled Whether SIMs can roam on networks
128
128
  # other than the home network (T-Mobile USA) in the United States. See {national
129
129
  # roaming}[https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming].
130
- # @param [String] international_roaming The list of services that SIMs capable of
131
- # using GPRS/3G/4G/LTE data connectivity can use outside of the United States. Can
132
- # be: `data`, `voice`, and `messaging`.
130
+ # @param [Array[String]] international_roaming The list of services that SIMs
131
+ # capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United
132
+ # States. Can be: `data`, `voice`, and `messaging`.
133
133
  # @param [String] national_roaming_data_limit The total data usage (download and
134
134
  # upload combined) in Megabytes that the Network allows during one month on
135
135
  # non-home networks in the United States. The metering period begins the day of
@@ -371,7 +371,7 @@ module Twilio
371
371
  end
372
372
 
373
373
  ##
374
- # @return [String] The services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States
374
+ # @return [Array[String]] The services that SIMs capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United States
375
375
  def international_roaming
376
376
  @properties['international_roaming']
377
377
  end
@@ -47,9 +47,12 @@ module Twilio
47
47
  # answer_on_bridge:: Preserve the ringing behavior of the inbound call until the Dialed call picks up
48
48
  # ring_tone:: Ringtone allows you to override the ringback tone that Twilio will play back to the caller while executing the Dial
49
49
  # recording_track:: To indicate which audio track should be recorded
50
+ # sequential:: Used to determine if child TwiML nouns should be dialed in order, one after the other (sequential) or dial all at once (parallel). Default is false, parallel
51
+ # refer_url:: Webhook that will receive future SIP REFER requests
52
+ # refer_method:: The HTTP method to use for the refer Webhook
50
53
  # keyword_args:: additional attributes
51
- def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, **keyword_args)
52
- dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, **keyword_args)
54
+ def dial(number: nil, action: nil, method: nil, timeout: nil, hangup_on_star: nil, time_limit: nil, caller_id: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, answer_on_bridge: nil, ring_tone: nil, recording_track: nil, sequential: nil, refer_url: nil, refer_method: nil, **keyword_args)
55
+ dial = Dial.new(number: number, action: action, method: method, timeout: timeout, hangup_on_star: hangup_on_star, time_limit: time_limit, caller_id: caller_id, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, answer_on_bridge: answer_on_bridge, ring_tone: ring_tone, recording_track: recording_track, sequential: sequential, refer_url: refer_url, refer_method: refer_method, **keyword_args)
53
56
 
54
57
  yield(dial) if block_given?
55
58
  append(dial)
@@ -336,9 +339,11 @@ module Twilio
336
339
  # connector_name:: Unique name for Stream Connector
337
340
  # url:: URL of the remote service where the Stream is routed
338
341
  # track:: Track to be streamed to remote service
342
+ # status_callback:: Status Callback URL
343
+ # status_callback_method:: Status Callback URL method
339
344
  # keyword_args:: additional attributes
340
- def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
341
- stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
345
+ def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
346
+ stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
342
347
 
343
348
  yield(stream) if block_given?
344
349
  append(stream)
@@ -425,9 +430,11 @@ module Twilio
425
430
  # connector_name:: Unique name for Stream Connector
426
431
  # url:: URL of the remote service where the Stream is routed
427
432
  # track:: Track to be streamed to remote service
433
+ # status_callback:: Status Callback URL
434
+ # status_callback_method:: Status Callback URL method
428
435
  # keyword_args:: additional attributes
429
- def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
430
- stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
436
+ def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
437
+ stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
431
438
 
432
439
  yield(stream) if block_given?
433
440
  append(stream)
@@ -1143,9 +1150,11 @@ module Twilio
1143
1150
  # connector_name:: Unique name for Stream Connector
1144
1151
  # url:: URL of the remote service where the Stream is routed
1145
1152
  # track:: Track to be streamed to remote service
1153
+ # status_callback:: Status Callback URL
1154
+ # status_callback_method:: Status Callback URL method
1146
1155
  # keyword_args:: additional attributes
1147
- def stream(name: nil, connector_name: nil, url: nil, track: nil, **keyword_args)
1148
- stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, **keyword_args)
1156
+ def stream(name: nil, connector_name: nil, url: nil, track: nil, status_callback: nil, status_callback_method: nil, **keyword_args)
1157
+ stream = Stream.new(name: name, connector_name: connector_name, url: url, track: track, status_callback: status_callback, status_callback_method: status_callback_method, **keyword_args)
1149
1158
 
1150
1159
  yield(stream) if block_given?
1151
1160
  append(stream)
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.45.0'
2
+ VERSION = '5.48.0'
3
3
  end
@@ -183,7 +183,83 @@ describe 'Conference' do
183
183
  expect(actual).to_not eq(nil)
184
184
  end
185
185
 
186
- it "receives read_full responses" do
186
+ it "receives read_next responses" do
187
+ @holodeck.mock(Twilio::Response.new(
188
+ 200,
189
+ %q[
190
+ {
191
+ "conferences": [
192
+ {
193
+ "status": "in-progress",
194
+ "region": "jp1",
195
+ "sid": "CFdddddddddddddddddddddddddddddddd",
196
+ "date_updated": "Thu, 01 Jan 2015 10:23:45 +0000",
197
+ "date_created": "Thu, 01 Jan 2015 10:23:45 +0000",
198
+ "subresource_uris": {
199
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd/Participants.json",
200
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd/Recordings.json"
201
+ },
202
+ "friendly_name": "friendly_name",
203
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd.json",
204
+ "api_version": "2010-04-01",
205
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
206
+ "reason_conference_ended": null,
207
+ "call_sid_ending_conference": null
208
+ },
209
+ {
210
+ "status": "in-progress",
211
+ "region": "unknown",
212
+ "sid": "CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
213
+ "date_updated": "Thu, 01 Jan 2015 09:23:45 +0000",
214
+ "date_created": "Thu, 01 Jan 2015 09:23:45 +0000",
215
+ "subresource_uris": {
216
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/Participants.json",
217
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/Recordings.json"
218
+ },
219
+ "friendly_name": "friendly_name",
220
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.json",
221
+ "api_version": "2010-04-01",
222
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
223
+ "reason_conference_ended": null,
224
+ "call_sid_ending_conference": null
225
+ },
226
+ {
227
+ "status": "in-progress",
228
+ "region": "us1",
229
+ "sid": "CFffffffffffffffffffffffffffffffff",
230
+ "date_updated": "Thu, 01 Jan 2015 08:23:45 +0000",
231
+ "date_created": "Thu, 01 Jan 2015 08:23:45 +0000",
232
+ "subresource_uris": {
233
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff/Participants.json",
234
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff/Recordings.json"
235
+ },
236
+ "friendly_name": "friendly_name",
237
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff.json",
238
+ "api_version": "2010-04-01",
239
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
240
+ "reason_conference_ended": null,
241
+ "call_sid_ending_conference": null
242
+ }
243
+ ],
244
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
245
+ "next_page_uri": null,
246
+ "previous_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0&PageToken=PBCFdddddddddddddddddddddddddddddddd",
247
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=1&PageToken=PACFcccccccccccccccccccccccccccccccc",
248
+ "page": 1,
249
+ "page_size": 3,
250
+ "start": 3,
251
+ "end": 5
252
+ }
253
+ ]
254
+ ))
255
+
256
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
257
+ .conferences.list()
258
+
259
+ expect(actual).to_not eq(nil)
260
+ end
261
+
262
+ it "receives read_previous responses" do
187
263
  @holodeck.mock(Twilio::Response.new(
188
264
  200,
189
265
  %q[
@@ -244,7 +320,7 @@ describe 'Conference' do
244
320
  "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
245
321
  "next_page_uri": null,
246
322
  "previous_page_uri": null,
247
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
323
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0&PageToken=PBCFdddddddddddddddddddddddddddddddd",
248
324
  "page": 0,
249
325
  "page_size": 3,
250
326
  "start": 0,
@@ -259,7 +335,7 @@ describe 'Conference' do
259
335
  expect(actual).to_not eq(nil)
260
336
  end
261
337
 
262
- it "receives read_next responses" do
338
+ it "receives read_myroom_inprogress responses" do
263
339
  @holodeck.mock(Twilio::Response.new(
264
340
  200,
265
341
  %q[
@@ -268,15 +344,15 @@ describe 'Conference' do
268
344
  {
269
345
  "status": "in-progress",
270
346
  "region": "jp1",
271
- "sid": "CFdddddddddddddddddddddddddddddddd",
272
- "date_updated": "Thu, 01 Jan 2015 10:23:45 +0000",
273
- "date_created": "Thu, 01 Jan 2015 10:23:45 +0000",
347
+ "sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
348
+ "date_updated": "Sun, 03 Jan 2021 11:23:45 +0000",
349
+ "date_created": "Sun, 03 Jan 2021 11:23:45 +0000",
274
350
  "subresource_uris": {
275
- "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd/Participants.json",
276
- "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd/Recordings.json"
351
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
352
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
277
353
  },
278
- "friendly_name": "friendly_name",
279
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFdddddddddddddddddddddddddddddddd.json",
354
+ "friendly_name": "MyRoom",
355
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
280
356
  "api_version": "2010-04-01",
281
357
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
282
358
  "reason_conference_ended": null,
@@ -284,16 +360,16 @@ describe 'Conference' do
284
360
  },
285
361
  {
286
362
  "status": "in-progress",
287
- "region": "unknown",
288
- "sid": "CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",
289
- "date_updated": "Thu, 01 Jan 2015 09:23:45 +0000",
290
- "date_created": "Thu, 01 Jan 2015 09:23:45 +0000",
363
+ "region": "us1",
364
+ "sid": "CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
365
+ "date_updated": "Sat, 02 Jan 2021 11:23:45 +0000",
366
+ "date_created": "Sat, 02 Jan 2021 11:23:45 +0000",
291
367
  "subresource_uris": {
292
- "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/Participants.json",
293
- "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee/Recordings.json"
368
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Participants.json",
369
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Recordings.json"
294
370
  },
295
- "friendly_name": "friendly_name",
296
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.json",
371
+ "friendly_name": "MyRoom",
372
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.json",
297
373
  "api_version": "2010-04-01",
298
374
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
299
375
  "reason_conference_ended": null,
@@ -301,30 +377,106 @@ describe 'Conference' do
301
377
  },
302
378
  {
303
379
  "status": "in-progress",
304
- "region": "us1",
305
- "sid": "CFffffffffffffffffffffffffffffffff",
306
- "date_updated": "Thu, 01 Jan 2015 08:23:45 +0000",
307
- "date_created": "Thu, 01 Jan 2015 08:23:45 +0000",
380
+ "region": "ie1",
381
+ "sid": "CFcccccccccccccccccccccccccccccccc",
382
+ "date_updated": "Fri, 01 Jan 2021 11:23:45 +0000",
383
+ "date_created": "Fri, 01 Jan 2021 11:23:45 +0000",
308
384
  "subresource_uris": {
309
- "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff/Participants.json",
310
- "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff/Recordings.json"
385
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Participants.json",
386
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Recordings.json"
387
+ },
388
+ "friendly_name": "MyRoom",
389
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc.json",
390
+ "api_version": "2010-04-01",
391
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
392
+ "reason_conference_ended": null,
393
+ "call_sid_ending_conference": null
394
+ }
395
+ ],
396
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?FriendlyName=MyRoom&Status=in-progress&PageSize=20&Page=0",
397
+ "next_page_uri": null,
398
+ "previous_page_uri": null,
399
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?FriendlyName=MyRoom&Status=in-progress&PageSize=20&Page=0",
400
+ "page": 0,
401
+ "page_size": 20,
402
+ "start": 0,
403
+ "end": 2
404
+ }
405
+ ]
406
+ ))
407
+
408
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
409
+ .conferences.list()
410
+
411
+ expect(actual).to_not eq(nil)
412
+ end
413
+
414
+ it "receives read_full responses" do
415
+ @holodeck.mock(Twilio::Response.new(
416
+ 200,
417
+ %q[
418
+ {
419
+ "conferences": [
420
+ {
421
+ "status": "in-progress",
422
+ "region": "jp1",
423
+ "sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
424
+ "date_updated": "Fri, 03 Jul 2020 11:23:45 +0000",
425
+ "date_created": "Fri, 03 Jul 2020 11:23:45 +0000",
426
+ "subresource_uris": {
427
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
428
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
311
429
  },
312
430
  "friendly_name": "friendly_name",
313
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFffffffffffffffffffffffffffffffff.json",
431
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
432
+ "api_version": "2010-04-01",
433
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
434
+ "reason_conference_ended": null,
435
+ "call_sid_ending_conference": null
436
+ },
437
+ {
438
+ "status": "in-progress",
439
+ "region": "de1",
440
+ "sid": "CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
441
+ "date_updated": "Thu, 02 Jul 2020 11:23:45 +0000",
442
+ "date_created": "Thu, 02 Jul 2020 11:23:45 +0000",
443
+ "subresource_uris": {
444
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Participants.json",
445
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Recordings.json"
446
+ },
447
+ "friendly_name": "MyRoom",
448
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.json",
314
449
  "api_version": "2010-04-01",
315
450
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
316
451
  "reason_conference_ended": null,
317
452
  "call_sid_ending_conference": null
453
+ },
454
+ {
455
+ "status": "completed",
456
+ "region": "br1",
457
+ "sid": "CFcccccccccccccccccccccccccccccccc",
458
+ "date_updated": "Wed, 01 Jul 2020 11:23:45 +0000",
459
+ "date_created": "Wed, 01 Jul 2020 11:23:45 +0000",
460
+ "subresource_uris": {
461
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Participants.json",
462
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Recordings.json"
463
+ },
464
+ "friendly_name": "FRIEND",
465
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc.json",
466
+ "api_version": "2010-04-01",
467
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
468
+ "reason_conference_ended": "participant-with-end-conference-on-exit-left",
469
+ "call_sid_ending_conference": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
318
470
  }
319
471
  ],
320
- "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
472
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?PageSize=3&Page=0",
321
473
  "next_page_uri": null,
322
- "previous_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0&PageToken=PBCFdddddddddddddddddddddddddddddddd",
323
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=1&PageToken=PACFcccccccccccccccccccccccccccccccc",
324
- "page": 1,
474
+ "previous_page_uri": null,
475
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?PageSize=3&Page=0",
476
+ "page": 0,
325
477
  "page_size": 3,
326
- "start": 3,
327
- "end": 5
478
+ "start": 0,
479
+ "end": 2
328
480
  }
329
481
  ]
330
482
  ))
@@ -335,7 +487,7 @@ describe 'Conference' do
335
487
  expect(actual).to_not eq(nil)
336
488
  end
337
489
 
338
- it "receives read_previous responses" do
490
+ it "receives read_date_created_equals responses" do
339
491
  @holodeck.mock(Twilio::Response.new(
340
492
  200,
341
493
  %q[
@@ -345,8 +497,8 @@ describe 'Conference' do
345
497
  "status": "in-progress",
346
498
  "region": "jp1",
347
499
  "sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
348
- "date_updated": "Sat, 03 Jan 2015 11:23:45 +0000",
349
- "date_created": "Sat, 03 Jan 2015 11:23:45 +0000",
500
+ "date_updated": "Tue, 07 Jul 2020 11:23:45 +0000",
501
+ "date_created": "Tue, 07 Jul 2020 11:23:45 +0000",
350
502
  "subresource_uris": {
351
503
  "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
352
504
  "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
@@ -360,15 +512,91 @@ describe 'Conference' do
360
512
  },
361
513
  {
362
514
  "status": "in-progress",
363
- "region": "unknown",
515
+ "region": "de1",
364
516
  "sid": "CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
365
- "date_updated": "Fri, 02 Jan 2015 11:23:45 +0000",
366
- "date_created": "Fri, 02 Jan 2015 11:23:45 +0000",
517
+ "date_updated": "Tue, 07 Jul 2020 11:23:45 +0000",
518
+ "date_created": "Tue, 07 Jul 2020 11:23:45 +0000",
367
519
  "subresource_uris": {
368
520
  "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Participants.json",
369
521
  "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Recordings.json"
370
522
  },
523
+ "friendly_name": "MyRoom",
524
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.json",
525
+ "api_version": "2010-04-01",
526
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
527
+ "reason_conference_ended": null,
528
+ "call_sid_ending_conference": null
529
+ },
530
+ {
531
+ "status": "completed",
532
+ "region": "br1",
533
+ "sid": "CFcccccccccccccccccccccccccccccccc",
534
+ "date_updated": "Tue, 07 Jul 2020 11:23:45 +0000",
535
+ "date_created": "Tue, 07 Jul 2020 11:23:45 +0000",
536
+ "subresource_uris": {
537
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Participants.json",
538
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Recordings.json"
539
+ },
540
+ "friendly_name": "FRIEND",
541
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc.json",
542
+ "api_version": "2010-04-01",
543
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
544
+ "reason_conference_ended": "participant-with-end-conference-on-exit-left",
545
+ "call_sid_ending_conference": "CAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
546
+ }
547
+ ],
548
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?DateCreated=2020-07-07&PageSize=3&Page=0",
549
+ "next_page_uri": null,
550
+ "previous_page_uri": null,
551
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?DateCreated=2020-07-07&PageSize=3&Page=0",
552
+ "page": 0,
553
+ "page_size": 3,
554
+ "start": 0,
555
+ "end": 2
556
+ }
557
+ ]
558
+ ))
559
+
560
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
561
+ .conferences.list()
562
+
563
+ expect(actual).to_not eq(nil)
564
+ end
565
+
566
+ it "receives read_date_created_on_or_after responses" do
567
+ @holodeck.mock(Twilio::Response.new(
568
+ 200,
569
+ %q[
570
+ {
571
+ "conferences": [
572
+ {
573
+ "status": "in-progress",
574
+ "region": "jp1",
575
+ "sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
576
+ "date_updated": "Fri, 01 Jan 2021 11:23:45 +0000",
577
+ "date_created": "Fri, 01 Jan 2021 11:23:45 +0000",
578
+ "subresource_uris": {
579
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
580
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
581
+ },
371
582
  "friendly_name": "friendly_name",
583
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
584
+ "api_version": "2010-04-01",
585
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
586
+ "reason_conference_ended": null,
587
+ "call_sid_ending_conference": null
588
+ },
589
+ {
590
+ "status": "in-progress",
591
+ "region": "de1",
592
+ "sid": "CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
593
+ "date_updated": "Fri, 01 Jan 2021 11:23:45 +0000",
594
+ "date_created": "Fri, 01 Jan 2021 11:23:45 +0000",
595
+ "subresource_uris": {
596
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Participants.json",
597
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/Recordings.json"
598
+ },
599
+ "friendly_name": "MyRoom",
372
600
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb.json",
373
601
  "api_version": "2010-04-01",
374
602
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -377,15 +605,15 @@ describe 'Conference' do
377
605
  },
378
606
  {
379
607
  "status": "in-progress",
380
- "region": "us1",
608
+ "region": "br1",
381
609
  "sid": "CFcccccccccccccccccccccccccccccccc",
382
- "date_updated": "Thu, 01 Jan 2015 11:23:45 +0000",
383
- "date_created": "Thu, 01 Jan 2015 11:23:45 +0000",
610
+ "date_updated": "Fri, 01 Jan 2021 11:23:45 +0000",
611
+ "date_created": "Fri, 01 Jan 2021 11:23:45 +0000",
384
612
  "subresource_uris": {
385
613
  "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Participants.json",
386
614
  "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc/Recordings.json"
387
615
  },
388
- "friendly_name": "friendly_name",
616
+ "friendly_name": "FRIEND",
389
617
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFcccccccccccccccccccccccccccccccc.json",
390
618
  "api_version": "2010-04-01",
391
619
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
@@ -393,12 +621,12 @@ describe 'Conference' do
393
621
  "call_sid_ending_conference": null
394
622
  }
395
623
  ],
396
- "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0",
624
+ "first_page_uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateCreated%3E=2021-01-01&PageSize=20&Page=0",
397
625
  "next_page_uri": null,
398
626
  "previous_page_uri": null,
399
- "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateUpdated%3E=2018-11-12&DateUpdated%3C=2018-11-11&DateCreated=2008-01-03&FriendlyName=friendly_name&DateUpdated=2018-11-13&DateCreated%3C=2008-01-01&DateCreated%3E=2008-01-02&PageSize=3&Page=0&PageToken=PBCFdddddddddddddddddddddddddddddddd",
627
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences.json?Status=in-progress&DateCreated%3E=2021-01-01&PageSize=20&Page=0",
400
628
  "page": 0,
401
- "page_size": 3,
629
+ "page_size": 20,
402
630
  "start": 0,
403
631
  "end": 2
404
632
  }
@@ -455,4 +683,34 @@ describe 'Conference' do
455
683
 
456
684
  expect(actual).to_not eq(nil)
457
685
  end
686
+
687
+ it "receives announce_to_conference responses" do
688
+ @holodeck.mock(Twilio::Response.new(
689
+ 200,
690
+ %q[
691
+ {
692
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
693
+ "api_version": "2010-04-01",
694
+ "date_created": "Mon, 08 Feb 2021 20:58:45 +0000",
695
+ "date_updated": "Mon, 08 Feb 2021 20:58:46 +0000",
696
+ "friendly_name": "MyRoom",
697
+ "region": "us1",
698
+ "sid": "CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
699
+ "status": "in-progress",
700
+ "subresource_uris": {
701
+ "participants": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants.json",
702
+ "recordings": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings.json"
703
+ },
704
+ "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Conferences/CFaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.json",
705
+ "reason_conference_ended": null,
706
+ "call_sid_ending_conference": null
707
+ }
708
+ ]
709
+ ))
710
+
711
+ actual = @client.api.v2010.accounts('ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX') \
712
+ .conferences('CFXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').update()
713
+
714
+ expect(actual).to_not eq(nil)
715
+ end
458
716
  end