twilio-ruby 5.41.0 → 5.45.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +99 -0
  3. data/{LICENSE.md → LICENSE} +0 -0
  4. data/PULL_REQUEST_TEMPLATE.md +3 -3
  5. data/README.md +18 -2
  6. data/lib/twilio-ruby.rb +1 -1
  7. data/lib/twilio-ruby/jwt/access_token.rb +7 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +26 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +201 -0
  10. data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +13 -1
  11. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +6 -1
  12. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +5 -22
  13. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +25 -40
  14. data/lib/twilio-ruby/rest/client.rb +29 -3
  15. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
  16. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
  17. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
  18. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
  19. data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
  20. data/lib/twilio-ruby/rest/events/v1/subscription.rb +12 -5
  21. data/lib/twilio-ruby/rest/flex_api.rb +1 -1
  22. data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
  23. data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
  24. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
  25. data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
  26. data/lib/twilio-ruby/rest/insights.rb +8 -0
  27. data/lib/twilio-ruby/rest/insights/v1.rb +15 -0
  28. data/lib/twilio-ruby/rest/insights/v1/room.rb +487 -0
  29. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +378 -0
  30. data/lib/twilio-ruby/rest/ip_messaging.rb +8 -10
  31. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +6 -8
  32. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +29 -68
  33. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +198 -313
  34. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +32 -59
  35. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +23 -55
  36. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +28 -71
  37. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +31 -59
  38. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +19 -39
  39. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +29 -51
  40. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +12 -18
  41. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +6 -6
  42. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +29 -66
  43. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +116 -205
  44. data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +23 -50
  45. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +41 -91
  46. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +23 -50
  47. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +42 -118
  48. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +46 -100
  49. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +36 -89
  50. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +19 -41
  51. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +29 -53
  52. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +23 -53
  53. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +27 -56
  54. data/lib/twilio-ruby/rest/preview.rb +0 -21
  55. data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +5 -22
  56. data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +21 -39
  57. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
  58. data/lib/twilio-ruby/rest/serverless/v1/service.rb +5 -5
  59. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +4 -4
  60. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +4 -4
  61. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +4 -4
  62. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +4 -4
  63. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +4 -4
  64. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -4
  65. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +4 -4
  66. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +4 -4
  67. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
  68. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +4 -4
  69. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +4 -4
  70. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +15 -5
  71. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +15 -5
  72. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +28 -5
  73. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +15 -5
  74. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +28 -5
  75. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +15 -5
  76. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -9
  77. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -16
  78. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +21 -24
  79. data/lib/twilio-ruby/rest/verify/v2/form.rb +4 -4
  80. data/lib/twilio-ruby/rest/verify/v2/service.rb +3 -3
  81. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +3 -3
  82. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +23 -35
  83. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +27 -49
  84. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +24 -42
  85. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +4 -4
  86. data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
  87. data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
  88. data/lib/twilio-ruby/rest/video/v1/room.rb +20 -0
  89. data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +150 -0
  90. data/lib/twilio-ruby/twiml/voice_response.rb +8 -4
  91. data/lib/twilio-ruby/util/configuration.rb +5 -1
  92. data/lib/twilio-ruby/version.rb +1 -1
  93. data/spec/integration/api/v2010/account/call/event_spec.rb +102 -0
  94. data/spec/integration/api/v2010/account/call/recording_spec.rb +4 -0
  95. data/spec/integration/api/v2010/account/call_spec.rb +20 -10
  96. data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
  97. data/spec/integration/bulkexports/v1/export/export_custom_job_spec.rb +4 -2
  98. data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
  99. data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
  100. data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
  101. data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
  102. data/spec/integration/conversations/v1/user_spec.rb +9 -4
  103. data/spec/integration/events/v1/sink/sink_test_spec.rb +1 -1
  104. data/spec/integration/events/v1/subscription_spec.rb +49 -0
  105. data/spec/integration/insights/v1/room/participant_spec.rb +147 -0
  106. data/spec/integration/insights/v1/room_spec.rb +164 -0
  107. data/spec/integration/ip_messaging/v1/credential_spec.rb +13 -13
  108. data/spec/integration/ip_messaging/v1/service/channel/invite_spec.rb +11 -11
  109. data/spec/integration/ip_messaging/v1/service/channel/member_spec.rb +14 -14
  110. data/spec/integration/ip_messaging/v1/service/channel/message_spec.rb +14 -14
  111. data/spec/integration/ip_messaging/v1/service/channel_spec.rb +25 -25
  112. data/spec/integration/ip_messaging/v1/service/role_spec.rb +13 -13
  113. data/spec/integration/ip_messaging/v1/service/user/user_channel_spec.rb +7 -7
  114. data/spec/integration/ip_messaging/v1/service/user_spec.rb +17 -17
  115. data/spec/integration/ip_messaging/v1/service_spec.rb +9 -9
  116. data/spec/integration/ip_messaging/v2/credential_spec.rb +13 -13
  117. data/spec/integration/ip_messaging/v2/service/binding_spec.rb +11 -11
  118. data/spec/integration/ip_messaging/v2/service/channel/invite_spec.rb +11 -11
  119. data/spec/integration/ip_messaging/v2/service/channel/member_spec.rb +13 -13
  120. data/spec/integration/ip_messaging/v2/service/channel/message_spec.rb +17 -17
  121. data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +15 -15
  122. data/spec/integration/ip_messaging/v2/service/channel_spec.rb +29 -29
  123. data/spec/integration/ip_messaging/v2/service/role_spec.rb +13 -13
  124. data/spec/integration/ip_messaging/v2/service/user/user_binding_spec.rb +9 -9
  125. data/spec/integration/ip_messaging/v2/service/user/user_channel_spec.rb +20 -20
  126. data/spec/integration/ip_messaging/v2/service/user_spec.rb +21 -21
  127. data/spec/integration/ip_messaging/v2/service_spec.rb +29 -29
  128. data/spec/integration/lookups/v1/phone_number_spec.rb +7 -7
  129. data/spec/integration/preview/bulk_exports/export/export_custom_job_spec.rb +4 -2
  130. data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +1 -1
  131. data/spec/integration/trunking/v1/trunk/recording_spec.rb +2 -6
  132. data/spec/integration/verify/v2/service/entity/challenge_spec.rb +4 -12
  133. data/spec/integration/verify/v2/service/entity/factor_spec.rb +5 -15
  134. data/spec/integration/verify/v2/service/entity_spec.rb +4 -12
  135. data/spec/integration/video/v1/room/room_recording_rule_spec.rb +89 -0
  136. data/spec/integration/video/v1/room_spec.rb +10 -5
  137. data/spec/jwt/access_token_spec.rb +9 -1
  138. data/spec/rest/client_spec.rb +24 -2
  139. data/twilio-ruby.gemspec +2 -1
  140. metadata +30 -19
  141. data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
  142. data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
  143. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
  144. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
  145. data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
  146. data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
  147. data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
  148. data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
  149. data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
  150. data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -13,7 +13,7 @@ module Twilio
