twilio-ruby 5.9.0 → 5.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +36 -24
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +34 -25
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +30 -21
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +1 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +10 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +2 -2
  10. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +2 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +6 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +6 -7
  14. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +1 -1
  15. data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb +1 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +12 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +11 -6
  18. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +10 -8
  19. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +10 -8
  20. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +11 -9
  21. data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +0 -1
  22. data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -1
  23. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +9 -6
  24. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +9 -3
  25. data/lib/twilio-ruby/rest/api/v2010/account.rb +13 -9
  26. data/lib/twilio-ruby/rest/chat/v1/credential.rb +42 -24
  27. data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +38 -18
  28. data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +60 -24
  29. data/lib/twilio-ruby/rest/chat/v1/service/channel/message.rb +28 -18
  30. data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +33 -24
  31. data/lib/twilio-ruby/rest/chat/v1/service/role.rb +26 -16
  32. data/lib/twilio-ruby/rest/chat/v1/service/user/user_channel.rb +4 -2
  33. data/lib/twilio-ruby/rest/chat/v1/service/user.rb +43 -24
  34. data/lib/twilio-ruby/rest/chat/v1/service.rb +74 -44
  35. data/lib/twilio-ruby/rest/chat/v2/credential.rb +61 -27
  36. data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +41 -18
  37. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +43 -25
  38. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +76 -37
  39. data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +432 -0
  40. data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +90 -35
  41. data/lib/twilio-ruby/rest/chat/v2/service/role.rb +23 -16
  42. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +4 -2
  43. data/lib/twilio-ruby/rest/chat/v2/service/user.rb +43 -25
  44. data/lib/twilio-ruby/rest/chat/v2/service.rb +93 -53
  45. data/lib/twilio-ruby/rest/chat.rb +4 -2
  46. data/lib/twilio-ruby/rest/ip_messaging/v1/credential.rb +42 -24
  47. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +38 -18
  48. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +60 -24
  49. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/message.rb +28 -18
  50. data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +33 -24
  51. data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +26 -16
  52. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user/user_channel.rb +4 -2
  53. data/lib/twilio-ruby/rest/ip_messaging/v1/service/user.rb +43 -24
  54. data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +74 -44
  55. data/lib/twilio-ruby/rest/ip_messaging/v2/credential.rb +61 -27
  56. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +41 -18
  57. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +43 -25
  58. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +76 -37
  59. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +432 -0
  60. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +90 -35
  61. data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +23 -16
  62. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +4 -2
  63. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user.rb +43 -25
  64. data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +93 -53
  65. data/lib/twilio-ruby/rest/ip_messaging.rb +4 -2
  66. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +12 -11
  67. data/lib/twilio-ruby/rest/monitor/v1/event.rb +11 -11
  68. data/lib/twilio-ruby/rest/monitor.rb +1 -1
  69. data/lib/twilio-ruby/rest/notify/v1/credential.rb +47 -22
  70. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +59 -26
  71. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +104 -29
  72. data/lib/twilio-ruby/rest/notify/v1/service.rb +86 -48
  73. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +2 -2
  74. data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
  75. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type/field_value.rb +22 -16
  76. data/lib/twilio-ruby/rest/preview/understand/assistant/field_type.rb +21 -15
  77. data/lib/twilio-ruby/rest/preview/understand/assistant/intent/field.rb +17 -14
  78. data/lib/twilio-ruby/rest/preview/understand/assistant/intent/sample.rb +36 -25
  79. data/lib/twilio-ruby/rest/preview/understand/assistant/intent.rb +21 -15
  80. data/lib/twilio-ruby/rest/preview/understand/assistant/model_build.rb +19 -13
  81. data/lib/twilio-ruby/rest/preview/understand/assistant/query.rb +42 -28
  82. data/lib/twilio-ruby/rest/preview/understand/assistant.rb +39 -21
  83. data/lib/twilio-ruby/rest/preview.rb +10 -9
  84. data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +5 -5
  85. data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +4 -4
  86. data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +3 -3
  87. data/lib/twilio-ruby/rest/pricing/v1/voice/number.rb +5 -5
  88. data/lib/twilio-ruby/rest/sync/v1/service/document.rb +12 -13
  89. data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +28 -22
  90. data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +7 -5
  91. data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +31 -14
  92. data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +3 -3
  93. data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +2 -2
  94. data/lib/twilio-ruby/rest/sync/v1/service.rb +24 -27
  95. data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
  96. data/lib/twilio-ruby/rest/video/v1/recording.rb +45 -31
  97. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +1 -1
  98. data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +18 -6
  99. data/lib/twilio-ruby/rest/video/v1.rb +13 -12
  100. data/lib/twilio-ruby/rest/video.rb +9 -8
  101. data/lib/twilio-ruby/rest/wireless/v1/command.rb +43 -33
  102. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +48 -35
  103. data/lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb +21 -23
  104. data/lib/twilio-ruby/rest/wireless/v1/sim/usage_record.rb +32 -22
  105. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +121 -70
  106. data/lib/twilio-ruby/rest/wireless.rb +6 -3
  107. data/lib/twilio-ruby/version.rb +1 -1
  108. data/spec/integration/chat/v2/service/channel/webhook_spec.rb +307 -0
  109. data/spec/integration/chat/v2/service/channel_spec.rb +4 -0
  110. data/spec/integration/ip_messaging/v2/service/channel/webhook_spec.rb +307 -0
  111. data/spec/integration/ip_messaging/v2/service/channel_spec.rb +4 -0
  112. metadata +9 -3
