twilio-ruby 5.40.2 → 5.40.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +15 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/framework/version.rb +2 -1
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
  13. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -2
  14. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
  15. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
  17. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
  18. data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
  19. data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
  20. data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
  21. data/lib/twilio-ruby/rest/conversations.rb +0 -16
  22. data/lib/twilio-ruby/rest/conversations/v1.rb +0 -24
  23. data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +17 -7
  24. data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
  25. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
  26. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
  27. data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +22 -16
  28. data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +42 -36
  29. data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
  30. data/lib/twilio-ruby/rest/conversations/v1/credential.rb +1 -1
  31. data/lib/twilio-ruby/rest/conversations/v1/role.rb +4 -2
  32. data/lib/twilio-ruby/rest/conversations/v1/service.rb +1 -1
  33. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +28 -25
  34. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +30 -18
  35. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
  36. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +10 -10
  37. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +23 -20
  38. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +32 -26
  39. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +52 -46
  40. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +24 -21
  41. data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +13 -11
  42. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +23 -23
  43. data/lib/twilio-ruby/rest/conversations/v1/user.rb +14 -14
  44. data/lib/twilio-ruby/rest/events.rb +10 -1
  45. data/lib/twilio-ruby/rest/events/v1.rb +17 -1
  46. data/lib/twilio-ruby/rest/events/v1/event_type.rb +8 -8
  47. data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
  48. data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
  49. data/lib/twilio-ruby/rest/events/v1/subscription.rb +28 -8
  50. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -109
  51. data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
  52. data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
  53. data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
  54. data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
  55. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
  56. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
  57. data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
  58. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
  59. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
  60. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
  61. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
  62. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -26
  63. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
  64. data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
  65. data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
  66. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -1
  67. data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
  68. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
  69. data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
  70. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
  71. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
  72. data/lib/twilio-ruby/version.rb +1 -1
  73. data/spec/framework/version_spec.rb +11 -0
  74. data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
  75. data/spec/integration/conversations/v1/configuration_spec.rb +4 -2
  76. data/spec/integration/conversations/v1/{notification_spec.rb → service/configuration/notification_spec.rb} +12 -4
  77. data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
  78. data/spec/integration/events/v1/schema_spec.rb +46 -0
  79. data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +0 -121
  80. data/spec/integration/events/v1/subscription_spec.rb +38 -0
  81. data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
  82. metadata +17 -8
  83. data/lib/twilio-ruby/rest/conversations/v1/notification.rb +0 -310
  84. data/lib/twilio-ruby/rest/conversations/v1/webhook.rb +0 -262
@@ -34,7 +34,7 @@ module Twilio
34
34
  # resource's `sid` in the URL.
35
35
  # @param [Time] date_created The date that this resource was created.
36
36
  # @param [Time] date_updated The date that this resource was last updated.
37
- # @param [String] messaging_service_sid The unique id of the [SMS
37
+ # @param [String] messaging_service_sid The unique ID of the [Messaging
38
38
  # Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs
39
39
  # to.
40
40
  # @param [String] attributes An optional string metadata field you can use to
@@ -219,7 +219,7 @@ module Twilio
219
219
  # store any data you wish. The string value must contain structurally valid JSON
220
220
  # if specified. **Note** that if the attributes are not set "{}" will be
221
221
  # returned.
222
- # @param [String] messaging_service_sid The unique id of the [SMS
222
+ # @param [String] messaging_service_sid The unique ID of the [Messaging
223
223
  # Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs
224
224
  # to.
225
225
  # @param [conversation.State] state Current state of this conversation. Can be
@@ -385,19 +385,19 @@ module Twilio
385
385
  end
386
386
 
387
387
  ##
388
- # @return [String] The unique id of the Account responsible for this conversation.
388
+ # @return [String] The unique ID of the Account responsible for this conversation.
389
389
  def account_sid
390
390
  @properties['account_sid']
391
391
  end
392
392
 
393
393
  ##
394
- # @return [String] The unique id of the Chat Service this conversation belongs to.
394
+ # @return [String] The unique ID of the Conversation Service this conversation belongs to.
395
395
  def chat_service_sid
396
396
  @properties['chat_service_sid']
