twilio-ruby 5.48.0 → 5.49.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +21 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api.rb +1 -1
  5. data/lib/twilio-ruby/rest/api/v2010.rb +5 -4
  6. data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +4 -4
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +4 -4
  8. data/lib/twilio-ruby/rest/autopilot/v1.rb +5 -4
  9. data/lib/twilio-ruby/rest/bulkexports/v1.rb +10 -8
  10. data/lib/twilio-ruby/rest/chat/v1.rb +10 -8
  11. data/lib/twilio-ruby/rest/chat/v2.rb +10 -8
  12. data/lib/twilio-ruby/rest/client.rb +1 -1
  13. data/lib/twilio-ruby/rest/conversations/v1.rb +25 -20
  14. data/lib/twilio-ruby/rest/events/v1.rb +20 -16
  15. data/lib/twilio-ruby/rest/events/v1/event_type.rb +4 -4
  16. data/lib/twilio-ruby/rest/events/v1/schema.rb +4 -4
  17. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +4 -4
  18. data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -4
  19. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
  20. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +3 -3
  21. data/lib/twilio-ruby/rest/events/v1/subscription.rb +4 -4
  22. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -3
  23. data/lib/twilio-ruby/rest/fax/v1.rb +5 -4
  24. data/lib/twilio-ruby/rest/flex_api/v1.rb +15 -12
  25. data/lib/twilio-ruby/rest/insights.rb +1 -1
  26. data/lib/twilio-ruby/rest/insights/v1.rb +11 -9
  27. data/lib/twilio-ruby/rest/insights/v1/room.rb +55 -43
  28. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +22 -22
  29. data/lib/twilio-ruby/rest/ip_messaging/v1.rb +10 -8
  30. data/lib/twilio-ruby/rest/ip_messaging/v2.rb +10 -8
  31. data/lib/twilio-ruby/rest/lookups/v1.rb +5 -4
  32. data/lib/twilio-ruby/rest/messaging/v1.rb +10 -8
  33. data/lib/twilio-ruby/rest/monitor/v1.rb +10 -8
  34. data/lib/twilio-ruby/rest/notify/v1.rb +10 -8
  35. data/lib/twilio-ruby/rest/preview/bulk_exports.rb +10 -8
  36. data/lib/twilio-ruby/rest/preview/deployed_devices.rb +5 -4
  37. data/lib/twilio-ruby/rest/preview/hosted_numbers.rb +10 -8
  38. data/lib/twilio-ruby/rest/preview/marketplace.rb +10 -8
  39. data/lib/twilio-ruby/rest/preview/sync.rb +5 -4
  40. data/lib/twilio-ruby/rest/preview/trusted_comms.rb +5 -4
  41. data/lib/twilio-ruby/rest/preview/understand.rb +5 -4
  42. data/lib/twilio-ruby/rest/preview/wireless.rb +15 -12
  43. data/lib/twilio-ruby/rest/proxy/v1.rb +5 -4
  44. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -1
  45. data/lib/twilio-ruby/rest/serverless/v1.rb +5 -4
  46. data/lib/twilio-ruby/rest/studio/v1.rb +5 -4
  47. data/lib/twilio-ruby/rest/studio/v2.rb +5 -4
  48. data/lib/twilio-ruby/rest/supersim/v1.rb +25 -20
  49. data/lib/twilio-ruby/rest/sync/v1.rb +5 -4
  50. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +9 -16
  51. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -15
  52. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +22 -33
  53. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -15
  54. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +22 -35
  55. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -15
  56. data/lib/twilio-ruby/rest/taskrouter/v1.rb +5 -4
  57. data/lib/twilio-ruby/rest/trunking/v1.rb +5 -4
  58. data/lib/twilio-ruby/rest/trusthub/v1.rb +35 -28
  59. data/lib/twilio-ruby/rest/verify/v2.rb +15 -12
  60. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +4 -3
  61. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +64 -13
  62. data/lib/twilio-ruby/rest/video/v1.rb +20 -16
  63. data/lib/twilio-ruby/rest/voice/v1.rb +20 -16
  64. data/lib/twilio-ruby/rest/wireless/v1.rb +15 -12
  65. data/lib/twilio-ruby/twiml/voice_response.rb +22 -0
  66. data/lib/twilio-ruby/version.rb +1 -1
  67. data/spec/integration/api/v2010/account/message_spec.rb +37 -0
  68. data/spec/integration/messaging/v1/brand_registration_spec.rb +2 -2
  69. data/spec/integration/verify/v2/service/entity/factor_spec.rb +3 -3
  70. metadata +2 -2