@@ -15,7 +15,9 @@ module Twilio
15
15
  ##
16
16
  # Initialize the RoleList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] service_sid The service_sid
18
+ # @param [String] service_sid The unique id of the
19
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this role
20
+ # belongs to.
19
21
  # @return [RoleList] RoleList
20
22
  def initialize(version, service_sid: nil)
21
23
  super(version)
@@ -28,9 +30,13 @@ module Twilio
28
30
  ##
29
31
  # Retrieve a single page of RoleInstance records from the API.
30
32
  # Request is executed immediately.
31
- # @param [String] friendly_name The friendly_name
32
- # @param [role.RoleType] type The type
33
- # @param [String] permission The permission
33
+ # @param [String] friendly_name The human-readable name of this role.
34
+ # @param [role.RoleType] type What kind of role this is. Either `channel` for
35
+ # [Channel](https://www.twilio.com/docs/api/chat/rest/v1/channel) roles or
36
+ # `deployment` for
37
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) roles.
38
+ # @param [String] permission (multiple) A permission this role should have.
39
+ # Consult the table above for the list of possible permissions.
34
40
  # @return [RoleInstance] Newly created RoleInstance
35
41
  def create(friendly_name: nil, type: nil, permission: nil)
36
42
  data = Twilio::Values.of({
@@ -205,7 +211,8 @@ module Twilio
205
211
 
206
212
  ##
207
213
  # Update the RoleInstance
208
- # @param [String] permission The permission
214
+ # @param [String] permission (multiple) A permission this role should have.
215
+ # Consult the table above for the list of possible permissions.
209
216
  # @return [RoleInstance] Updated RoleInstance
210
217
  def update(permission: nil)
211
218
  data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e }, })
@@ -232,7 +239,9 @@ module Twilio
232
239
  # Initialize the RoleInstance
233
240
  # @param [Version] version Version that contains the resource
234
241
  # @param [Hash] payload payload that contains response from Twilio
235
- # @param [String] service_sid The service_sid
242
+ # @param [String] service_sid The unique id of the
243
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this role
244
+ # belongs to.
236
245
  # @param [String] sid The sid
237
246
  # @return [RoleInstance] RoleInstance
238
247
  def initialize(version, payload, service_sid: nil, sid: nil)
@@ -268,55 +277,55 @@ module Twilio
268
277
  end
269
278
 
270
279
  ##
271
- # @return [String] The sid
280
+ # @return [String] A 34 character string that uniquely identifies this resource.
272
281
  def sid
273
282
  @properties['sid']
274
283
  end
275
284
 
276
285
  ##
277
- # @return [String] The account_sid
286
+ # @return [String] The unique id of the Account responsible for this role.
278
287
  def account_sid
279
288
  @properties['account_sid']
280
289
  end
281
290
 
282
291
  ##