397
397
  end
398
398
 
399
399
  ##
400
- # @return [String] The unique id of the SMS Service this conversation belongs to.
400
+ # @return [String] The unique ID of the Messaging Service this conversation belongs to.
401
401
  def messaging_service_sid
402
402
  @properties['messaging_service_sid']
403
403
  end
@@ -472,7 +472,7 @@ module Twilio
472
472
  # store any data you wish. The string value must contain structurally valid JSON
473
473
  # if specified. **Note** that if the attributes are not set "{}" will be
474
474
  # returned.
475
- # @param [String] messaging_service_sid The unique id of the [SMS
475
+ # @param [String] messaging_service_sid The unique ID of the [Messaging
476
476
  # Service](https://www.twilio.com/docs/sms/services/api) this conversation belongs
477
477
  # to.
478
478
  # @param [conversation.State] state Current state of this conversation. Can be
@@ -17,8 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the MessageList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] conversation_sid The unique id of the
21
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
20
+ # @param [String] conversation_sid The unique ID of the
21
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
22
+ # for this message.
22
23
  # @return [MessageList] MessageList
23
24
  def initialize(version, conversation_sid: nil)
24
25
  super(version)
@@ -40,7 +41,7 @@ module Twilio
40
41
  # @param [String] attributes A string metadata field you can use to store any data
41
42
  # you wish. The string value must contain structurally valid JSON if specified.
42
43
  # **Note** that if the attributes are not set "{}" will be returned.
43
- # @param [String] media_sid The Media Sid to be attached to the new Message.
44
+ # @param [String] media_sid The Media SID to be attached to the new Message.
44
45
  # @param [message.WebhookEnabledType] x_twilio_webhook_enabled The
45
46
  # X-Twilio-Webhook-Enabled HTTP request header
46
47
  # @return [MessageInstance] Created MessageInstance
@@ -184,8 +185,9 @@ module Twilio
184
185
  ##
185
186
  # Initialize the MessageContext
186
187
  # @param [Version] version Version that contains the resource
187
- # @param [String] conversation_sid The unique id of the
188
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
188
+ # @param [String] conversation_sid The unique ID of the
189
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
190
+ # for this message.
189
191
  # @param [String] sid A 34 character string that uniquely identifies this
190
192
  # resource.
191
193
  # @return [MessageContext] MessageContext
@@ -304,8 +306,9 @@ module Twilio
304
306
  # Initialize the MessageInstance
305
307
  # @param [Version] version Version that contains the resource
306
308
  # @param [Hash] payload payload that contains response from Twilio
307
- # @param [String] conversation_sid The unique id of the
308
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
309
+ # @param [String] conversation_sid The unique ID of the
310
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
311
+ # for this message.
309
312
  # @param [String] sid A 34 character string that uniquely identifies this
310
313
  # resource.
311
314
  # @return [MessageInstance] MessageInstance
@@ -347,13 +350,13 @@ module Twilio
347
350
  end
348
351
 
349
352
  ##
350
- # @return [String] The unique id of the Account responsible for this message.
353
+ # @return [String] The unique ID of the Account responsible for this message.
351
354
  def account_sid
352
355
  @properties['account_sid']
353
356
  end
354
357
 
355
358
  ##
356
- # @return [String] The unique id of the Conversation for this message.
359
+ # @return [String] The unique ID of the Conversation for this message.
357
360
  def conversation_sid
358
361
  @properties['conversation_sid']
359
362
  end
@@ -395,7 +398,7 @@ module Twilio
395
398
  end
396
399
 
397
400
  ##
398
- # @return [String] The unique id of messages's author participant.
401
+ # @return [String] The unique ID of messages's author participant.
399
402
  def participant_sid
400
403
  @properties['participant_sid']
401
404
  end
@@ -18,10 +18,12 @@ module Twilio
18
18
  ##
19
19
  # Initialize the DeliveryReceiptList
20
20
  # @param [Version] version Version that contains the resource
21
- # @param [String] conversation_sid The unique id of the
22
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
23
- # @param [String] message_sid The sid of the message within a
24
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to
21
+ # @param [String] conversation_sid The unique ID of the
22
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
23
+ # for this message.
24
+ # @param [String] message_sid The SID of the message within a
25
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
26
+ # the delivery receipt belongs to
25
27
  # @return [DeliveryReceiptList] DeliveryReceiptList
