twilio-ruby 5.44.0 → 5.47.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +97 -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 +14 -9
  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 +10 -5
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +17 -12
  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/conversations/v1/configuration/webhook.rb +9 -9
  37. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
  38. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  39. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
  40. data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
  41. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
  42. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  43. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
  44. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  45. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
  46. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
  47. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  48. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  49. data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -2
  50. data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -2
  51. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  52. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  53. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  54. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
  55. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  56. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  57. data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
  58. data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
  59. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
  60. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
  61. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
  62. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
  63. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
  64. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
  65. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
  66. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
  67. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
  68. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
  69. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
  70. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
  71. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
  72. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
  73. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
  74. data/lib/twilio-ruby/rest/messaging.rb +22 -0
  75. data/lib/twilio-ruby/rest/messaging/v1.rb +37 -0
  76. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
  77. data/lib/twilio-ruby/rest/messaging/v1/campaign.rb +387 -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/messaging/v1/use_case.rb +198 -0
  82. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
  83. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
  84. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
  85. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
  86. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
  87. data/lib/twilio-ruby/rest/preview.rb +4 -23
  88. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
  89. data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
  90. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
  91. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
  92. data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
  93. data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
  94. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
  95. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
  96. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
  97. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
  98. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
  99. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
  100. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
  101. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
  102. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
  103. data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
  104. data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
  105. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
  106. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
  107. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
  108. data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
  109. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
  110. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
  111. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
  112. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
  113. data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
  114. data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
  115. data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
  116. data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
  117. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
  118. data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
  119. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
  120. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
  121. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
  122. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
  123. data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
  124. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +16 -36
  125. data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
  126. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -25
  127. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +24 -43
  128. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
  129. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -25
  130. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +25 -44
  131. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
  132. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -23
  133. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
  134. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
  135. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
  136. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
  137. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
  138. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
  139. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
  140. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
  141. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
  142. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
  143. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
  144. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
  145. data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
  146. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
  147. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
  148. data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
  149. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
  150. data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
  151. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
  152. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
  153. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
  154. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
  155. data/lib/twilio-ruby/twiml/voice_response.rb +18 -8
  156. data/lib/twilio-ruby/version.rb +1 -1
  157. data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
  158. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  159. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  160. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  161. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  162. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  163. data/spec/integration/events/v1/sink_spec.rb +14 -0
  164. data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
  165. data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
  166. data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
  167. data/spec/integration/messaging/v1/campaign_spec.rb +194 -0
  168. data/spec/integration/messaging/v1/use_case_spec.rb +55 -0
  169. data/spec/integration/preview/sync/service/document_spec.rb +1 -3
  170. data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
  171. data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
  172. data/spec/integration/sync/v1/service/document_spec.rb +1 -3
  173. data/spec/integration/video/v1/room_spec.rb +5 -0
  174. data/spec/twiml/voice_response_spec.rb +1 -1
  175. metadata +11 -17
  176. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
  177. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
  178. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
  179. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
  180. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
  181. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
  182. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
  183. data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
  184. data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
  185. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Studio < Domain
12
12
  class V2 < Version
13
- ##
14
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
13
  class FlowValidateList < ListResource
16
14
  ##
17
15
  # Initialize the FlowValidateList
@@ -27,10 +25,11 @@ module Twilio
27
25
 
28
26
  ##
29
27
  # Update the FlowValidateInstance
30
- # @param [String] friendly_name The friendly_name
31
- # @param [flow_validate.Status] status The status
32
- # @param [Hash] definition The definition
33
- # @param [String] commit_message The commit_message
28
+ # @param [String] friendly_name The string that you assigned to describe the Flow.
29
+ # @param [flow_validate.Status] status The status of the Flow. Can be: `draft` or
30
+ # `published`.
31
+ # @param [Hash] definition JSON representation of flow definition.
32
+ # @param [String] commit_message Description of change made in the revision.
34
33
  # @return [FlowValidateInstance] Updated FlowValidateInstance
35
34
  def update(friendly_name: nil, status: nil, definition: nil, commit_message: :unset)