283
- # @return [String] The service_sid
292
+ # @return [String] The unique id of the Service this role belongs to.
284
293
  def service_sid
285
294
  @properties['service_sid']
286
295
  end
287
296
 
288
297
  ##
289
- # @return [String] The friendly_name
298
+ # @return [String] The human-readable name of this role.
290
299
  def friendly_name
291
300
  @properties['friendly_name']
292
301
  end
293
302
 
294
303
  ##
295
- # @return [role.RoleType] The type
304
+ # @return [role.RoleType] What kind of role this is.
296
305
  def type
297
306
  @properties['type']
298
307
  end
299
308
 
300
309
  ##
301
- # @return [String] The permissions
310
+ # @return [String] A JSON array of the permissions this role has.
302
311
  def permissions
303
312
  @properties['permissions']
304
313
  end
305
314
 
306
315
  ##
307
- # @return [Time] The date_created
316
+ # @return [Time] The date that this resource was created in ISO 8601 format.
308
317
  def date_created
309
318
  @properties['date_created']
310
319
  end
311
320
 
312
321
  ##
313
- # @return [Time] The date_updated
322
+ # @return [Time] The date that this resource was last updated in ISO 8601 format.
314
323
  def date_updated
315
324
  @properties['date_updated']
316
325
  end
317
326
 
318
327
  ##
319
- # @return [String] The url
328
+ # @return [String] An absolute URL for this role.
320
329
  def url
321
330
  @properties['url']
322
331
  end
@@ -337,7 +346,8 @@ module Twilio
337
346
 
338
347
  ##
339
348
  # Update the RoleInstance
340
- # @param [String] permission The permission
349
+ # @param [String] permission (multiple) A permission this role should have.
350
+ # Consult the table above for the list of possible permissions.
341
351
  # @return [RoleInstance] Updated RoleInstance
342
352
  def update(permission: nil)
343
353
  context.update(permission: permission, )
@@ -17,7 +17,8 @@ module Twilio
17
17
  # Initialize the UserChannelList
18
18
  # @param [Version] version Version that contains the resource
19
19
  # @param [String] service_sid The service_sid
20
- # @param [String] user_sid The sid
20
+ # @param [String] user_sid A 34 character string that uniquely identifies this
21
+ # resource.
21
22
  # @return [UserChannelList] UserChannelList
22
23
  def initialize(version, service_sid: nil, user_sid: nil)
23
24
  super(version)
@@ -156,7 +157,8 @@ module Twilio
156
157
  # @param [Version] version Version that contains the resource
157
158
  # @param [Hash] payload payload that contains response from Twilio
158
159
  # @param [String] service_sid The service_sid
159
- # @param [String] user_sid The sid
160
+ # @param [String] user_sid A 34 character string that uniquely identifies this
161
+ # resource.
160
162
  # @return [UserChannelInstance] UserChannelInstance
161
163
  def initialize(version, payload, service_sid: nil, user_sid: nil)
162
164
  super(version)
@@ -15,7 +15,9 @@ module Twilio
15
15
  ##
16
16
  # Initialize the UserList
17
17
  # @param [Version] version Version that contains the resource
18
- # @param [String] service_sid The service_sid
18
+ # @param [String] service_sid The unique id of the
19
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this user
20
+ # belongs to.
19
21
  # @return [UserList] UserList
20
22
  def initialize(version, service_sid: nil)
21
23
  super(version)
@@ -28,10 +30,17 @@ module Twilio
28
30
  ##
29
31
  # Retrieve a single page of UserInstance records from the API.
30
32
  # Request is executed immediately.
31
- # @param [String] identity The identity
32
- # @param [String] role_sid The role_sid
33
- # @param [String] attributes The attributes
34
- # @param [String] friendly_name The friendly_name
33
+ # @param [String] identity A unique string that identifies the user within this
34
+ # service - often a username or email address. See the [identity][identity] docs
35
+ # for more details.
36
+ # @param [String] role_sid The unique id of the
37
+ # [Role](https://www.twilio.com/docs/api/chat/rest/v1/roles) assigned to this
38
+ # user.
39
+ # @param [String] attributes An optional string used to contain any metadata or
40
+ # other information for the User. The string must contain structurally valid JSON
41
+ # if specified.
42
+ # @param [String] friendly_name An optional human readable string representing the
43
+ # user. Often used for display purposes.
35
44
  # @return [UserInstance] Newly created UserInstance