26
28
  def initialize(version, conversation_sid: nil, message_sid: nil)
27
29
  super(version)
@@ -160,10 +162,12 @@ module Twilio
160
162
  ##
161
163
  # Initialize the DeliveryReceiptContext
162
164
  # @param [Version] version Version that contains the resource
163
- # @param [String] conversation_sid The unique id of the
164
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
165
- # @param [String] message_sid The sid of the message within a
166
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to.
165
+ # @param [String] conversation_sid The unique ID of the
166
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
167
+ # for this message.
168
+ # @param [String] message_sid The SID of the message within a
169
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
170
+ # the delivery receipt belongs to.
167
171
  # @param [String] sid A 34 character string that uniquely identifies this
168
172
  # resource.
169
173
  # @return [DeliveryReceiptContext] DeliveryReceiptContext
@@ -212,10 +216,12 @@ module Twilio
212
216
  # Initialize the DeliveryReceiptInstance
213
217
  # @param [Version] version Version that contains the resource
214
218
  # @param [Hash] payload payload that contains response from Twilio
215
- # @param [String] conversation_sid The unique id of the
216
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this message.
217
- # @param [String] message_sid The sid of the message within a
218
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) the delivery receipt belongs to
219
+ # @param [String] conversation_sid The unique ID of the
220
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
221
+ # for this message.
222
+ # @param [String] message_sid The SID of the message within a
223
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
224
+ # the delivery receipt belongs to
219
225
  # @param [String] sid A 34 character string that uniquely identifies this
220
226
  # resource.
221
227
  # @return [DeliveryReceiptInstance] DeliveryReceiptInstance
@@ -263,13 +269,13 @@ module Twilio
263
269
  end
264
270
 
265
271
  ##
266
- # @return [String] The unique id of the Account responsible for this participant.
272
+ # @return [String] The unique ID of the Account responsible for this participant.
267
273
  def account_sid
268
274
  @properties['account_sid']
269
275
  end
270
276
 
271
277
  ##
272
- # @return [String] The unique id of the Conversation for this message.
278
+ # @return [String] The unique ID of the Conversation for this message.
273
279
  def conversation_sid
274
280
  @properties['conversation_sid']
275
281
  end
@@ -281,7 +287,7 @@ module Twilio
281
287
  end
282
288
 
283
289
  ##
284
- # @return [String] The sid of the message the delivery receipt belongs to
290
+ # @return [String] The SID of the message the delivery receipt belongs to
285
291
  def message_sid
286
292
  @properties['message_sid']
287
293
  end
@@ -293,7 +299,7 @@ module Twilio
293
299
  end
294
300
 
295
301
  ##
296
- # @return [String] The unique id of the participant the delivery receipt belongs to.
302
+ # @return [String] The unique ID of the participant the delivery receipt belongs to.
297
303
  def participant_sid
298
304
  @properties['participant_sid']
299
305
  end
@@ -17,8 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the ParticipantList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] conversation_sid The unique id of the
21
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant.
20
+ # @param [String] conversation_sid The unique ID of the
21
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
22
+ # for this participant.
22
23
  # @return [ParticipantList] ParticipantList
23
24
  def initialize(version, conversation_sid: nil)
24
25
  super(version)
@@ -31,18 +32,19 @@ module Twilio
31
32
  ##
32
33
  # Create the ParticipantInstance
33
34
  # @param [String] identity A unique string identifier for the conversation
34
- # participant as [Chat User](https://www.twilio.com/docs/chat/rest/user-resource).
35
- # This parameter is non-null if (and only if) the participant is using the
36
- # Programmable Chat SDK to communicate. Limited to 256 characters.
35
+ # participant as [Conversation
36
+ # User](https://www.twilio.com/docs/conversations/api/user-resource). This
37
+ # parameter is non-null if (and only if) the participant is using the
38
+ # Conversations SDK to communicate. Limited to 256 characters.
37
39
  # @param [String] messaging_binding_address The address of the participant's