13
13
  class ServiceContext < InstanceContext
14
14
  class EntityContext < InstanceContext
15
15
  ##
16
- # 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.
16
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
17
  class ChallengeList < ListResource
18
18
  ##
19
19
  # Initialize the ChallengeList
@@ -33,8 +33,10 @@ module Twilio
33
33
  ##
34
34
  # Create the ChallengeInstance
35
35
  # @param [String] factor_sid The unique SID identifier of the Factor.
36
- # @param [Time] expiration_date The future date in which this Challenge will
37
- # expire, given in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format.
36
+ # @param [Time] expiration_date The date-time when this Challenge expires, given
37
+ # in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. The default value
38
+ # is five (5) minutes after Challenge creation. The max value is sixty (60)
39
+ # minutes after creation.
38
40
  # @param [String] details_message Shown to the user when the push notification
39
41
  # arrives. Required when `factor_type` is `push`
40
42
  # @param [Hash] details_fields A list of objects that describe the Fields included
@@ -43,9 +45,8 @@ module Twilio
43
45
  # @param [Hash] hidden_details Details provided to give context about the
44
46
  # Challenge. Not shown to the end user. It must be a stringified JSON with only
45
47
  # strings values eg. `{"ip": "172.168.1.234"}`
46
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
47
48
  # @return [ChallengeInstance] Created ChallengeInstance