36
45
  def create(identity: nil, role_sid: :unset, attributes: :unset, friendly_name: :unset)
37
46
  data = Twilio::Values.of({
@@ -210,9 +219,13 @@ module Twilio
210
219
 
211
220
  ##
212
221
  # Update the UserInstance
213
- # @param [String] role_sid The role_sid
214
- # @param [String] attributes The attributes
215
- # @param [String] friendly_name The friendly_name
222
+ # @param [String] role_sid The unique id of the [Role][role] assigned to this
223
+ # user.
224
+ # @param [String] attributes An optional string used to contain any metadata or
225
+ # other information for the User. The string must contain structurally valid JSON
226
+ # if specified.
227
+ # @param [String] friendly_name An optional human readable string representing the
228
+ # user. Often used for display purposes.
216
229
  # @return [UserInstance] Updated UserInstance
217
230
  def update(role_sid: :unset, attributes: :unset, friendly_name: :unset)
218
231
  data = Twilio::Values.of({
@@ -259,7 +272,9 @@ module Twilio
259
272
  # Initialize the UserInstance
260
273
  # @param [Version] version Version that contains the resource
261
274
  # @param [Hash] payload payload that contains response from Twilio
262
- # @param [String] service_sid The service_sid
275
+ # @param [String] service_sid The unique id of the
276
+ # [Service](https://www.twilio.com/docs/api/chat/rest/v1/services) this user
277
+ # belongs to.
263
278
  # @param [String] sid The sid
264
279
  # @return [UserInstance] UserInstance
265
280
  def initialize(version, payload, service_sid: nil, sid: nil)
@@ -300,67 +315,67 @@ module Twilio
300
315
  end
301
316
 
302
317
  ##
303
- # @return [String] The sid
318
+ # @return [String] A 34 character string that uniquely identifies this resource.
304
319
  def sid
305
320
  @properties['sid']
306
321
  end
307
322
 
308
323
  ##
309
- # @return [String] The account_sid
324
+ # @return [String] The unique id of the Account responsible for this user.
310
325
  def account_sid
311
326
  @properties['account_sid']
312
327
  end
313
328
 
314
329
  ##
315
- # @return [String] The service_sid
330
+ # @return [String] The unique id of the Service this user belongs to.
316
331
  def service_sid
317
332
  @properties['service_sid']
318
333
  end
319
334
 
320
335
  ##
321
- # @return [String] The attributes
336
+ # @return [String] An optional string metadata field you can use to store any data you wish.
322
337
  def attributes
323
338
  @properties['attributes']
324
339
  end
325
340
 
326
341
  ##
327
- # @return [String] The friendly_name
342
+ # @return [String] The human-readable name of this user.
328
343
  def friendly_name
329
344
  @properties['friendly_name']
330
345
  end
331
346
 
332
347
  ##
333
- # @return [String] The role_sid
348
+ # @return [String] The unique id of the [Role][role] assigned to this user.
334
349
  def role_sid
335
350
  @properties['role_sid']
336
351
  end
337
352
 
338
353
  ##
339
- # @return [String] The identity
354
+ # @return [String] A unique string that identifies the user within this service - often a username or email address.
340
355
  def identity
341
356
  @properties['identity']
342
357
  end
343
358
 
344
359
  ##
345
- # @return [Boolean] The is_online
360
+ # @return [Boolean] Indicates whether the User is actively connected to the Service instance and online.
346
361
  def is_online
347
362
  @properties['is_online']
348
363
  end
349
364
 
350
365
  ##
351
- # @return [Boolean] The is_notifiable
366
+ # @return [Boolean] Indicates whether the User has a potentially valid Push Notification registration for the Service instance.
352
367
  def is_notifiable
353
368
  @properties['is_notifiable']
354
369
  end
355
370
 
356
371
  ##
357
- # @return [Time] The date_created
372
+ # @return [Time] The date that this resource was created in ISO 8601 format.
358
373
  def date_created
359
374
  @properties['date_created']
360
375
  end
361
376
 
362
377
  ##
363
- # @return [Time] The date_updated
378
+ # @return [Time] The date that this resource was last updated in ISO 8601 format.
364
379
  def date_updated
365
380
  @properties['date_updated']
366
381
  end
@@ -378,7 +393,7 @@ module Twilio
378
393
  end
379
394
 
380
395
  ##
381
- # @return [String] The url
396
+ # @return [String] An absolute URL for this user.
382
397
  def url
383
398
  @properties['url']
384
399
  end
@@ -399,9 +414,13 @@ module Twilio
399
414
 
400
415
  ##
401
416
  # Update the UserInstance
402
- # @param [String] role_sid The role_sid
403
- # @param [String] attributes The attributes
404
- # @param [String] friendly_name The friendly_name
417
+ # @param [String] role_sid The unique id of the [Role][role] assigned to this
418
+ # user.
419
+ # @param [String] attributes An optional string used to contain any metadata or
420
+ # other information for the User. The string must contain structurally valid JSON
421
+ # if specified.
422
+ # @param [String] friendly_name An optional human readable string representing the
423
+ # user. Often used for display purposes.
405
424
  # @return [UserInstance] Updated UserInstance
406
425
  def update(role_sid: :unset, attributes: :unset, friendly_name: :unset)
407
426
  context.update(role_sid: role_sid, attributes: attributes, friendly_name: friendly_name, )
@@ -26,7 +26,7 @@ module Twilio
26
26
  ##
27
27
  # Retrieve a single page of ServiceInstance records from the API.
28
28
  # Request is executed immediately.
29
- # @param [String] friendly_name The friendly_name
29
+ # @param [String] friendly_name Human-readable name for this service instance
30
30
  # @return [ServiceInstance] Newly created ServiceInstance
31
31
  def create(friendly_name: nil)
32
32
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -201,15 +201,22 @@ module Twilio
201
201
 
202
202
  ##
203
203
  # Update the ServiceInstance
204
- # @param [String] friendly_name The friendly_name
204
+ # @param [String] friendly_name Human-readable name for this service instance
205
205
  # @param [String] default_service_role_sid The default_service_role_sid
206
- # @param [String] default_channel_role_sid The default_channel_role_sid
207
- # @param [String] default_channel_creator_role_sid The
208
- # default_channel_creator_role_sid
209
- # @param [Boolean] read_status_enabled The read_status_enabled
210
- # @param [Boolean] reachability_enabled The reachability_enabled
211
- # @param [String] typing_indicator_timeout The typing_indicator_timeout
212
- # @param [String] consumption_report_interval The consumption_report_interval
206
+ # @param [String] default_channel_role_sid Channel role assigned on channel join
207
+ # (see [Roles](https://www.twilio.com/docs/api/chat/rest/v1/roles) data model for
208
+ # the details)
209
+ # @param [String] default_channel_creator_role_sid Channel role assigned to
210
+ # creator of channel when joining for first time
211
+ # @param [Boolean] read_status_enabled `true` if the member read status feature is
212
+ # enabled, `false` if not. Defaults to `true`.
213
+ # @param [Boolean] reachability_enabled `true` if the reachability feature should
214
+ # be enabled. Defaults to `false`
215
+ # @param [String] typing_indicator_timeout ISO 8601 duration indicating the
216
+ # timeout after "started typing" event when client should assume that user is not
217
+ # typing anymore even if no "ended typing" message received
218
+ # @param [String] consumption_report_interval ISO 8601 duration indicating the
219
+ # interval between consumption reports sent from client endpoints.
213
220
  # @param [Boolean] notifications_new_message_enabled The
214
221
  # notifications.new_message.enabled
215
222
  # @param [String] notifications_new_message_template The
@@ -226,10 +233,18 @@ module Twilio
226
233
  # notifications.invited_to_channel.enabled
227
234
  # @param [String] notifications_invited_to_channel_template The
228
235
  # notifications.invited_to_channel.template
229
- # @param [String] pre_webhook_url The pre_webhook_url
230
- # @param [String] post_webhook_url The post_webhook_url
231
- # @param [String] webhook_method The webhook_method
232
- # @param [String] webhook_filters The webhook_filters
236
+ # @param [String] pre_webhook_url The webhook URL for PRE-Event webhooks. See
237
+ # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
238
+ # details.
239
+ # @param [String] post_webhook_url The webhook URL for POST-Event webhooks. See
240
+ # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
241
+ # details.
242
+ # @param [String] webhook_method The webhook request format to use. Must be POST
243
+ # or GET. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for
244
+ # more details.
245
+ # @param [String] webhook_filters The list of WebHook events that are enabled for
246
+ # this Service instance. See [Webhook
247
+ # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
233
248
  # @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
234
249
  # @param [String] webhooks_on_message_send_method The
235
250
  # webhooks.on_message_send.method
@@ -517,73 +532,73 @@ module Twilio
517
532
  end
518
533
 
519
534
  ##
520
- # @return [String] The sid
535
+ # @return [String] A 34 character string that uniquely identifies this resource.
521
536
  def sid
522
537
  @properties['sid']
523
538
  end
524
539
 
525
540
  ##
526
- # @return [String] The account_sid
541
+ # @return [String] The unique id of the Account responsible for this service.
527
542
  def account_sid
528
543
  @properties['account_sid']
529
544
  end
530
545
 
531
546
  ##
532
- # @return [String] The friendly_name
547
+ # @return [String] The human-readable name of this service.
533
548
  def friendly_name
534
549
  @properties['friendly_name']
535
550
  end
536
551
 
537
552
  ##
538
- # @return [Time] The date_created
553
+ # @return [Time] The date that this resource was created
539
554
  def date_created
540
555
  @properties['date_created']
541
556
  end
542
557
 
543
558
  ##
544
- # @return [Time] The date_updated
559
+ # @return [Time] The date that this resource was last updated
545
560
  def date_updated
546
561
  @properties['date_updated']
547
562
  end
548
563
 
549
564
  ##
550
- # @return [String] The default_service_role_sid
565
+ # @return [String] The service role assigned to users when they are added to the service.
551
566
  def default_service_role_sid
552
567
  @properties['default_service_role_sid']
553
568
  end
554
569
 
555
570
  ##
556
- # @return [String] The default_channel_role_sid
571
+ # @return [String] The channel role assigned to users when they are added to a channel.
557
572
  def default_channel_role_sid
558
573
  @properties['default_channel_role_sid']
559
574
  end
560
575
 
561
576
  ##
562
- # @return [String] The default_channel_creator_role_sid
577
+ # @return [String] The channel role assigned to a channel creator when joining a new channel.
563
578
  def default_channel_creator_role_sid
564
579
  @properties['default_channel_creator_role_sid']
565
580
  end
566
581
 
567
582
  ##
568
- # @return [Boolean] The read_status_enabled
583
+ # @return [Boolean] Enable the Message Constumption Horizon feature.
569
584
  def read_status_enabled
570
585
  @properties['read_status_enabled']
571
586
  end
572
587
 
573
588
  ##
574
- # @return [Boolean] The reachability_enabled
589
+ # @return [Boolean] Indicates whether the the Reachability feature is enabled for this Service instance.
575
590
  def reachability_enabled
576
591
  @properties['reachability_enabled']
577
592
  end
578
593
 
579
594
  ##
580
- # @return [String] The typing_indicator_timeout
595
+ # @return [String] The amount of time after a "started typing" event when clients should assume that user is no longer typing, even if no "ended typing" message was received.
581
596
  def typing_indicator_timeout
582
597
  @properties['typing_indicator_timeout']
583
598
  end
584
599
 
585
600
  ##
586
- # @return [String] The consumption_report_interval
601
+ # @return [String] The interval between consumption reports submission batches from client endpoints.
587
602
  def consumption_report_interval
588
603
  @properties['consumption_report_interval']
589
604
  end
@@ -601,43 +616,43 @@ module Twilio
601
616
  end
602
617
 
603
618
  ##
604
- # @return [String] The pre_webhook_url
619
+ # @return [String] The webhook URL for PRE-Event webhooks.
605
620
  def pre_webhook_url
606
621
  @properties['pre_webhook_url']
607
622
  end
608
623
 
609
624
  ##
610
- # @return [String] The post_webhook_url
625
+ # @return [String] The webhook URL for POST-Event webhooks.
611
626
  def post_webhook_url
612
627
  @properties['post_webhook_url']
613
628
  end
614
629
 
615
630
  ##
616
- # @return [String] The webhook_method
631
+ # @return [String] The webhook request format to use.
617
632
  def webhook_method
618
633
  @properties['webhook_method']
619
634
  end
620
635
 
621
636
  ##
622
- # @return [String] The webhook_filters
637
+ # @return [String] The list of WebHook events that are enabled for this Service instance.
623
638
  def webhook_filters
624
639
  @properties['webhook_filters']
625
640
  end
626
641
 
627
642
  ##
628
- # @return [Hash] The notifications
643
+ # @return [Hash] Notification configuration for the Service instance.
629
644
  def notifications
630
645
  @properties['notifications']
631
646
  end
632
647
 
633
648
  ##
634
- # @return [String] The url
649
+ # @return [String] An absolute URL for this service.
635
650
  def url
636
651
  @properties['url']
637
652
  end
638
653
 
639
654
  ##
640
- # @return [String] The links
655
+ # @return [String] URLs to access the Channels, Roles, and Users for this service.
641
656
  def links
642
657
  @properties['links']
643
658
  end
@@ -658,15 +673,22 @@ module Twilio
658
673
 
659
674
  ##
660
675
  # Update the ServiceInstance
661
- # @param [String] friendly_name The friendly_name
676
+ # @param [String] friendly_name Human-readable name for this service instance
662
677
  # @param [String] default_service_role_sid The default_service_role_sid
663
- # @param [String] default_channel_role_sid The default_channel_role_sid
664
- # @param [String] default_channel_creator_role_sid The
665
- # default_channel_creator_role_sid
666
- # @param [Boolean] read_status_enabled The read_status_enabled
667
- # @param [Boolean] reachability_enabled The reachability_enabled
668
- # @param [String] typing_indicator_timeout The typing_indicator_timeout
669
- # @param [String] consumption_report_interval The consumption_report_interval
678
+ # @param [String] default_channel_role_sid Channel role assigned on channel join
679
+ # (see [Roles](https://www.twilio.com/docs/api/chat/rest/v1/roles) data model for
680
+ # the details)
681
+ # @param [String] default_channel_creator_role_sid Channel role assigned to
682
+ # creator of channel when joining for first time
683
+ # @param [Boolean] read_status_enabled `true` if the member read status feature is
684
+ # enabled, `false` if not. Defaults to `true`.
685
+ # @param [Boolean] reachability_enabled `true` if the reachability feature should
686
+ # be enabled. Defaults to `false`
687
+ # @param [String] typing_indicator_timeout ISO 8601 duration indicating the
688
+ # timeout after "started typing" event when client should assume that user is not
689
+ # typing anymore even if no "ended typing" message received
690
+ # @param [String] consumption_report_interval ISO 8601 duration indicating the
691
+ # interval between consumption reports sent from client endpoints.
670
692
  # @param [Boolean] notifications_new_message_enabled The
671
693
  # notifications.new_message.enabled
672
694
  # @param [String] notifications_new_message_template The
@@ -683,10 +705,18 @@ module Twilio
683
705
  # notifications.invited_to_channel.enabled
684
706
  # @param [String] notifications_invited_to_channel_template The
685
707
  # notifications.invited_to_channel.template
686
- # @param [String] pre_webhook_url The pre_webhook_url
687
- # @param [String] post_webhook_url The post_webhook_url
688
- # @param [String] webhook_method The webhook_method
689
- # @param [String] webhook_filters The webhook_filters
708
+ # @param [String] pre_webhook_url The webhook URL for PRE-Event webhooks. See
709
+ # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
710
+ # details.
711
+ # @param [String] post_webhook_url The webhook URL for POST-Event webhooks. See
712
+ # [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more
713
+ # details.
714
+ # @param [String] webhook_method The webhook request format to use. Must be POST
715
+ # or GET. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for
716
+ # more details.
717
+ # @param [String] webhook_filters The list of WebHook events that are enabled for
718
+ # this Service instance. See [Webhook
719
+ # Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
690
720
  # @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
691
721
  # @param [String] webhooks_on_message_send_method The
692
722
  # webhooks.on_message_send.method