38
- # device, e.g. a phone number or Messenger ID. Together with the Proxy address,
39
- # this determines a participant uniquely. This field (with proxy_address) is only
40
- # null when the participant is interacting from a Chat endpoint (see the
41
- # 'identity' field).
40
+ # device, e.g. a phone or WhatsApp number. Together with the Proxy address, this
41
+ # determines a participant uniquely. This field (with proxy_address) is only null
42
+ # when the participant is interacting from an SDK endpoint (see the 'identity'
43
+ # field).
42
44
  # @param [String] messaging_binding_proxy_address The address of the Twilio phone
43
- # number (or WhatsApp number, or Messenger Page ID) that the participant is in
44
- # contact with. This field, together with participant address, is only null when
45
- # the participant is interacting from a Chat endpoint (see the 'identity' field).
45
+ # number (or WhatsApp number) that the participant is in contact with. This field,
46
+ # together with participant address, is only null when the participant is
47
+ # interacting from an SDK endpoint (see the 'identity' field).
46
48
  # @param [Time] date_created The date that this resource was created.
47
49
  # @param [Time] date_updated The date that this resource was last updated.
48
50
  # @param [String] attributes An optional string metadata field you can use to
@@ -50,11 +52,11 @@ module Twilio
50
52
  # if specified. **Note** that if the attributes are not set "{}" will be
51
53
  # returned.
52
54
  # @param [String] messaging_binding_projected_address The address of the Twilio
53
- # phone number that is used in Group MMS. Communication mask for the Chat
55
+ # phone number that is used in Group MMS. Communication mask for the Conversation
54
56
  # participant with Identity.
55
- # @param [String] role_sid The SID of the
56
- # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
57
- # participant.
57
+ # @param [String] role_sid The SID of a conversation-level
58
+ # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
59
+ # the participant.
58
60
  # @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
59
61
  # X-Twilio-Webhook-Enabled HTTP request header
60
62
  # @return [ParticipantInstance] Created ParticipantInstance
@@ -200,8 +202,9 @@ module Twilio
200
202
  ##
201
203
  # Initialize the ParticipantContext
202
204
  # @param [Version] version Version that contains the resource
203
- # @param [String] conversation_sid The unique id of the
204
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant.
205
+ # @param [String] conversation_sid The unique ID of the
206
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
207
+ # for this participant.
205
208
  # @param [String] sid A 34 character string that uniquely identifies this
206
209
  # resource.
207
210
  # @return [ParticipantContext] ParticipantContext
@@ -221,17 +224,18 @@ module Twilio
221
224
  # store any data you wish. The string value must contain structurally valid JSON
222
225
  # if specified. **Note** that if the attributes are not set "{}" will be
223
226
  # returned.
224
- # @param [String] role_sid The SID of the
225
- # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
226
- # participant.
227
+ # @param [String] role_sid The SID of a conversation-level
228
+ # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
229
+ # the participant.
227
230
  # @param [String] messaging_binding_proxy_address The address of the Twilio phone
228
231
  # number that the participant is in contact with. 'null' value will remove it.
229
232
  # @param [String] messaging_binding_projected_address The address of the Twilio
230
233
  # phone number that is used in Group MMS. 'null' value will remove it.
231
234
  # @param [String] identity A unique string identifier for the conversation
232
- # participant as [Chat User](https://www.twilio.com/docs/chat/rest/user-resource).
233
- # This parameter is non-null if (and only if) the participant is using the
234
- # Programmable Chat SDK to communicate. Limited to 256 characters.
235
+ # participant as [Conversation
236
+ # User](https://www.twilio.com/docs/conversations/api/user-resource). This
237
+ # parameter is non-null if (and only if) the participant is using the
238
+ # Conversations SDK to communicate. Limited to 256 characters.
235
239
  # @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
236
240
  # X-Twilio-Webhook-Enabled HTTP request header
237
241
  # @return [ParticipantInstance] Updated ParticipantInstance
@@ -304,8 +308,9 @@ module Twilio
304
308
  # Initialize the ParticipantInstance
305
309
  # @param [Version] version Version that contains the resource
306
310
  # @param [Hash] payload payload that contains response from Twilio
