twilio-ruby 5.40.2 → 5.40.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +15 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/version.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -2
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +8 -1
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +3 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +2 -1
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/field_type/field_value.rb +8 -4
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +11 -4
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/task/sample.rb +13 -6
- data/lib/twilio-ruby/rest/conversations.rb +0 -16
- data/lib/twilio-ruby/rest/conversations/v1.rb +0 -24
- data/lib/twilio-ruby/rest/conversations/v1/configuration.rb +17 -7
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +262 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +13 -10
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message/delivery_receipt.rb +22 -16
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +42 -36
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +14 -11
- data/lib/twilio-ruby/rest/conversations/v1/credential.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +4 -2
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +28 -25
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +30 -18
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +315 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +23 -20
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb +32 -26
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +52 -46
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +24 -21
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +13 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +23 -23
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +14 -14
- data/lib/twilio-ruby/rest/events.rb +10 -1
- data/lib/twilio-ruby/rest/events/v1.rb +17 -1
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +8 -8
- data/lib/twilio-ruby/rest/events/v1/schema.rb +226 -0
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +290 -0
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +28 -8
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +3 -109
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +2 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +6 -3
- data/lib/twilio-ruby/rest/notify/v1/credential.rb +12 -6
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +10 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +10 -5
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +6 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +1 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +1 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -26
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk/recording.rb +201 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -1
- data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -3
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +18 -9
- data/lib/twilio-ruby/rest/video/v1/room.rb +2 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -4
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +2 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/framework/version_spec.rb +11 -0
- data/spec/integration/conversations/v1/{webhook_spec.rb → configuration/webhook_spec.rb} +12 -8
- data/spec/integration/conversations/v1/configuration_spec.rb +4 -2
- data/spec/integration/conversations/v1/{notification_spec.rb → service/configuration/notification_spec.rb} +12 -4
- data/spec/integration/events/v1/schema/schema_version_spec.rb +126 -0
- data/spec/integration/events/v1/schema_spec.rb +46 -0
- data/spec/integration/events/v1/subscription/subscribed_event_spec.rb +0 -121
- data/spec/integration/events/v1/subscription_spec.rb +38 -0
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +79 -0
- metadata +17 -8
- data/lib/twilio-ruby/rest/conversations/v1/notification.rb +0 -310
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
21
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
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
|
|
188
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
308
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
22
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
23
|
-
#
|
|
24
|
-
#
|
|
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
|
|
164
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
165
|
-
#
|
|
166
|
-
#
|
|
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
|
|
216
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
217
|
-
#
|
|
218
|
-
#
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
21
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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 [
|
|
35
|
-
#
|
|
36
|
-
#
|
|
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
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
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
|
|
44
|
-
#
|
|
45
|
-
#
|
|
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
|
|
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
|
|
56
|
-
# [Role](https://www.twilio.com/docs/
|
|
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
|
|
204
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
225
|
-
# [Role](https://www.twilio.com/docs/
|
|
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 [
|
|
233
|
-
#
|
|
234
|
-
#
|
|
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
|
|
308
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
414
|
-
# [Role](https://www.twilio.com/docs/
|
|
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 [
|
|
422
|
-
#
|
|
423
|
-
#
|
|
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
|
|
21
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
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
|
|
189
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
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
|
|
277
|
-
# [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
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
|