@@ -24,11 +24,12 @@ module Twilio
24
24
  # @return [Twilio::REST::Preview::Sync::ServiceList]
25
25
  def services(sid=:unset)
26
26
  if sid.nil?
27
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @services ||= ServiceList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @services ||= ServiceList.new self
30
31
  else
31
- ServiceContext.new(self, sid)
32
+ ServiceContext.new(self, sid)
32
33
  end
33
34
  end
34
35
 
@@ -27,11 +27,12 @@ module Twilio
27
27
  # @return [Twilio::REST::Preview::TrustedComms::BrandedChannelList]
28
28
  def branded_channels(sid=:unset)
29
29
  if sid.nil?
30
- raise ArgumentError, 'sid cannot be nil'
31
- elsif sid == :unset
32
- @branded_channels ||= BrandedChannelList.new self
30
+ raise ArgumentError, 'sid cannot be nil'
31
+ end
32
+ if sid == :unset
33
+ @branded_channels ||= BrandedChannelList.new self
33
34
  else
34
- BrandedChannelContext.new(self, sid)
35
+ BrandedChannelContext.new(self, sid)
35
36
  end
36
37
  end
37
38
 
@@ -25,11 +25,12 @@ module Twilio
25
25
  # @return [Twilio::REST::Preview::Understand::AssistantList]
26
26
  def assistants(sid=:unset)
27
27
  if sid.nil?
28
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @assistants ||= AssistantList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @assistants ||= AssistantList.new self
31
32
  else
32
- AssistantContext.new(self, sid)
33
+ AssistantContext.new(self, sid)
33
34
  end
34
35
  end
35
36
 
@@ -26,11 +26,12 @@ module Twilio
26
26
  # @return [Twilio::REST::Preview::Wireless::CommandList]
27
27
  def commands(sid=:unset)
28
28
  if sid.nil?
29
- raise ArgumentError, 'sid cannot be nil'
30
- elsif sid == :unset
31
- @commands ||= CommandList.new self
29
+ raise ArgumentError, 'sid cannot be nil'
30
+ end
31
+ if sid == :unset
32
+ @commands ||= CommandList.new self
32
33
  else
33
- CommandContext.new(self, sid)
34
+ CommandContext.new(self, sid)
34
35
  end
35
36
  end
36
37
 
@@ -40,11 +41,12 @@ module Twilio
40
41
  # @return [Twilio::REST::Preview::Wireless::RatePlanList]
41
42
  def rate_plans(sid=:unset)
42
43
  if sid.nil?
43
- raise ArgumentError, 'sid cannot be nil'
44
- elsif sid == :unset
45
- @rate_plans ||= RatePlanList.new self
44
+ raise ArgumentError, 'sid cannot be nil'
45
+ end
46
+ if sid == :unset
47
+ @rate_plans ||= RatePlanList.new self
46
48
  else
47
- RatePlanContext.new(self, sid)
49
+ RatePlanContext.new(self, sid)
48
50
  end
49
51
  end
50
52
 
@@ -54,11 +56,12 @@ module Twilio
54
56
  # @return [Twilio::REST::Preview::Wireless::SimList]
55
57
  def sims(sid=:unset)
56
58
  if sid.nil?
57
- raise ArgumentError, 'sid cannot be nil'
58
- elsif sid == :unset
59
- @sims ||= SimList.new self
59
+ raise ArgumentError, 'sid cannot be nil'
60
+ end
61
+ if sid == :unset
62
+ @sims ||= SimList.new self
60
63
  else