307
- # @param [String] conversation_sid The unique id of the
308
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this participant.
311
+ # @param [String] conversation_sid The unique ID of the
312
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
313
+ # for this participant.
309
314
  # @param [String] sid A 34 character string that uniquely identifies this
310
315
  # resource.
311
316
  # @return [ParticipantInstance] ParticipantInstance
@@ -343,13 +348,13 @@ module Twilio
343
348
  end
344
349
 
345
350
  ##
346
- # @return [String] The unique id of the Account responsible for this participant.
351
+ # @return [String] The unique ID of the Account responsible for this participant.
347
352
  def account_sid
348
353
  @properties['account_sid']
349
354
  end
350
355
 
351
356
  ##
352
- # @return [String] The unique id of the Conversation for this participant.
357
+ # @return [String] The unique ID of the Conversation for this participant.
353
358
  def conversation_sid
354
359
  @properties['conversation_sid']
355
360
  end
@@ -361,7 +366,7 @@ module Twilio
361
366
  end
362
367
 
363
368
  ##
364
- # @return [String] A unique string identifier for the conversation participant as Chat User.
369
+ # @return [String] A unique string identifier for the conversation participant as Conversation User.
365
370
  def identity
366
371
  @properties['identity']
367
372
  end
@@ -379,7 +384,7 @@ module Twilio
379
384
  end
380
385
 
381
386
  ##
382
- # @return [String] The SID of the Role to assign to the participant
387
+ # @return [String] The SID of a conversation-level Role to assign to the participant
383
388
  def role_sid
384
389
  @properties['role_sid']
385
390
  end
@@ -410,17 +415,18 @@ module Twilio
410
415
  # store any data you wish. The string value must contain structurally valid JSON
411
416
  # if specified. **Note** that if the attributes are not set "{}" will be
412
417
  # returned.
413
- # @param [String] role_sid The SID of the
414
- # [Role](https://www.twilio.com/docs/chat/rest/role-resource) to assign to the
415
- # participant.
418
+ # @param [String] role_sid The SID of a conversation-level
419
+ # [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to
420
+ # the participant.
416
421
  # @param [String] messaging_binding_proxy_address The address of the Twilio phone
417
422
  # number that the participant is in contact with. 'null' value will remove it.
418
423
  # @param [String] messaging_binding_projected_address The address of the Twilio
419
424
  # phone number that is used in Group MMS. 'null' value will remove it.
420
425
  # @param [String] identity A unique string identifier for the conversation
421
- # participant as [Chat User](https://www.twilio.com/docs/chat/rest/user-resource).
422
- # This parameter is non-null if (and only if) the participant is using the
423
- # Programmable Chat SDK to communicate. Limited to 256 characters.
426
+ # participant as [Conversation
427
+ # User](https://www.twilio.com/docs/conversations/api/user-resource). This
428
+ # parameter is non-null if (and only if) the participant is using the
429
+ # Conversations SDK to communicate. Limited to 256 characters.
424
430
  # @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
425
431
  # X-Twilio-Webhook-Enabled HTTP request header
426
432
  # @return [ParticipantInstance] Updated ParticipantInstance
@@ -17,8 +17,9 @@ module Twilio
17
17
  ##
18
18
  # Initialize the WebhookList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] conversation_sid The unique id of the
21
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook.
20
+ # @param [String] conversation_sid The unique ID of the
21
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
22
+ # for this webhook.
22
23
  # @return [WebhookList] WebhookList
23
24
  def initialize(version, conversation_sid: nil)
24
25
  super(version)
@@ -120,7 +121,7 @@ module Twilio
120
121
  # for this Conversation.
121
122
  # @param [String] configuration_triggers The list of keywords, firing webhook
122
123
  # event for this Conversation.
123
- # @param [String] configuration_flow_sid The studio flow sid, where the webhook
124
+ # @param [String] configuration_flow_sid The studio flow SID, where the webhook
124
125
  # should be sent to.
125
126
  # @param [String] configuration_replay_after The message index for which and it's
126
127
  # successors the webhook will be replayed. Not set by default
@@ -185,8 +186,9 @@ module Twilio
185
186
  ##
186
187
  # Initialize the WebhookContext