48
- def create(factor_sid: nil, expiration_date: :unset, details_message: :unset, details_fields: :unset, hidden_details: :unset, twilio_sandbox_mode: :unset)
49
+ def create(factor_sid: nil, expiration_date: :unset, details_message: :unset, details_fields: :unset, hidden_details: :unset)
49
50
  data = Twilio::Values.of({
50
51
  'FactorSid' => factor_sid,
51
52
  'ExpirationDate' => Twilio.serialize_iso8601_datetime(expiration_date),
@@ -53,9 +54,8 @@ module Twilio
53
54
  'Details.Fields' => Twilio.serialize_list(details_fields) { |e| Twilio.serialize_object(e) },
54
55
  'HiddenDetails' => Twilio.serialize_object(hidden_details),
55
56
  })
56
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
57
57
 
58
- payload = @version.create('POST', @uri, data: data, headers: headers)
58
+ payload = @version.create('POST', @uri, data: data)
59
59
 
60
60
  ChallengeInstance.new(
61
61
  @version,
@@ -72,7 +72,6 @@ module Twilio
72
72
  # @param [String] factor_sid The unique SID identifier of the Factor.
73
73
  # @param [challenge.ChallengeStatuses] status The Status of the Challenges to
74
74
  # fetch. One of `pending`, `expired`, `approved` or `denied`.
75
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
76
75
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
76
  # guarantees to never return more than limit. Default is no limit
78
77
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -80,14 +79,8 @@ module Twilio
80
79
  # but a limit is defined, stream() will attempt to read the limit with the most
81
80
  # efficient page size, i.e. min(limit, 1000)
82
81
  # @return [Array] Array of up to limit results
83
- def list(factor_sid: :unset, status: :unset, twilio_sandbox_mode: :unset, limit: nil, page_size: nil)
84
- self.stream(
85
- factor_sid: factor_sid,
86
- status: status,
87
- twilio_sandbox_mode: twilio_sandbox_mode,
88
- limit: limit,
89
- page_size: page_size
90
- ).entries
82
+ def list(factor_sid: :unset, status: :unset, limit: nil, page_size: nil)
83
+ self.stream(factor_sid: factor_sid, status: status, limit: limit, page_size: page_size).entries
91
84
  end
92
85
 
93
86
  ##
@@ -97,7 +90,6 @@ module Twilio
97
90
  # @param [String] factor_sid The unique SID identifier of the Factor.
98
91
  # @param [challenge.ChallengeStatuses] status The Status of the Challenges to
99
92
  # fetch. One of `pending`, `expired`, `approved` or `denied`.
100
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
101
93
  # @param [Integer] limit Upper limit for the number of records to return. stream()
102
94
  # guarantees to never return more than limit. Default is no limit.
103
95
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -105,15 +97,10 @@ module Twilio
105
97
  # but a limit is defined, stream() will attempt to read the limit with the most
106
98
  # efficient page size, i.e. min(limit, 1000)
107
99
  # @return [Enumerable] Enumerable that will yield up to limit results
108
- def stream(factor_sid: :unset, status: :unset, twilio_sandbox_mode: :unset, limit: nil, page_size: nil)
100
+ def stream(factor_sid: :unset, status: :unset, limit: nil, page_size: nil)
109
101
  limits = @version.read_limits(limit, page_size)
110
102
 
111
- page = self.page(
112
- factor_sid: factor_sid,
113
- status: status,
114
- twilio_sandbox_mode: twilio_sandbox_mode,
115
- page_size: limits[:page_size],
116
- )
103
+ page = self.page(factor_sid: factor_sid, status: status, page_size: limits[:page_size], )
117
104
 
118
105
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
119
106
  end
@@ -138,12 +125,11 @@ module Twilio
138
125
  # @param [String] factor_sid The unique SID identifier of the Factor.
139
126
  # @param [challenge.ChallengeStatuses] status The Status of the Challenges to
140
127
  # fetch. One of `pending`, `expired`, `approved` or `denied`.
141
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
142
128
  # @param [String] page_token PageToken provided by the API
143
129
  # @param [Integer] page_number Page Number, this value is simply for client state
144
130
  # @param [Integer] page_size Number of records to return, defaults to 50
145
131
  # @return [Page] Page of ChallengeInstance
146
- def page(factor_sid: :unset, status: :unset, twilio_sandbox_mode: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(factor_sid: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
147
133
  params = Twilio::Values.of({
148
134
  'FactorSid' => factor_sid,
149
135
  'Status' => status,
@@ -151,9 +137,8 @@ module Twilio
151
137
  'Page' => page_number,
152
138
  'PageSize' => page_size,
153
139
  })
154
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
155
140
 
156
- response = @version.page('GET', @uri, params: params, headers: headers)
141
+ response = @version.page('GET', @uri, params: params)
157
142
 
158
143
  ChallengePage.new(@version, response, @solution)
159
144
  end
@@ -179,7 +164,7 @@ module Twilio
179
164
  end
180
165
 
181
166
  ##
182
- # 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.
167
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
183
168
  class ChallengePage < Page
184
169
  ##
185
170
  # Initialize the ChallengePage
@@ -215,7 +200,7 @@ module Twilio
215
200
  end
216
201
 
217
202
  ##
218
- # 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.
203
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
219
204
  class ChallengeContext < InstanceContext
220
205
  ##
221
206
  # Initialize the ChallengeContext
@@ -237,12 +222,9 @@ module Twilio
237
222
 
238
223
  ##
239
224
  # Fetch the ChallengeInstance
240
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
241
225
  # @return [ChallengeInstance] Fetched ChallengeInstance
242
- def fetch(twilio_sandbox_mode: :unset)
243
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
244
-
245
- payload = @version.fetch('GET', @uri, headers: headers)
226
+ def fetch
227
+ payload = @version.fetch('GET', @uri)
246
228
 
247
229
  ChallengeInstance.new(
248
230
  @version,
@@ -257,13 +239,11 @@ module Twilio
257
239
  # Update the ChallengeInstance
258
240
  # @param [String] auth_payload The optional payload needed to verify the
259
241
  # Challenge. E.g., a TOTP would use the numeric code.
260
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
261
242
  # @return [ChallengeInstance] Updated ChallengeInstance
262
- def update(auth_payload: :unset, twilio_sandbox_mode: :unset)
243
+ def update(auth_payload: :unset)
263
244
  data = Twilio::Values.of({'AuthPayload' => auth_payload, })
264
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
265
245
 
266
- payload = @version.update('POST', @uri, data: data, headers: headers)
246
+ payload = @version.update('POST', @uri, data: data)
267
247
 
268
248
  ChallengeInstance.new(
269
249
  @version,
@@ -290,7 +270,7 @@ module Twilio
290
270
  end
291
271
 
292
272
  ##
293
- # 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.
273
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
294
274
  class ChallengeInstance < InstanceResource
295
275
  ##
296
276
  # Initialize the ChallengeInstance
@@ -401,7 +381,7 @@ module Twilio
401
381
  end
402
382
 
403
383
  ##
404
- # @return [Time] The date this Challenge is expired
384
+ # @return [Time] The date-time when this Challenge expires
405
385
  def expiration_date
406
386
  @properties['expiration_date']
407
387
  end
@@ -419,13 +399,13 @@ module Twilio
419
399
  end
420
400
 
421
401
  ##
422
- # @return [Hash] The details
402
+ # @return [Hash] Details about the Challenge.
423
403
  def details
424
404
  @properties['details']
425
405
  end
426
406
 
427
407
  ##
428
- # @return [Hash] Hidden details provided to contextualize the Challenge
408
+ # @return [Hash] Hidden details about the Challenge
429
409
  def hidden_details
430
410
  @properties['hidden_details']
431
411
  end
@@ -444,20 +424,18 @@ module Twilio
444
424
 
445
425
  ##
446
426
  # Fetch the ChallengeInstance
447
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
448
427
  # @return [ChallengeInstance] Fetched ChallengeInstance
449
- def fetch(twilio_sandbox_mode: :unset)
450
- context.fetch(twilio_sandbox_mode: twilio_sandbox_mode, )
428
+ def fetch
429
+ context.fetch
451
430
  end
452
431
 
453
432
  ##
454
433
  # Update the ChallengeInstance
455
434
  # @param [String] auth_payload The optional payload needed to verify the
456
435
  # Challenge. E.g., a TOTP would use the numeric code.
457
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
458
436
  # @return [ChallengeInstance] Updated ChallengeInstance
459
- def update(auth_payload: :unset, twilio_sandbox_mode: :unset)
460
- context.update(auth_payload: auth_payload, twilio_sandbox_mode: twilio_sandbox_mode, )
437
+ def update(auth_payload: :unset)
438
+ context.update(auth_payload: auth_payload, )
461
439
  end
462
440
 
463
441
  ##
@@ -13,7 +13,7 @@ module Twilio
13
13
  class ServiceContext < InstanceContext
14
14
  class EntityContext < InstanceContext
15
15
  ##
16
- # 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.
16
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
17
17
  class FactorList < ListResource
18
18
  ##
19
19
  # Initialize the FactorList
@@ -51,9 +51,8 @@ module Twilio
51
51
  # `factor_type` is `push`
52
52
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
53
53
  # the factor
54
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
55
54
  # @return [FactorInstance] Created FactorInstance
56
- def create(friendly_name: nil, factor_type: nil, binding_alg: :unset, binding_public_key: :unset, config_app_id: :unset, config_notification_platform: :unset, config_notification_token: :unset, config_sdk_version: :unset, twilio_sandbox_mode: :unset)
55
+ def create(friendly_name: nil, factor_type: nil, binding_alg: :unset, binding_public_key: :unset, config_app_id: :unset, config_notification_platform: :unset, config_notification_token: :unset, config_sdk_version: :unset)
57
56
  data = Twilio::Values.of({
58
57
  'FriendlyName' => friendly_name,
59
58
  'FactorType' => factor_type,
@@ -64,9 +63,8 @@ module Twilio
64
63
  'Config.NotificationToken' => config_notification_token,
65
64
  'Config.SdkVersion' => config_sdk_version,
66
65
  })
67
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
68
66
 
69
- payload = @version.create('POST', @uri, data: data, headers: headers)
67
+ payload = @version.create('POST', @uri, data: data)
70
68
 
71
69
  FactorInstance.new(
72
70
  @version,
@@ -80,7 +78,6 @@ module Twilio
80
78
  # Lists FactorInstance records from the API as a list.
81
79
  # Unlike stream(), this operation is eager and will load `limit` records into
82
80
  # memory before returning.
83
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
84
81
  # @param [Integer] limit Upper limit for the number of records to return. stream()
85
82
  # guarantees to never return more than limit. Default is no limit
86
83
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -88,15 +85,14 @@ module Twilio
88
85
  # but a limit is defined, stream() will attempt to read the limit with the most
89
86
  # efficient page size, i.e. min(limit, 1000)
90
87
  # @return [Array] Array of up to limit results
91
- def list(twilio_sandbox_mode: :unset, limit: nil, page_size: nil)
92
- self.stream(twilio_sandbox_mode: twilio_sandbox_mode, limit: limit, page_size: page_size).entries
88
+ def list(limit: nil, page_size: nil)
89
+ self.stream(limit: limit, page_size: page_size).entries
93
90
  end
94
91
 
95
92
  ##
96
93
  # Streams FactorInstance records from the API as an Enumerable.
97
94
  # This operation lazily loads records as efficiently as possible until the limit
98
95
  # is reached.
99
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
100
96
  # @param [Integer] limit Upper limit for the number of records to return. stream()
101
97
  # guarantees to never return more than limit. Default is no limit.
102
98
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -104,10 +100,10 @@ module Twilio
104
100
  # but a limit is defined, stream() will attempt to read the limit with the most
105
101
  # efficient page size, i.e. min(limit, 1000)
106
102
  # @return [Enumerable] Enumerable that will yield up to limit results
107
- def stream(twilio_sandbox_mode: :unset, limit: nil, page_size: nil)
103
+ def stream(limit: nil, page_size: nil)
108
104
  limits = @version.read_limits(limit, page_size)
109
105
 
110
- page = self.page(twilio_sandbox_mode: twilio_sandbox_mode, page_size: limits[:page_size], )
106
+ page = self.page(page_size: limits[:page_size], )
111
107
 
112
108
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
113
109
  end
@@ -129,20 +125,18 @@ module Twilio
129
125
  ##
130
126
  # Retrieve a single page of FactorInstance records from the API.
131
127
  # Request is executed immediately.
132
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
133
128
  # @param [String] page_token PageToken provided by the API
134
129
  # @param [Integer] page_number Page Number, this value is simply for client state
135
130
  # @param [Integer] page_size Number of records to return, defaults to 50
136
131
  # @return [Page] Page of FactorInstance
137
- def page(twilio_sandbox_mode: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(page_token: :unset, page_number: :unset, page_size: :unset)
138
133
  params = Twilio::Values.of({
139
134
  'PageToken' => page_token,
140
135
  'Page' => page_number,
141
136
  'PageSize' => page_size,
142
137
  })
143
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
144
138
 
145
- response = @version.page('GET', @uri, params: params, headers: headers)
139
+ response = @version.page('GET', @uri, params: params)
146
140
 
147
141
  FactorPage.new(@version, response, @solution)
148
142
  end
@@ -168,7 +162,7 @@ module Twilio
168
162
  end
169
163
 
170
164
  ##
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.
165
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
172
166
  class FactorPage < Page
173
167
  ##
174
168
  # Initialize the FactorPage
@@ -204,7 +198,7 @@ module Twilio
204
198
  end
205
199
 
206
200
  ##
207
- # 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.
201
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
208
202
  class FactorContext < InstanceContext
209
203
  ##
210
204
  # Initialize the FactorContext
@@ -224,22 +218,16 @@ module Twilio
224
218
 
225
219
  ##
226
220
  # Delete the FactorInstance
227
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
228
221
  # @return [Boolean] true if delete succeeds, false otherwise
229
- def delete(twilio_sandbox_mode: :unset)
230
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
231
-
232
- @version.delete('DELETE', @uri, headers: headers)
222
+ def delete
223
+ @version.delete('DELETE', @uri)
233
224
  end
234
225
 
235
226
  ##
236
227
  # Fetch the FactorInstance
237
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
238
228
  # @return [FactorInstance] Fetched FactorInstance
239
- def fetch(twilio_sandbox_mode: :unset)
240
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
241
-
242
- payload = @version.fetch('GET', @uri, headers: headers)
229
+ def fetch
230
+ payload = @version.fetch('GET', @uri)
243
231
 
244
232
  FactorInstance.new(
245
233
  @version,
@@ -260,18 +248,16 @@ module Twilio
260
248
  # `factor_type` is `push`
261
249
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
262
250
  # the factor
263
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
264
251
  # @return [FactorInstance] Updated FactorInstance
265
- def update(auth_payload: :unset, friendly_name: :unset, config_notification_token: :unset, config_sdk_version: :unset, twilio_sandbox_mode: :unset)
252
+ def update(auth_payload: :unset, friendly_name: :unset, config_notification_token: :unset, config_sdk_version: :unset)
266
253
  data = Twilio::Values.of({
267
254
  'AuthPayload' => auth_payload,
268
255
  'FriendlyName' => friendly_name,
269
256
  'Config.NotificationToken' => config_notification_token,
270
257
  'Config.SdkVersion' => config_sdk_version,
271
258
  })
272
- headers = Twilio::Values.of({'Twilio-Sandbox-Mode' => twilio_sandbox_mode, })
273
259
 
274
- payload = @version.update('POST', @uri, data: data, headers: headers)
260
+ payload = @version.update('POST', @uri, data: data)
275
261
 
276
262
  FactorInstance.new(
277
263
  @version,
@@ -298,7 +284,7 @@ module Twilio
298
284
  end
299
285
 
300
286
  ##
301
- # 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.
287
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
302
288
  class FactorInstance < InstanceResource
303
289
  ##
304
290
  # Initialize the FactorInstance
@@ -411,7 +397,7 @@ module Twilio
411
397
  end
412
398
 
413
399
  ##
414
- # @return [Hash] The config
400
+ # @return [Hash] Configurations for a `factor_type`.
415
401
  def config
416
402
  @properties['config']
417
403
  end
@@ -424,18 +410,16 @@ module Twilio
424
410
 
425
411
  ##
426
412
  # Delete the FactorInstance
427
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
428
413
  # @return [Boolean] true if delete succeeds, false otherwise
429
- def delete(twilio_sandbox_mode: :unset)
430
- context.delete(twilio_sandbox_mode: twilio_sandbox_mode, )
414
+ def delete
415
+ context.delete
431
416
  end
432
417
 
433
418
  ##
434
419
  # Fetch the FactorInstance
435
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
436
420
  # @return [FactorInstance] Fetched FactorInstance
437
- def fetch(twilio_sandbox_mode: :unset)
438
- context.fetch(twilio_sandbox_mode: twilio_sandbox_mode, )
421
+ def fetch
422
+ context.fetch
439
423
  end
440
424
 
441
425
  ##
@@ -448,15 +432,13 @@ module Twilio
448
432
  # `factor_type` is `push`
449
433
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
450
434
  # the factor
451
- # @param [String] twilio_sandbox_mode The Twilio-Sandbox-Mode HTTP request header
452
435
  # @return [FactorInstance] Updated FactorInstance
453
- def update(auth_payload: :unset, friendly_name: :unset, config_notification_token: :unset, config_sdk_version: :unset, twilio_sandbox_mode: :unset)
436
+ def update(auth_payload: :unset, friendly_name: :unset, config_notification_token: :unset, config_sdk_version: :unset)
454
437
  context.update(
455
438
  auth_payload: auth_payload,
456
439
  friendly_name: friendly_name,
457
440
  config_notification_token: config_notification_token,
458
441
  config_sdk_version: config_sdk_version,
459
- twilio_sandbox_mode: twilio_sandbox_mode,
460
442
  )
461
443
  end
462
444
 
@@ -12,7 +12,7 @@ module Twilio
12
12
  class V2 < Version
13
13
  class ServiceContext < 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 WebhookList < ListResource
17
17
  ##
18
18
  # Initialize the WebhookList
@@ -139,7 +139,7 @@ module Twilio
139
139
  end
140
140
 
141
141
  ##
142
- # 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.
142
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
143
143
  class WebhookPage < Page
144
144
  ##
145
145
  # Initialize the WebhookPage
@@ -170,7 +170,7 @@ module Twilio
170
170
  end
171
171
 
172
172
  ##
173
- # 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.
173
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
174
174
  class WebhookContext < InstanceContext
175
175
  ##
176
176
  # Initialize the WebhookContext
@@ -243,7 +243,7 @@ module Twilio
243
243
  end
244
244
 
245
245
  ##
246
- # 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.
246
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
247
247
  class WebhookInstance < InstanceResource
248
248
  ##
249
249
  # Initialize the WebhookInstance