61
- SimContext.new(self, sid)
64
+ SimContext.new(self, sid)
62
65
  end
63
66
  end
64
67
 
@@ -25,11 +25,12 @@ module Twilio
25
25
  # @return [Twilio::REST::Proxy::V1::ServiceList]
26
26
  def services(sid=:unset)
27
27
  if sid.nil?
28
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @services ||= ServiceList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @services ||= ServiceList.new self
31
32
  else
32
- ServiceContext.new(self, sid)
33
+ ServiceContext.new(self, sid)
33
34
  end
34
35
  end
35
36
 
@@ -378,7 +378,7 @@ module Twilio
378
378
  end
379
379
 
380
380
  ##
381
- # @return [String] The phone number of the Participant
381
+ # @return [String] The phone number or channel identifier of the Participant
382
382
  def identifier
383
383
  @properties['identifier']
384
384
  end
@@ -24,11 +24,12 @@ module Twilio
24
24
  # @return [Twilio::REST::Serverless::V1::ServiceList]
25
25
  def services(sid=:unset)
26
26
  if sid.nil?
27
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @services ||= ServiceList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @services ||= ServiceList.new self
30
31
  else
31
- ServiceContext.new(self, sid)
32
+ ServiceContext.new(self, sid)
32
33
  end
33
34
  end
34
35
 
@@ -24,11 +24,12 @@ module Twilio
24
24
  # @return [Twilio::REST::Studio::V1::FlowList]
25
25
  def flows(sid=:unset)
26
26
  if sid.nil?
27
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @flows ||= FlowList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @flows ||= FlowList.new self
30
31
  else
31
- FlowContext.new(self, sid)
32
+ FlowContext.new(self, sid)
32
33
  end
33
34
  end
34
35
 
@@ -25,11 +25,12 @@ module Twilio
25
25
  # @return [Twilio::REST::Studio::V2::FlowList]
26
26
  def flows(sid=:unset)
27
27
  if sid.nil?
28
- raise ArgumentError, 'sid cannot be nil'
29
- elsif sid == :unset
30
- @flows ||= FlowList.new self
28
+ raise ArgumentError, 'sid cannot be nil'
29
+ end
30
+ if sid == :unset
31
+ @flows ||= FlowList.new self
31
32
  else
32
- FlowContext.new(self, sid)
33
+ FlowContext.new(self, sid)
33
34
  end
34
35
  end
35
36
 
@@ -29,11 +29,12 @@ module Twilio
29
29
  # @return [Twilio::REST::Supersim::V1::CommandList]
30
30
  def commands(sid=:unset)
31
31
  if sid.nil?
32
- raise ArgumentError, 'sid cannot be nil'
33
- elsif sid == :unset
34
- @commands ||= CommandList.new self
32
+ raise ArgumentError, 'sid cannot be nil'
33
+ end
34
+ if sid == :unset
35
+ @commands ||= CommandList.new self
35
36
  else
36
- CommandContext.new(self, sid)
37
+ CommandContext.new(self, sid)
37
38
  end
38
39
  end
39
40
 
@@ -43,11 +44,12 @@ module Twilio
43
44
  # @return [Twilio::REST::Supersim::V1::FleetList]
44
45
  def fleets(sid=:unset)
45
46
  if sid.nil?
46
- raise ArgumentError, 'sid cannot be nil'
47
- elsif sid == :unset
48
- @fleets ||= FleetList.new self
47
+ raise ArgumentError, 'sid cannot be nil'
48
+ end
49
+ if sid == :unset
50
+ @fleets ||= FleetList.new self
49
51
  else
50
- FleetContext.new(self, sid)
52
+ FleetContext.new(self, sid)
51
53
  end
52
54
  end
53
55
 
@@ -57,11 +59,12 @@ module Twilio
57
59
  # @return [Twilio::REST::Supersim::V1::NetworkList]
58
60
  def networks(sid=:unset)
59
61
  if sid.nil?