187
188
  # @param [Version] version Version that contains the resource
188
- # @param [String] conversation_sid The unique id of the
189
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook.
189
+ # @param [String] conversation_sid The unique ID of the
190
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
191
+ # for this webhook.
190
192
  # @param [String] sid A 34 character string that uniquely identifies this
191
193
  # resource.
192
194
  # @return [WebhookContext] WebhookContext
@@ -222,7 +224,7 @@ module Twilio
222
224
  # for this Conversation.
223
225
  # @param [String] configuration_triggers The list of keywords, firing webhook
224
226
  # event for this Conversation.
225
- # @param [String] configuration_flow_sid The studio flow sid, where the webhook
227
+ # @param [String] configuration_flow_sid The studio flow SID, where the webhook
226
228
  # should be sent to.
227
229
  # @return [WebhookInstance] Updated WebhookInstance
228
230
  def update(configuration_url: :unset, configuration_method: :unset, configuration_filters: :unset, configuration_triggers: :unset, configuration_flow_sid: :unset)
@@ -273,8 +275,9 @@ module Twilio
273
275
  # Initialize the WebhookInstance
274
276
  # @param [Version] version Version that contains the resource
275
277
  # @param [Hash] payload payload that contains response from Twilio
276
- # @param [String] conversation_sid The unique id of the
277
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) for this webhook.
278
+ # @param [String] conversation_sid The unique ID of the
279
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
280
+ # for this webhook.
278
281
  # @param [String] sid A 34 character string that uniquely identifies this
279
282
  # resource.
280
283
  # @return [WebhookInstance] WebhookInstance
@@ -316,13 +319,13 @@ module Twilio
316
319
  end
317
320
 
318
321
  ##
319
- # @return [String] The unique id of the Account responsible for this conversation.
322
+ # @return [String] The unique ID of the Account responsible for this conversation.
320
323
  def account_sid
321
324
  @properties['account_sid']
322
325
  end
323
326
 
324
327
  ##
325
- # @return [String] The unique id of the Conversation for this webhook.
328
+ # @return [String] The unique ID of the Conversation for this webhook.
326
329
  def conversation_sid
327
330
  @properties['conversation_sid']
328
331
  end
@@ -374,7 +377,7 @@ module Twilio
374
377
  # for this Conversation.
375
378
  # @param [String] configuration_triggers The list of keywords, firing webhook
376
379
  # event for this Conversation.
377
- # @param [String] configuration_flow_sid The studio flow sid, where the webhook
380
+ # @param [String] configuration_flow_sid The studio flow SID, where the webhook
378
381
  # should be sent to.
379
382
  # @return [WebhookInstance] Updated WebhookInstance
380
383
  def update(configuration_url: :unset, configuration_method: :unset, configuration_filters: :unset, configuration_triggers: :unset, configuration_flow_sid: :unset)
@@ -317,7 +317,7 @@ module Twilio
317
317
  end
318
318
 
319
319
  ##
320
- # @return [String] The unique id of the Account responsible for this credential.
320
+ # @return [String] The unique ID of the Account responsible for this credential.
321
321
  def account_sid
322
322
  @properties['account_sid']
323
323
  end
@@ -30,7 +30,9 @@ module Twilio
30
30
  # @param [String] friendly_name A descriptive string that you create to describe
31
31
  # the new resource. It can be up to 64 characters long.
32
32
  # @param [role.RoleType] type The type of role. Can be: `conversation` for
33
- # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Service](https://www.twilio.com/docs/chat/rest/service-resource) roles.
33
+ # [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
34
+ # roles or `service` for [Conversation
35
+ # Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
34
36
  # @param [String] permission A permission that you grant to the new role. Only one
35
37
  # permission can be granted per parameter. To assign more than one permission,
36
38
  # repeat this parameter for each permission value. The values for this parameter
@@ -284,7 +286,7 @@ module Twilio
284
286
  end
285
287
 
286
288
  ##
287
- # @return [String] The SID of the Service that the resource is associated with
289
+ # @return [String] The SID of the Conversation Service that the resource is associated with
288
290
  def chat_service_sid
289
291
  @properties['chat_service_sid']
290
292
  end