36
35
  data = Twilio::Values.of({
@@ -52,8 +51,6 @@ module Twilio
52
51
  end
53
52
  end
54
53
 
55
- ##
56
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
57
54
  class FlowValidatePage < Page
58
55
  ##
59
56
  # Initialize the FlowValidatePage
@@ -83,8 +80,6 @@ module Twilio
83
80
  end
84
81
  end
85
82
 
86
- ##
87
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
88
83
  class FlowValidateInstance < InstanceResource
89
84
  ##
90
85
  # Initialize the FlowValidateInstance
@@ -99,7 +94,7 @@ module Twilio
99
94
  end
100
95
 
101
96
  ##
102
- # @return [Boolean] The valid
97
+ # @return [Boolean] Boolean if the flow definition is valid
103
98
  def valid
104
99
  @properties['valid']
105
100
  end
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class CommandList < ListResource
16
16
  ##
17
17
  # Initialize the CommandList
@@ -176,7 +176,7 @@ module Twilio
176
176
  end
177
177
 
178
178
  ##
179
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
179
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
180
180
  class CommandPage < Page
181
181
  ##
182
182
  # Initialize the CommandPage
@@ -207,7 +207,7 @@ module Twilio
207
207
  end
208
208
 
209
209
  ##
210
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
210
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
211
211
  class CommandContext < InstanceContext
212
212
  ##
213
213
  # Initialize the CommandContext
@@ -247,7 +247,7 @@ module Twilio
247
247
  end
248
248
 
249
249
  ##
250
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
250
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
251
251
  class CommandInstance < InstanceResource
252
252
  ##
253
253
  # Initialize the CommandInstance
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class FleetList < ListResource
16
16
  ##
17
17
  # Initialize the FleetList
@@ -42,10 +42,10 @@ module Twilio
42
42
  # @param [Boolean] commands_enabled Defines whether SIMs in the Fleet are capable
43
43
  # of sending and receiving machine-to-machine SMS via Commands. Defaults to
44
44
  # `true`.
45
- # @param [String] commands_url The URL that will receive a webhook when a SIM in
46
- # the Fleet originates a machine-to-machine SMS via Commands. Your server should
47
- # respond with an HTTP status code in the 200 range; any response body will be
48
- # ignored.
45
+ # @param [String] commands_url The URL that will receive a webhook when a Super
46
+ # SIM in the Fleet is used to send an SMS from your device to the Commands number.
47
+ # Your server should respond with an HTTP status code in the 200 range; any
48
+ # response body will be ignored.
49
49
  # @param [String] commands_method A string representing the HTTP method to use
50
50
  # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
51
51
  # to `POST`.
@@ -168,7 +168,7 @@ module Twilio
168
168
  end
169
169
 
170
170
  ##
171
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
171
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
172
172
  class FleetPage < Page
173
173
  ##
174
174
  # Initialize the FleetPage
@@ -199,7 +199,7 @@ module Twilio
199
199
  end
200
200
 
201
201
  ##
202
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
202
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
203
203
  class FleetContext < InstanceContext
204
204
  ##
205
205
  # Initialize the FleetContext
@@ -231,11 +231,20 @@ module Twilio
231
231
  # @param [String] network_access_profile The SID or unique name of the Network
232
232
  # Access Profile that will control which cellular networks the Fleet's SIMs can
233
233
  # connect to.
234
+ # @param [String] commands_url The URL that will receive a webhook when a Super
235
+ # SIM in the Fleet is used to send an SMS from your device to the Commands number.
236
+ # Your server should respond with an HTTP status code in the 200 range; any
237
+ # response body will be ignored.
238
+ # @param [String] commands_method A string representing the HTTP method to use
239
+ # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
240
+ # to `POST`.
234
241
  # @return [FleetInstance] Updated FleetInstance
235
- def update(unique_name: :unset, network_access_profile: :unset)
242
+ def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset)
236
243
  data = Twilio::Values.of({
237
244
  'UniqueName' => unique_name,
238
245
  'NetworkAccessProfile' => network_access_profile,
246
+ 'CommandsUrl' => commands_url,
247
+ 'CommandsMethod' => commands_method,
239
248
  })
240
249
 
241
250
  payload = @version.update('POST', @uri, data: data)
@@ -259,7 +268,7 @@ module Twilio
259
268
  end
260
269
 
261
270
  ##
262
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
271
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
263
272
  class FleetInstance < InstanceResource
264
273
  ##
265
274
  # Initialize the FleetInstance
@@ -364,7 +373,7 @@ module Twilio
364
373
  end
365
374
 
366
375
  ##
367
- # @return [String] The URL that will receive a webhook when a SIM in the Fleet originates a machine-to-machine SMS via Commands
376
+ # @return [String] The URL that will receive a webhook when a Super SIM in the Fleet is used to send an SMS from your device to the Commands number
368
377
  def commands_url
369
378
  @properties['commands_url']
370
379
  end
@@ -396,9 +405,21 @@ module Twilio
396
405
  # @param [String] network_access_profile The SID or unique name of the Network
397
406
  # Access Profile that will control which cellular networks the Fleet's SIMs can
398
407
  # connect to.
408
+ # @param [String] commands_url The URL that will receive a webhook when a Super
409
+ # SIM in the Fleet is used to send an SMS from your device to the Commands number.
410
+ # Your server should respond with an HTTP status code in the 200 range; any
411
+ # response body will be ignored.
412
+ # @param [String] commands_method A string representing the HTTP method to use
413
+ # when making a request to `commands_url`. Can be one of `POST` or `GET`. Defaults
414
+ # to `POST`.
399
415
  # @return [FleetInstance] Updated FleetInstance
400
- def update(unique_name: :unset, network_access_profile: :unset)
401
- context.update(unique_name: unique_name, network_access_profile: network_access_profile, )
416
+ def update(unique_name: :unset, network_access_profile: :unset, commands_url: :unset, commands_method: :unset)
417
+ context.update(
418
+ unique_name: unique_name,
419
+ network_access_profile: network_access_profile,
420
+ commands_url: commands_url,
421
+ commands_method: commands_method,
422
+ )
402
423
  end
403
424
 
404
425
  ##
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class NetworkList < ListResource
16
16
  ##
17
17
  # Initialize the NetworkList
@@ -143,7 +143,7 @@ module Twilio
143
143
  end
144
144
 
145
145
  ##
146
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
146
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
147
147
  class NetworkPage < Page
148
148
  ##
149
149
  # Initialize the NetworkPage
@@ -174,7 +174,7 @@ module Twilio
174
174
  end
175
175
 
176
176
  ##
177
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
177
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
178
178
  class NetworkContext < InstanceContext
179
179
  ##
180
180
  # Initialize the NetworkContext
@@ -214,7 +214,7 @@ module Twilio
214
214
  end
215
215
 
216
216
  ##
217
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
217
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
218
218
  class NetworkInstance < InstanceResource
219
219
  ##
220
220
  # Initialize the NetworkInstance
@@ -275,7 +275,7 @@ module Twilio
275
275
  end
276
276
 
277
277
  ##
278
- # @return [Hash] The MCC/MNCs included in the Network resource
278
+ # @return [Array[Hash]] The MCC/MNCs included in the Network resource
279
279
  def identifiers
280
280
  @properties['identifiers']
281
281
  end
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class NetworkAccessProfileList < ListResource
16
16
  ##
17
17
  # Initialize the NetworkAccessProfileList
@@ -30,8 +30,8 @@ module Twilio
30
30
  # @param [String] unique_name An application-defined string that uniquely
31
31
  # identifies the resource. It can be used in place of the resource's `sid` in the
32
32
  # URL to address the resource.
33
- # @param [String] networks List of Network SIDs that this Network Access Profile
34
- # will allow connections to.
33
+ # @param [Array[String]] networks List of Network SIDs that this Network Access
34
+ # Profile will allow connections to.
35
35
  # @return [NetworkAccessProfileInstance] Created NetworkAccessProfileInstance
36
36
  def create(unique_name: :unset, networks: :unset)
37
37
  data = Twilio::Values.of({
@@ -132,7 +132,7 @@ module Twilio
132
132
  end
133
133
 
134
134
  ##
135
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
135
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
136
136
  class NetworkAccessProfilePage < Page
137
137
  ##
138
138
  # Initialize the NetworkAccessProfilePage
@@ -163,7 +163,7 @@ module Twilio
163
163
  end
164
164
 
165
165
  ##
166
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
166
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
167
167
  class NetworkAccessProfileContext < InstanceContext
168
168
  ##
169
169
  # Initialize the NetworkAccessProfileContext
@@ -239,7 +239,7 @@ module Twilio
239
239
  end
240
240
 
241
241
  ##
242
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
242
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
243
243
  class NetworkAccessProfileInstance < InstanceResource
244
244
  ##
245
245
  # Initialize the NetworkAccessProfileInstance
@@ -12,7 +12,7 @@ module Twilio
12
12
  class V1 < Version
13
13
  class NetworkAccessProfileContext < InstanceContext
14
14
  ##
15
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
15
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
16
16
  class NetworkAccessProfileNetworkList < ListResource
17
17
  ##
18
18
  # Initialize the NetworkAccessProfileNetworkList
@@ -133,7 +133,7 @@ module Twilio
133
133
  end
134
134
 
135
135
  ##
136
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
136
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
137
137
  class NetworkAccessProfileNetworkPage < Page
138
138
  ##
139
139
  # Initialize the NetworkAccessProfileNetworkPage
@@ -168,7 +168,7 @@ module Twilio
168
168
  end
169
169
 
170
170
  ##
171
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
171
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
172
172
  class NetworkAccessProfileNetworkContext < InstanceContext
173
173
  ##
174
174
  # Initialize the NetworkAccessProfileNetworkContext
@@ -222,7 +222,7 @@ module Twilio
222
222
  end
223
223
 
224
224
  ##
225
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
225
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
226
226
  class NetworkAccessProfileNetworkInstance < InstanceResource
227
227
  ##
228
228
  # Initialize the NetworkAccessProfileNetworkInstance
@@ -293,7 +293,7 @@ module Twilio
293
293
  end
294
294
 
295
295
  ##
296
- # @return [Hash] The MCC/MNCs included in the resource
296
+ # @return [Array[Hash]] The MCC/MNCs included in the resource
297
297
  def identifiers
298
298
  @properties['identifiers']
299
299
  end
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class SimList < ListResource
16
16
  ##
17
17
  # Initialize the SimList
@@ -140,7 +140,7 @@ module Twilio
140
140
  end
141
141
 
142
142
  ##
143
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
143
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
144
144
  class SimPage < Page
145
145
  ##
146
146
  # Initialize the SimPage
@@ -171,7 +171,7 @@ module Twilio
171
171
  end
172
172
 
173
173
  ##
174
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
174
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
175
175
  class SimContext < InstanceContext
176
176
  ##
177
177
  # Initialize the SimContext
@@ -246,7 +246,7 @@ module Twilio
246
246
  end
247
247
 
248
248
  ##
249
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
249
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
250
250
  class SimInstance < InstanceResource
251
251
  ##
252
252
  # Initialize the SimInstance
@@ -11,7 +11,7 @@ module Twilio
11
11
  class Supersim < Domain
12
12
  class V1 < Version
13
13
  ##
14
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
15
  class UsageRecordList < ListResource
16
16
  ##
17
17
  # Initialize the UsageRecordList
@@ -211,7 +211,7 @@ module Twilio
211
211
  end
212
212
 
213
213
  ##
214
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
214
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
215
215
  class UsageRecordPage < Page
216
216
  ##
217
217
  # Initialize the UsageRecordPage
@@ -242,7 +242,7 @@ module Twilio
242
242
  end
243
243
 
244
244
  ##
245
- # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
245
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
246
246
  class UsageRecordInstance < InstanceResource
247
247
  ##
248
248
  # Initialize the UsageRecordInstance
@@ -10,8 +10,6 @@ module Twilio
10
10
  module REST
11
11
  class Sync < Domain
12
12
  class V1 < Version
13
- ##
14
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
13
  class ServiceList < ListResource
16
14
  ##
17
15
  # Initialize the ServiceList
@@ -155,8 +153,6 @@ module Twilio
155
153
  end
156
154
  end
157
155
 
158
- ##
159
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
160
156
  class ServicePage < Page
161
157
  ##
162
158
  # Initialize the ServicePage
@@ -186,8 +182,6 @@ module Twilio
186
182
  end
187
183
  end
188
184
 
189
- ##
190
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
191
185
  class ServiceContext < InstanceContext
192
186
  ##
193
187
  # Initialize the ServiceContext
@@ -354,8 +348,6 @@ module Twilio
354
348
  end
355
349
  end
356
350
 
357
- ##
358
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
359
351
  class ServiceInstance < InstanceResource
360
352
  ##
361
353
  # Initialize the ServiceInstance
@@ -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 DocumentList < ListResource
17
15
  ##
18
16
  # Initialize the DocumentList
@@ -34,7 +32,7 @@ module Twilio
34
32
  # @param [String] unique_name An application-defined string that uniquely
35
33
  # identifies the Sync Document
36
34
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
37
- # object that the Sync Document stores. Can be up to 16KB in length.
35
+ # object that the Sync Document stores. Can be up to 16 KiB in length.
38
36
  # @param [String] ttl How long, in seconds, before the Sync Document expires and
39
37
  # is deleted (the Sync Document's time-to-live). Can be an integer from 0 to
40
38
  # 31,536,000 (1 year). The default value is `0`, which means the Sync Document
@@ -58,9 +56,6 @@ module Twilio
58
56
  # Lists DocumentInstance records from the API as a list.
59
57
  # Unlike stream(), this operation is eager and will load `limit` records into
60
58
  # memory before returning.
61
- # @param [document.HideExpiredType] hide_expired The default list of Sync
62
- # Documents will show both active and expired items. It is possible to filter only
63
- # the active ones by hiding the expired ones.
64
59
  # @param [Integer] limit Upper limit for the number of records to return. stream()
65
60
  # guarantees to never return more than limit. Default is no limit
66
61
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -68,17 +63,14 @@ module Twilio
68
63
  # but a limit is defined, stream() will attempt to read the limit with the most
69
64
  # efficient page size, i.e. min(limit, 1000)
70
65
  # @return [Array] Array of up to limit results
71
- def list(hide_expired: :unset, limit: nil, page_size: nil)
72
- self.stream(hide_expired: hide_expired, limit: limit, page_size: page_size).entries
66
+ def list(limit: nil, page_size: nil)
67
+ self.stream(limit: limit, page_size: page_size).entries
73
68
  end
74
69
 
75
70
  ##
76
71
  # Streams DocumentInstance records from the API as an Enumerable.
77
72
  # This operation lazily loads records as efficiently as possible until the limit
78
73
  # is reached.
79
- # @param [document.HideExpiredType] hide_expired The default list of Sync
80
- # Documents will show both active and expired items. It is possible to filter only
81
- # the active ones by hiding the expired ones.
82
74
  # @param [Integer] limit Upper limit for the number of records to return. stream()
83
75
  # guarantees to never return more than limit. Default is no limit.
84
76
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -86,10 +78,10 @@ module Twilio
86
78
  # but a limit is defined, stream() will attempt to read the limit with the most
87
79
  # efficient page size, i.e. min(limit, 1000)
88
80
  # @return [Enumerable] Enumerable that will yield up to limit results
89
- def stream(hide_expired: :unset, limit: nil, page_size: nil)
81
+ def stream(limit: nil, page_size: nil)
90
82
  limits = @version.read_limits(limit, page_size)
91
83
 
92
- page = self.page(hide_expired: hide_expired, page_size: limits[:page_size], )
84
+ page = self.page(page_size: limits[:page_size], )
93
85
 
94
86
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
95
87
  end
@@ -111,16 +103,12 @@ module Twilio
111
103
  ##
112
104
  # Retrieve a single page of DocumentInstance records from the API.
113
105
  # Request is executed immediately.
114
- # @param [document.HideExpiredType] hide_expired The default list of Sync
115
- # Documents will show both active and expired items. It is possible to filter only
116
- # the active ones by hiding the expired ones.
117
106
  # @param [String] page_token PageToken provided by the API
118
107
  # @param [Integer] page_number Page Number, this value is simply for client state
119
108
  # @param [Integer] page_size Number of records to return, defaults to 50
120
109
  # @return [Page] Page of DocumentInstance
121
- def page(hide_expired: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
110
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
122
111
  params = Twilio::Values.of({
123
- 'HideExpired' => hide_expired,
124
112
  'PageToken' => page_token,
125
113
  'Page' => page_number,
126
114
  'PageSize' => page_size,
@@ -151,8 +139,6 @@ module Twilio
151
139
  end
152
140
  end
153
141
 
154
- ##
155
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
156
142
  class DocumentPage < Page
157
143
  ##
158
144
  # Initialize the DocumentPage
@@ -182,8 +168,6 @@ module Twilio
182
168
  end
183
169
  end
184
170
 
185
- ##
186
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
187
171
  class DocumentContext < InstanceContext
188
172
  ##
189
173
  # Initialize the DocumentContext
@@ -191,7 +175,8 @@ module Twilio
191
175
  # @param [String] service_sid The SID of the {Sync
192
176
  # Service}[https://www.twilio.com/docs/sync/api/service] with the Document
193
177
  # resource to fetch.
194
- # @param [String] sid The SID of the Document resource to fetch.
178
+ # @param [String] sid The SID of the Document resource to fetch. Can be the
179
+ # Document resource's `sid` or its `unique_name`.
195
180
  # @return [DocumentContext] DocumentContext
196
181
  def initialize(version, service_sid, sid)
197
182
  super(version)
@@ -215,18 +200,15 @@ module Twilio
215
200
 
216
201
  ##
217
202
  # Delete the DocumentInstance
218
- # @param [String] if_match The If-Match HTTP request header
219
203
  # @return [Boolean] true if delete succeeds, false otherwise
220
- def delete(if_match: :unset)
221
- headers = Twilio::Values.of({'If-Match' => if_match, })
222
-
223
- @version.delete('DELETE', @uri, headers: headers)
204
+ def delete
205
+ @version.delete('DELETE', @uri)
224
206
  end
225
207
 
226
208
  ##
227
209
  # Update the DocumentInstance
228
210
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
229
- # object that the Sync Document stores. Can be up to 16KB in length.
211
+ # object that the Sync Document stores. Can be up to 16 KiB in length.
230
212
  # @param [String] ttl How long, in seconds, before the Sync Document expires and
231
213
  # is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
232
214
  # default value is `0`, which means the Document resource does not expire. The
@@ -280,8 +262,6 @@ module Twilio
280
262
  end
281
263
  end
282
264
 
283
- ##
284
- # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
285
265
  class DocumentInstance < InstanceResource
286
266
  ##
287
267
  # Initialize the DocumentInstance
@@ -290,7 +270,8 @@ module Twilio
290
270
  # @param [String] service_sid The SID of the {Sync
291
271
  # Service}[https://www.twilio.com/docs/sync/api/service] the resource is
292
272
  # associated with.
293
- # @param [String] sid The SID of the Document resource to fetch.
273
+ # @param [String] sid The SID of the Document resource to fetch. Can be the
274
+ # Document resource's `sid` or its `unique_name`.
294
275
  # @return [DocumentInstance] DocumentInstance
295
276
  def initialize(version, payload, service_sid: nil, sid: nil)
296
277
  super(version)
@@ -408,16 +389,15 @@ module Twilio
408
389
 
409
390
  ##
410
391
  # Delete the DocumentInstance
411
- # @param [String] if_match The If-Match HTTP request header
412
392
  # @return [Boolean] true if delete succeeds, false otherwise
413
- def delete(if_match: :unset)
414
- context.delete(if_match: if_match, )
393
+ def delete
394
+ context.delete
415
395
  end
416
396
 
417
397
  ##
418
398
  # Update the DocumentInstance
419
399
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
420
- # object that the Sync Document stores. Can be up to 16KB in length.
400
+ # object that the Sync Document stores. Can be up to 16 KiB in length.
421
401
  # @param [String] ttl How long, in seconds, before the Sync Document expires and
422
402
  # is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
423
403
  # default value is `0`, which means the Document resource does not expire. The