60
- raise ArgumentError, 'sid cannot be nil'
61
- elsif sid == :unset
62
- @networks ||= NetworkList.new self
62
+ raise ArgumentError, 'sid cannot be nil'
63
+ end
64
+ if sid == :unset
65
+ @networks ||= NetworkList.new self
63
66
  else
64
- NetworkContext.new(self, sid)
67
+ NetworkContext.new(self, sid)
65
68
  end
66
69
  end
67
70
 
@@ -71,11 +74,12 @@ module Twilio
71
74
  # @return [Twilio::REST::Supersim::V1::NetworkAccessProfileList]
72
75
  def network_access_profiles(sid=:unset)
73
76
  if sid.nil?
74
- raise ArgumentError, 'sid cannot be nil'
75
- elsif sid == :unset
76
- @network_access_profiles ||= NetworkAccessProfileList.new self
77
+ raise ArgumentError, 'sid cannot be nil'
78
+ end
79
+ if sid == :unset
80
+ @network_access_profiles ||= NetworkAccessProfileList.new self
77
81
  else
78
- NetworkAccessProfileContext.new(self, sid)
82
+ NetworkAccessProfileContext.new(self, sid)
79
83
  end
80
84
  end
81
85
 
@@ -85,11 +89,12 @@ module Twilio
85
89
  # @return [Twilio::REST::Supersim::V1::SimList]
86
90
  def sims(sid=:unset)
87
91
  if sid.nil?
88
- raise ArgumentError, 'sid cannot be nil'
89
- elsif sid == :unset
90
- @sims ||= SimList.new self
92
+ raise ArgumentError, 'sid cannot be nil'
93
+ end
94
+ if sid == :unset
95
+ @sims ||= SimList.new self
91
96
  else
92
- SimContext.new(self, sid)
97
+ SimContext.new(self, sid)
93
98
  end
94
99
  end
95
100
 
@@ -24,11 +24,12 @@ module Twilio
24
24
  # @return [Twilio::REST::Sync::V1::ServiceList]
25
25
  def services(sid=:unset)
26
26
  if sid.nil?
27
- raise ArgumentError, 'sid cannot be nil'
28
- elsif sid == :unset
29
- @services ||= ServiceList.new self
27
+ raise ArgumentError, 'sid cannot be nil'
28
+ end
29
+ if sid == :unset
30
+ @services ||= ServiceList.new self
30
31
  else
31
- ServiceContext.new(self, sid)
32
+ ServiceContext.new(self, sid)
32
33
  end
33
34
  end
34
35
 
@@ -33,12 +33,9 @@ module Twilio
33
33
  # identifies the Sync Document
34
34
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
35
35
  # object that the Sync Document stores. Can be up to 16 KiB in length.
36
- # @param [String] ttl How long, in seconds, before the Sync Document expires and
37
- # is deleted (the Sync Document's time-to-live). Can be an integer from 0 to
38
- # 31,536,000 (1 year). The default value is `0`, which means the Sync Document
39
- # does not expire. The Sync Document will be deleted automatically after it
40
- # expires, but there can be a delay between the expiration time and the
41
- # resources's deletion.
36
+ # @param [String] ttl How long, {in
37
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
38
+ # the Sync Document expires and is deleted (the Sync Document's time-to-live).
42
39
  # @return [DocumentInstance] Created DocumentInstance
43
40
  def create(unique_name: :unset, data: :unset, ttl: :unset)
44
41
  data = Twilio::Values.of({
@@ -209,11 +206,9 @@ module Twilio
209
206
  # Update the DocumentInstance
210
207
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
211
208
  # object that the Sync Document stores. Can be up to 16 KiB in length.
212
- # @param [String] ttl How long, in seconds, before the Sync Document expires and
213
- # is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
214
- # default value is `0`, which means the Document resource does not expire. The
215
- # Document resource will be deleted automatically after it expires, but there can
216
- # be a delay between the expiration time and the resources's deletion.
209
+ # @param [String] ttl How long, {in
210
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
211
+ # the Sync Document expires and is deleted (time-to-live).
217
212
  # @param [String] if_match The If-Match HTTP request header
218
213
  # @return [DocumentInstance] Updated DocumentInstance
219
214
  def update(data: :unset, ttl: :unset, if_match: :unset)
@@ -398,11 +393,9 @@ module Twilio
398
393
  # Update the DocumentInstance
399
394
  # @param [Hash] data A JSON string that represents an arbitrary, schema-less
400
395
  # object that the Sync Document stores. Can be up to 16 KiB in length.
401
- # @param [String] ttl How long, in seconds, before the Sync Document expires and
402
- # is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
403
- # default value is `0`, which means the Document resource does not expire. The
404
- # Document resource will be deleted automatically after it expires, but there can
405
- # be a delay between the expiration time and the resources's deletion.
396
+ # @param [String] ttl How long, {in
397
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
398
+ # the Sync Document expires and is deleted (time-to-live).
406
399
  # @param [String] if_match The If-Match HTTP request header
407
400
  # @return [DocumentInstance] Updated DocumentInstance
408
401
  def update(data: :unset, ttl: :unset, if_match: :unset)
@@ -35,11 +35,9 @@ module Twilio
35
35
  # alternative to the `sid` in the URL path to address the resource.
36
36
  # @param [String] ttl Alias for collection_ttl. If both are provided, this value
37
37
  # is ignored.
38
- # @param [String] collection_ttl How long, in seconds, before the Sync List
39
- # expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000
40
- # (1 year). The default value is `0`, which means the Sync List does not expire.
41
- # The Sync List will be deleted automatically after it expires, but there can be a
42
- # delay between the expiration time and the resources's deletion.
38
+ # @param [String] collection_ttl How long, {in
39
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
40
+ # the Sync List expires (time-to-live) and is deleted.
43
41
  # @return [SyncListInstance] Created SyncListInstance
44
42
  def create(unique_name: :unset, ttl: :unset, collection_ttl: :unset)
45
43
  data = Twilio::Values.of({
@@ -211,11 +209,9 @@ module Twilio
211
209
  # Update the SyncListInstance
212
210
  # @param [String] ttl An alias for `collection_ttl`. If both are provided, this
213
211
  # value is ignored.
214
- # @param [String] collection_ttl How long, in seconds, before the Sync List
215
- # expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1
216
- # year). The default value is `0`, which means the Sync List does not expire. The
217
- # Sync List will be deleted automatically after it expires, but there can be a
218
- # delay between the expiration time and the resources's deletion.
212
+ # @param [String] collection_ttl How long, {in
213
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
214
+ # the Sync List expires (time-to-live) and is deleted.
219
215
  # @return [SyncListInstance] Updated SyncListInstance
220
216
  def update(ttl: :unset, collection_ttl: :unset)
221
217
  data = Twilio::Values.of({'Ttl' => ttl, 'CollectionTtl' => collection_ttl, })
@@ -413,11 +409,9 @@ module Twilio
413
409
  # Update the SyncListInstance
414
410
  # @param [String] ttl An alias for `collection_ttl`. If both are provided, this
415
411
  # value is ignored.
416
- # @param [String] collection_ttl How long, in seconds, before the Sync List
417
- # expires (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1
418
- # year). The default value is `0`, which means the Sync List does not expire. The
419
- # Sync List will be deleted automatically after it expires, but there can be a
420
- # delay between the expiration time and the resources's deletion.
412
+ # @param [String] collection_ttl How long, {in
413
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
414
+ # the Sync List expires (time-to-live) and is deleted.
421
415
  # @return [SyncListInstance] Updated SyncListInstance
422
416
  def update(ttl: :unset, collection_ttl: :unset)
423
417
  context.update(ttl: ttl, collection_ttl: collection_ttl, )
@@ -35,17 +35,12 @@ module Twilio
35
35
  # object that the List Item stores. Can be up to 16 KiB in length.
36
36
  # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
37
37
  # this value is ignored.
38
- # @param [String] item_ttl How long, in seconds, before the List Item expires
39
- # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
40
- # The default value is `0`, which means the List Item does not expire. The List
41
- # Item will be deleted automatically after it expires, but there can be a delay
42
- # between the expiration time and the resources's deletion.
43
- # @param [String] collection_ttl How long, in seconds, before the List Item's
44
- # parent Sync List expires (time-to-live) and is deleted. Can be an integer from
45
- # 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
46
- # List does not expire. The Sync List will be deleted automatically after it
47
- # expires, but there can be a delay between the expiration time and the
48
- # resources's deletion.
38
+ # @param [String] item_ttl How long, {in
39
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
40
+ # the List Item expires (time-to-live) and is deleted.
41
+ # @param [String] collection_ttl How long, {in
42
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
43
+ # the List Item's parent Sync List expires (time-to-live) and is deleted.
49
44
  # @return [SyncListItemInstance] Created SyncListItemInstance
50
45
  def create(data: nil, ttl: :unset, item_ttl: :unset, collection_ttl: :unset)
51
46
  data = Twilio::Values.of({
@@ -269,17 +264,14 @@ module Twilio
269
264
  # object that the List Item stores. Can be up to 16 KiB in length.
270
265
  # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
271
266
  # this value is ignored.
272
- # @param [String] item_ttl How long, in seconds, before the List Item expires
273
- # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
274
- # The default value is `0`, which means the List Item does not expire. The List
275
- # Item will be deleted automatically after it expires, but there can be a delay
276
- # between the expiration time and the resources's deletion.
277
- # @param [String] collection_ttl How long, in seconds, before the List Item's
278
- # parent Sync List expires (time-to-live) and is deleted. Can be an integer from
279
- # 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
280
- # List does not expire. The Sync List will be deleted automatically after it
281
- # expires, but there can be a delay between the expiration time and the
282
- # resources's deletion.
267
+ # @param [String] item_ttl How long, {in
268
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
269
+ # the List Item expires (time-to-live) and is deleted.
270
+ # @param [String] collection_ttl How long, {in
271
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
272
+ # the List Item's parent Sync List expires (time-to-live) and is deleted. This
273
+ # parameter can only be used when the List Item's `data` or `ttl` is updated in
274
+ # the same request.
283
275
  # @param [String] if_match If provided, applies this mutation if (and only if) the
284
276
  # “revision” field of this {map item] matches the provided value. This matches the
285
277
  # semantics of (and is implemented with) the HTTP [If-Match
@@ -464,17 +456,14 @@ module Twilio
464
456
  # object that the List Item stores. Can be up to 16 KiB in length.
465
457
  # @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
466
458
  # this value is ignored.
467
- # @param [String] item_ttl How long, in seconds, before the List Item expires
468
- # (time-to-live) and is deleted. Can be an integer from 0 to 31,536,000 (1 year).
469
- # The default value is `0`, which means the List Item does not expire. The List
470
- # Item will be deleted automatically after it expires, but there can be a delay
471
- # between the expiration time and the resources's deletion.
472
- # @param [String] collection_ttl How long, in seconds, before the List Item's
473
- # parent Sync List expires (time-to-live) and is deleted. Can be an integer from
474
- # 0 to 31,536,000 (1 year). The default value is `0`, which means the parent Sync
475
- # List does not expire. The Sync List will be deleted automatically after it
476
- # expires, but there can be a delay between the expiration time and the
477
- # resources's deletion.
459
+ # @param [String] item_ttl How long, {in
460
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
461
+ # the List Item expires (time-to-live) and is deleted.
462
+ # @param [String] collection_ttl How long, {in
463
+ # seconds}[https://www.twilio.com/docs/sync/limits#sync-payload-limits], before
464
+ # the List Item's parent Sync List expires (time-to-live) and is deleted. This
465
+ # parameter can only be used when the List Item's `data` or `ttl` is updated in
466
+ # the same request.
478
467
  # @param [String] if_match If provided, applies this mutation if (and only if) the
479
468
  # “revision” field of this {map item] matches the provided value. This matches the
480
469
  # semantics of (and is implemented with) the HTTP [If-Match