twilio-ruby 5.44.0 → 5.47.0
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/.travis.yml +1 -0
- data/CHANGES.md +97 -0
- data/LICENSE +1 -1
- data/README.md +16 -2
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +14 -9
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +13 -13
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +10 -5
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +17 -12
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +3 -3
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +6 -3
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +1 -1
- data/lib/twilio-ruby/rest/bulkexports.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1.rb +4 -2
- data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/chat/v1/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v1/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service.rb +5 -5
- data/lib/twilio-ruby/rest/chat/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/chat/v2/service/channel.rb +6 -6
- data/lib/twilio-ruby/rest/chat/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb +27 -24
- data/lib/twilio-ruby/rest/chat/v2/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/chat/v2/service/user/user_binding.rb +10 -10
- data/lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +32 -2
- data/lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +17 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +1 -1
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb +32 -2
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/role.rb +9 -9
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +8 -1
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +8 -1
- data/lib/twilio-ruby/rest/events/v1/sink.rb +4 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +3 -2
- data/lib/twilio-ruby/rest/flex_api.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1.rb +1 -1
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +5 -5
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +18 -4
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +88 -76
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +2 -2
- data/lib/twilio-ruby/rest/insights/v1/call/summary.rb +8 -9
- data/lib/twilio-ruby/rest/insights/v1/room.rb +7 -7
- data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +1 -1
- data/lib/twilio-ruby/rest/ip_messaging/v1/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v1/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/binding.rb +7 -7
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/invite.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +3 -3
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/webhook.rb +6 -6
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/role.rb +4 -4
- data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +16 -16
- data/lib/twilio-ruby/rest/messaging.rb +22 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +37 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +328 -0
- data/lib/twilio-ruby/rest/messaging/v1/campaign.rb +387 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/use_case.rb +198 -0
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +16 -15
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +18 -18
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb +1 -1
- data/lib/twilio-ruby/rest/preview.rb +4 -23
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +4 -2
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +7 -4
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +5 -3
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +5 -3
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +13 -13
- data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb +2 -2
- data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +8 -8
- data/lib/twilio-ruby/rest/preview/sync/service/document.rb +4 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -30
- data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/messaging/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb +1 -1
- data/lib/twilio-ruby/rest/pricing/v1/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/number.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +1 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +17 -7
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +6 -14
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +0 -8
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +2 -10
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +10 -16
- data/lib/twilio-ruby/rest/studio/v2/flow_validate.rb +6 -11
- data/lib/twilio-ruby/rest/supersim/v1/command.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +33 -12
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +6 -6
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +5 -5
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +4 -4
- data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +16 -36
- data/lib/twilio-ruby/rest/sync/v1/service/document/document_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +24 -43
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_permission.rb +0 -8
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -25
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +25 -44
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -23
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -7
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +1 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/composition.rb +16 -15
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +26 -26
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/recording.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +6 -6
- data/lib/twilio-ruby/rest/video/v1/room.rb +10 -3
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/room/room_recording_rule.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +1 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +4 -4
- data/lib/twilio-ruby/twiml/voice_response.rb +18 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/conference_spec.rb +302 -44
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +30 -10
- data/spec/integration/conversations/v1/service/configuration_spec.rb +2 -0
- data/spec/integration/conversations/v1/service/conversation/participant_spec.rb +30 -10
- data/spec/integration/conversations/v1/service/user_spec.rb +9 -4
- data/spec/integration/conversations/v1/user_spec.rb +9 -4
- data/spec/integration/events/v1/sink_spec.rb +14 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +24 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/messaging/v1/brand_registration_spec.rb +143 -0
- data/spec/integration/messaging/v1/campaign_spec.rb +194 -0
- data/spec/integration/messaging/v1/use_case_spec.rb +55 -0
- data/spec/integration/preview/sync/service/document_spec.rb +1 -3
- data/spec/integration/serverless/v1/service/build_spec.rb +12 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +8 -0
- data/spec/integration/sync/v1/service/document_spec.rb +1 -3
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +11 -17
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +0 -243
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +0 -213
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb +0 -108
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb +0 -260
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +0 -342
- data/spec/integration/preview/trusted_comms/branded_call_spec.rb +0 -59
- data/spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb +0 -56
- data/spec/integration/preview/trusted_comms/business/insights_spec.rb +0 -12
- data/spec/integration/preview/trusted_comms/business_spec.rb +0 -45
- data/spec/integration/preview/trusted_comms/phone_call_spec.rb +0 -59
@@ -31,12 +31,12 @@ module Twilio
|
|
31
31
|
# Lists BindingInstance records from the API as a list.
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
33
33
|
# memory before returning.
|
34
|
-
# @param [binding.BindingType] binding_type The push technology used by the
|
34
|
+
# @param [Array[binding.BindingType]] binding_type The push technology used by the
|
35
35
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
|
36
36
|
# notification
|
37
37
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
38
38
|
# for more info.
|
39
|
-
# @param [String] identity The identity of a {Conversation
|
39
|
+
# @param [Array[String]] identity The identity of a {Conversation
|
40
40
|
# User}[https://www.twilio.com/docs/conversations/api/user-resource] this binding
|
41
41
|
# belongs to. See {access
|
42
42
|
# tokens}[https://www.twilio.com/docs/conversations/create-tokens] for more
|
@@ -61,12 +61,12 @@ module Twilio
|
|
61
61
|
# Streams BindingInstance records from the API as an Enumerable.
|
62
62
|
# This operation lazily loads records as efficiently as possible until the limit
|
63
63
|
# is reached.
|
64
|
-
# @param [binding.BindingType] binding_type The push technology used by the
|
64
|
+
# @param [Array[binding.BindingType]] binding_type The push technology used by the
|
65
65
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
|
66
66
|
# notification
|
67
67
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
68
68
|
# for more info.
|
69
|
-
# @param [String] identity The identity of a {Conversation
|
69
|
+
# @param [Array[String]] identity The identity of a {Conversation
|
70
70
|
# User}[https://www.twilio.com/docs/conversations/api/user-resource] this binding
|
71
71
|
# belongs to. See {access
|
72
72
|
# tokens}[https://www.twilio.com/docs/conversations/create-tokens] for more
|
@@ -103,12 +103,12 @@ module Twilio
|
|
103
103
|
##
|
104
104
|
# Retrieve a single page of BindingInstance records from the API.
|
105
105
|
# Request is executed immediately.
|
106
|
-
# @param [binding.BindingType] binding_type The push technology used by the
|
106
|
+
# @param [Array[binding.BindingType]] binding_type The push technology used by the
|
107
107
|
# Binding resources to read. Can be: `apn`, `gcm`, or `fcm`. See {push
|
108
108
|
# notification
|
109
109
|
# configuration}[https://www.twilio.com/docs/chat/push-notification-configuration]
|
110
110
|
# for more info.
|
111
|
-
# @param [String] identity The identity of a {Conversation
|
111
|
+
# @param [Array[String]] identity The identity of a {Conversation
|
112
112
|
# User}[https://www.twilio.com/docs/conversations/api/user-resource] this binding
|
113
113
|
# belongs to. See {access
|
114
114
|
# tokens}[https://www.twilio.com/docs/conversations/create-tokens] for more
|
@@ -334,7 +334,7 @@ module Twilio
|
|
334
334
|
end
|
335
335
|
|
336
336
|
##
|
337
|
-
# @return [String] The Conversation message types the binding is subscribed to.
|
337
|
+
# @return [Array[String]] The Conversation message types the binding is subscribed to.
|
338
338
|
def message_types
|
339
339
|
@properties['message_types']
|
340
340
|
end
|
@@ -103,12 +103,16 @@ module Twilio
|
|
103
103
|
# users when they are added to the service. See the {Conversation
|
104
104
|
# Role}[https://www.twilio.com/docs/conversations/api/role-resource] for more info
|
105
105
|
# about roles.
|
106
|
+
# @param [Boolean] reachability_enabled Whether the {Reachability
|
107
|
+
# Indicator}[https://www.twilio.com/docs/chat/reachability-indicator] is enabled
|
108
|
+
# for this Conversations Service. The default is `false`.
|
106
109
|
# @return [ConfigurationInstance] Updated ConfigurationInstance
|
107
|
-
def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset)
|
110
|
+
def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset, reachability_enabled: :unset)
|
108
111
|
data = Twilio::Values.of({
|
109
112
|
'DefaultConversationCreatorRoleSid' => default_conversation_creator_role_sid,
|
110
113
|
'DefaultConversationRoleSid' => default_conversation_role_sid,
|
111
114
|
'DefaultChatServiceRoleSid' => default_chat_service_role_sid,
|
115
|
+
'ReachabilityEnabled' => reachability_enabled,
|
112
116
|
})
|
113
117
|
|
114
118
|
payload = @version.update('POST', @uri, data: data)
|
@@ -157,6 +161,7 @@ module Twilio
|
|
157
161
|
'default_chat_service_role_sid' => payload['default_chat_service_role_sid'],
|
158
162
|
'url' => payload['url'],
|
159
163
|
'links' => payload['links'],
|
164
|
+
'reachability_enabled' => payload['reachability_enabled'],
|
160
165
|
}
|
161
166
|
|
162
167
|
# Context
|
@@ -211,6 +216,12 @@ module Twilio
|
|
211
216
|
@properties['links']
|
212
217
|
end
|
213
218
|
|
219
|
+
##
|
220
|
+
# @return [Boolean] Whether the Reachability Indicator feature is enabled for this Conversations Service
|
221
|
+
def reachability_enabled
|
222
|
+
@properties['reachability_enabled']
|
223
|
+
end
|
224
|
+
|
214
225
|
##
|
215
226
|
# Fetch the ConfigurationInstance
|
216
227
|
# @return [ConfigurationInstance] Fetched ConfigurationInstance
|
@@ -233,12 +244,16 @@ module Twilio
|
|
233
244
|
# users when they are added to the service. See the {Conversation
|
234
245
|
# Role}[https://www.twilio.com/docs/conversations/api/role-resource] for more info
|
235
246
|
# about roles.
|
247
|
+
# @param [Boolean] reachability_enabled Whether the {Reachability
|
248
|
+
# Indicator}[https://www.twilio.com/docs/chat/reachability-indicator] is enabled
|
249
|
+
# for this Conversations Service. The default is `false`.
|
236
250
|
# @return [ConfigurationInstance] Updated ConfigurationInstance
|
237
|
-
def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset)
|
251
|
+
def update(default_conversation_creator_role_sid: :unset, default_conversation_role_sid: :unset, default_chat_service_role_sid: :unset, reachability_enabled: :unset)
|
238
252
|
context.update(
|
239
253
|
default_conversation_creator_role_sid: default_conversation_creator_role_sid,
|
240
254
|
default_conversation_role_sid: default_conversation_role_sid,
|
241
255
|
default_chat_service_role_sid: default_chat_service_role_sid,
|
256
|
+
reachability_enabled: reachability_enabled,
|
242
257
|
)
|
243
258
|
end
|
244
259
|
|
@@ -423,7 +423,7 @@ module Twilio
|
|
423
423
|
end
|
424
424
|
|
425
425
|
##
|
426
|
-
# @return [Hash] An array of objects that describe the Message's media if attached, otherwise, null.
|
426
|
+
# @return [Array[Hash]] An array of objects that describe the Message's media if attached, otherwise, null.
|
427
427
|
def media
|
428
428
|
@properties['media']
|
429
429
|
end
|
@@ -247,10 +247,16 @@ module Twilio
|
|
247
247
|
# number that the participant is in contact with. 'null' value will remove it.
|
248
248
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
249
249
|
# phone number that is used in Group MMS. 'null' value will remove it.
|
250
|
+
# @param [String] last_read_message_index Index of last “read” message in the
|
251
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
252
|
+
# for the Participant.
|
253
|
+
# @param [String] last_read_timestamp Timestamp of last “read” message in the
|
254
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
255
|
+
# for the Participant.
|
250
256
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
251
257
|
# X-Twilio-Webhook-Enabled HTTP request header
|
252
258
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
253
|
-
def update(date_created: :unset, date_updated: :unset, identity: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, x_twilio_webhook_enabled: :unset)
|
259
|
+
def update(date_created: :unset, date_updated: :unset, identity: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, last_read_message_index: :unset, last_read_timestamp: :unset, x_twilio_webhook_enabled: :unset)
|
254
260
|
data = Twilio::Values.of({
|
255
261
|
'DateCreated' => Twilio.serialize_iso8601_datetime(date_created),
|
256
262
|
'DateUpdated' => Twilio.serialize_iso8601_datetime(date_updated),
|
@@ -259,6 +265,8 @@ module Twilio
|
|
259
265
|
'RoleSid' => role_sid,
|
260
266
|
'MessagingBinding.ProxyAddress' => messaging_binding_proxy_address,
|
261
267
|
'MessagingBinding.ProjectedAddress' => messaging_binding_projected_address,
|
268
|
+
'LastReadMessageIndex' => last_read_message_index,
|
269
|
+
'LastReadTimestamp' => last_read_timestamp,
|
262
270
|
})
|
263
271
|
headers = Twilio::Values.of({'X-Twilio-Webhook-Enabled' => x_twilio_webhook_enabled, })
|
264
272
|
|
@@ -344,6 +352,8 @@ module Twilio
|
|
344
352
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
345
353
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
346
354
|
'url' => payload['url'],
|
355
|
+
'last_read_message_index' => payload['last_read_message_index'] == nil ? payload['last_read_message_index'] : payload['last_read_message_index'].to_i,
|
356
|
+
'last_read_timestamp' => payload['last_read_timestamp'],
|
347
357
|
}
|
348
358
|
|
349
359
|
# Context
|
@@ -437,6 +447,18 @@ module Twilio
|
|
437
447
|
@properties['url']
|
438
448
|
end
|
439
449
|
|
450
|
+
##
|
451
|
+
# @return [String] Index of last “read” message in the Conversation for the Participant.
|
452
|
+
def last_read_message_index
|
453
|
+
@properties['last_read_message_index']
|
454
|
+
end
|
455
|
+
|
456
|
+
##
|
457
|
+
# @return [String] Timestamp of last “read” message in the Conversation for the Participant.
|
458
|
+
def last_read_timestamp
|
459
|
+
@properties['last_read_timestamp']
|
460
|
+
end
|
461
|
+
|
440
462
|
##
|
441
463
|
# Update the ParticipantInstance
|
442
464
|
# @param [Time] date_created The date that this resource was created.
|
@@ -457,10 +479,16 @@ module Twilio
|
|
457
479
|
# number that the participant is in contact with. 'null' value will remove it.
|
458
480
|
# @param [String] messaging_binding_projected_address The address of the Twilio
|
459
481
|
# phone number that is used in Group MMS. 'null' value will remove it.
|
482
|
+
# @param [String] last_read_message_index Index of last “read” message in the
|
483
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
484
|
+
# for the Participant.
|
485
|
+
# @param [String] last_read_timestamp Timestamp of last “read” message in the
|
486
|
+
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
487
|
+
# for the Participant.
|
460
488
|
# @param [participant.WebhookEnabledType] x_twilio_webhook_enabled The
|
461
489
|
# X-Twilio-Webhook-Enabled HTTP request header
|
462
490
|
# @return [ParticipantInstance] Updated ParticipantInstance
|
463
|
-
def update(date_created: :unset, date_updated: :unset, identity: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, x_twilio_webhook_enabled: :unset)
|
491
|
+
def update(date_created: :unset, date_updated: :unset, identity: :unset, attributes: :unset, role_sid: :unset, messaging_binding_proxy_address: :unset, messaging_binding_projected_address: :unset, last_read_message_index: :unset, last_read_timestamp: :unset, x_twilio_webhook_enabled: :unset)
|
464
492
|
context.update(
|
465
493
|
date_created: date_created,
|
466
494
|
date_updated: date_updated,
|
@@ -469,6 +497,8 @@ module Twilio
|
|
469
497
|
role_sid: role_sid,
|
470
498
|
messaging_binding_proxy_address: messaging_binding_proxy_address,
|
471
499
|
messaging_binding_projected_address: messaging_binding_projected_address,
|
500
|
+
last_read_message_index: last_read_message_index,
|
501
|
+
last_read_timestamp: last_read_timestamp,
|
472
502
|
x_twilio_webhook_enabled: x_twilio_webhook_enabled,
|
473
503
|
)
|
474
504
|
end
|
@@ -39,10 +39,10 @@ module Twilio
|
|
39
39
|
# sent to.
|
40
40
|
# @param [webhook.Method] configuration_method The HTTP method to be used when
|
41
41
|
# sending a webhook request.
|
42
|
-
# @param [String] configuration_filters The list of events, firing webhook
|
43
|
-
# for this Conversation.
|
44
|
-
# @param [String] configuration_triggers The list of keywords, firing webhook
|
42
|
+
# @param [Array[String]] configuration_filters The list of events, firing webhook
|
45
43
|
# event for this Conversation.
|
44
|
+
# @param [Array[String]] configuration_triggers The list of keywords, firing
|
45
|
+
# webhook event for this Conversation.
|
46
46
|
# @param [String] configuration_flow_sid The studio flow SID, where the webhook
|
47
47
|
# should be sent to.
|
48
48
|
# @param [String] configuration_replay_after The message index for which and it's
|
@@ -217,10 +217,10 @@ module Twilio
|
|
217
217
|
# sent to.
|
218
218
|
# @param [webhook.Method] configuration_method The HTTP method to be used when
|
219
219
|
# sending a webhook request.
|
220
|
-
# @param [String] configuration_filters The list of events, firing webhook
|
221
|
-
# for this Conversation.
|
222
|
-
# @param [String] configuration_triggers The list of keywords, firing webhook
|
220
|
+
# @param [Array[String]] configuration_filters The list of events, firing webhook
|
223
221
|
# event for this Conversation.
|
222
|
+
# @param [Array[String]] configuration_triggers The list of keywords, firing
|
223
|
+
# webhook event for this Conversation.
|
224
224
|
# @param [String] configuration_flow_sid The studio flow SID, where the webhook
|
225
225
|
# should be sent to.
|
226
226
|
# @return [WebhookInstance] Updated WebhookInstance
|
@@ -396,10 +396,10 @@ module Twilio
|
|
396
396
|
# sent to.
|
397
397
|
# @param [webhook.Method] configuration_method The HTTP method to be used when
|
398
398
|
# sending a webhook request.
|
399
|
-
# @param [String] configuration_filters The list of events, firing webhook
|
400
|
-
# for this Conversation.
|
401
|
-
# @param [String] configuration_triggers The list of keywords, firing webhook
|
399
|
+
# @param [Array[String]] configuration_filters The list of events, firing webhook
|
402
400
|
# event for this Conversation.
|
401
|
+
# @param [Array[String]] configuration_triggers The list of keywords, firing
|
402
|
+
# webhook event for this Conversation.
|
403
403
|
# @param [String] configuration_flow_sid The studio flow SID, where the webhook
|
404
404
|
# should be sent to.
|
405
405
|
# @return [WebhookInstance] Updated WebhookInstance
|
@@ -35,10 +35,10 @@ module Twilio
|
|
35
35
|
# {Conversation}[https://www.twilio.com/docs/conversations/api/conversation-resource]
|
36
36
|
# roles or `service` for {Conversation
|
37
37
|
# Service}[https://www.twilio.com/docs/conversations/api/service-resource] roles.
|
38
|
-
# @param [String] permission A permission that you grant to the new role.
|
39
|
-
# permission can be granted per parameter. To assign more than one
|
40
|
-
# repeat this parameter for each permission value. The values for this
|
41
|
-
# depend on the role's `type`.
|
38
|
+
# @param [Array[String]] permission A permission that you grant to the new role.
|
39
|
+
# Only one permission can be granted per parameter. To assign more than one
|
40
|
+
# permission, repeat this parameter for each permission value. The values for this
|
41
|
+
# parameter depend on the role's `type`.
|
42
42
|
# @return [RoleInstance] Created RoleInstance
|
43
43
|
def create(friendly_name: nil, type: nil, permission: nil)
|
44
44
|
data = Twilio::Values.of({
|
@@ -187,8 +187,8 @@ module Twilio
|
|
187
187
|
|
188
188
|
##
|
189
189
|
# Update the RoleInstance
|
190
|
-
# @param [String] permission A permission that you grant to the role. Only
|
191
|
-
# permission can be granted per parameter. To assign more than one permission,
|
190
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only
|
191
|
+
# one permission can be granted per parameter. To assign more than one permission,
|
192
192
|
# repeat this parameter for each permission value. Note that the update action
|
193
193
|
# replaces all previously assigned permissions with those defined in the update
|
194
194
|
# action. To remove a permission, do not include it in the subsequent update
|
@@ -316,7 +316,7 @@ module Twilio
|
|
316
316
|
end
|
317
317
|
|
318
318
|
##
|
319
|
-
# @return [String] An array of the permissions the role has been granted
|
319
|
+
# @return [Array[String]] An array of the permissions the role has been granted
|
320
320
|
def permissions
|
321
321
|
@properties['permissions']
|
322
322
|
end
|
@@ -341,8 +341,8 @@ module Twilio
|
|
341
341
|
|
342
342
|
##
|
343
343
|
# Update the RoleInstance
|
344
|
-
# @param [String] permission A permission that you grant to the role. Only
|
345
|
-
# permission can be granted per parameter. To assign more than one permission,
|
344
|
+
# @param [Array[String]] permission A permission that you grant to the role. Only
|
345
|
+
# one permission can be granted per parameter. To assign more than one permission,
|
346
346
|
# repeat this parameter for each permission value. Note that the update action
|
347
347
|
# replaces all previously assigned permissions with those defined in the update
|
348
348
|
# action. To remove a permission, do not include it in the subsequent update
|
@@ -285,6 +285,7 @@ module Twilio
|
|
285
285
|
'friendly_name' => payload['friendly_name'],
|
286
286
|
'attributes' => payload['attributes'],
|
287
287
|
'is_online' => payload['is_online'],
|
288
|
+
'is_notifiable' => payload['is_notifiable'],
|
288
289
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
289
290
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
290
291
|
'url' => payload['url'],
|
@@ -349,11 +350,17 @@ module Twilio
|
|
349
350
|
end
|
350
351
|
|
351
352
|
##
|
352
|
-
# @return [Boolean] Whether the User is actively connected to
|
353
|
+
# @return [Boolean] Whether the User is actively connected to this Conversations Service and online
|
353
354
|
def is_online
|
354
355
|
@properties['is_online']
|
355
356
|
end
|
356
357
|
|
358
|
+
##
|
359
|
+
# @return [Boolean] Whether the User has a potentially valid Push Notification registration for this Conversations Service
|
360
|
+
def is_notifiable
|
361
|
+
@properties['is_notifiable']
|
362
|
+
end
|
363
|
+
|
357
364
|
##
|
358
365
|
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
359
366
|
def date_created
|
@@ -265,6 +265,7 @@ module Twilio
|
|
265
265
|
'friendly_name' => payload['friendly_name'],
|
266
266
|
'attributes' => payload['attributes'],
|
267
267
|
'is_online' => payload['is_online'],
|
268
|
+
'is_notifiable' => payload['is_notifiable'],
|
268
269
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
269
270
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
270
271
|
'url' => payload['url'],
|
@@ -329,11 +330,17 @@ module Twilio
|
|
329
330
|
end
|
330
331
|
|
331
332
|
##
|
332
|
-
# @return [Boolean] Whether the User is actively connected to
|
333
|
+
# @return [Boolean] Whether the User is actively connected to this Conversations Service and online
|
333
334
|
def is_online
|
334
335
|
@properties['is_online']
|
335
336
|
end
|
336
337
|
|
338
|
+
##
|
339
|
+
# @return [Boolean] Whether the User has a potentially valid Push Notification registration for this Conversations Service
|
340
|
+
def is_notifiable
|
341
|
+
@properties['is_notifiable']
|
342
|
+
end
|
343
|
+
|
337
344
|
##
|
338
345
|
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
339
346
|
def date_created
|
@@ -27,10 +27,12 @@ module Twilio
|
|
27
27
|
|
28
28
|
##
|
29
29
|
# Create the SinkInstance
|
30
|
-
# @param [String] description A human readable description for the Sink
|
30
|
+
# @param [String] description A human readable description for the Sink **This
|
31
|
+
# value should not contain PII.**
|
31
32
|
# @param [Hash] sink_configuration The information required for Twilio to connect
|
32
33
|
# to the provided Sink encoded as JSON.
|
33
|
-
# @param [sink.SinkType] sink_type The Sink type. Can only be "kinesis"
|
34
|
+
# @param [sink.SinkType] sink_type The Sink type. Can only be "kinesis" or
|
35
|
+
# "webhook" currently.
|
34
36
|
# @return [SinkInstance] Created SinkInstance
|
35
37
|
def create(description: nil, sink_configuration: nil, sink_type: nil)
|
36
38
|
data = Twilio::Values.of({
|
@@ -115,11 +115,12 @@ module Twilio
|
|
115
115
|
##
|
116
116
|
# Create the SubscriptionInstance
|
117
117
|
# @param [String] description A human readable description for the Subscription
|
118
|
+
# **This value should not contain PII.**
|
118
119
|
# @param [String] sink_sid The SID of the sink that events selected by this
|
119
120
|
# subscription should be sent to. Sink must be active for the subscription to be
|
120
121
|
# created.
|
121
|
-
# @param [Hash] types Contains a dictionary of URL links to nested
|
122
|
-
# this Subscription.
|
122
|
+
# @param [Array[Hash]] types Contains a dictionary of URL links to nested
|
123
|
+
# resources of this Subscription.
|
123
124
|
# @return [SubscriptionInstance] Created SubscriptionInstance
|
124
125
|
def create(description: nil, sink_sid: nil, types: nil)
|
125
126
|
data = Twilio::Values.of({
|
@@ -44,7 +44,7 @@ module Twilio
|
|
44
44
|
end
|
45
45
|
|
46
46
|
##
|
47
|
-
# @param [String] sid The unique string that we created to identify the
|
47
|
+
# @param [String] sid The unique string that we created to identify the Flex Flow
|
48
48
|
# resource.
|
49
49
|
# @return [Twilio::REST::Flex_api::V1::FlexFlowInstance] if sid was passed.
|
50
50
|
# @return [Twilio::REST::Flex_api::V1::FlexFlowList]
|
@@ -42,7 +42,7 @@ module Twilio
|
|
42
42
|
end
|
43
43
|
|
44
44
|
##
|
45
|
-
# @param [String] sid The SID of the
|
45
|
+
# @param [String] sid The SID of the Flex Flow resource to fetch.
|
46
46
|
# @return [Twilio::REST::Flex_api::V1::FlexFlowContext] if sid was passed.
|
47
47
|
# @return [Twilio::REST::Flex_api::V1::FlexFlowList]
|
48
48
|
def flex_flow(sid=:unset)
|
@@ -105,7 +105,7 @@ module Twilio
|
|
105
105
|
|
106
106
|
##
|
107
107
|
# Create the ChannelInstance
|
108
|
-
# @param [String] flex_flow_sid The SID of the
|
108
|
+
# @param [String] flex_flow_sid The SID of the Flex Flow.
|
109
109
|
# @param [String] identity The `identity` value that uniquely identifies the new
|
110
110
|
# resource's chat User.
|
111
111
|
# @param [String] chat_user_friendly_name The chat participant's friendly name.
|
@@ -114,9 +114,9 @@ module Twilio
|
|
114
114
|
# of an SMS.
|
115
115
|
# @param [String] chat_unique_name The chat channel's unique name.
|
116
116
|
# @param [String] pre_engagement_data The pre-engagement data.
|
117
|
-
# @param [String] task_sid The SID of the TaskRouter
|
117
|
+
# @param [String] task_sid The SID of the TaskRouter Task. Only valid when
|
118
118
|
# integration type is `task`. `null` for integration types `studio` & `external`
|
119
|
-
# @param [String] task_attributes The
|
119
|
+
# @param [String] task_attributes The Task attributes to be added for the
|
120
120
|
# TaskRouter Task.
|
121
121
|
# @param [Boolean] long_lived Whether to create the channel as long-lived.
|
122
122
|
# @return [ChannelInstance] Created ChannelInstance
|
@@ -265,7 +265,7 @@ module Twilio
|
|
265
265
|
end
|
266
266
|
|
267
267
|
##
|
268
|
-
# @return [String] The SID of the
|
268
|
+
# @return [String] The SID of the Flex Flow
|
269
269
|
def flex_flow_sid
|
270
270
|
@properties['flex_flow_sid']
|
271
271
|
end
|
@@ -283,7 +283,7 @@ module Twilio
|
|
283
283
|
end
|
284
284
|
|
285
285
|
##
|
286
|
-
# @return [String] The SID of the TaskRouter
|
286
|
+
# @return [String] The SID of the TaskRouter Task
|
287
287
|
def task_sid
|
288
288
|
@properties['task_sid']
|
289
289
|
end
|
@@ -164,6 +164,8 @@ module Twilio
|
|
164
164
|
'outbound_call_flows' => payload['outbound_call_flows'],
|
165
165
|
'serverless_service_sids' => payload['serverless_service_sids'],
|
166
166
|
'queue_stats_configuration' => payload['queue_stats_configuration'],
|
167
|
+
'notifications' => payload['notifications'],
|
168
|
+
'markdown' => payload['markdown'],
|
167
169
|
'url' => payload['url'],
|
168
170
|
}
|
169
171
|
|
@@ -232,13 +234,13 @@ module Twilio
|
|
232
234
|
end
|
233
235
|
|
234
236
|
##
|
235
|
-
# @return [Hash] The list of TaskRouter TaskQueues
|
237
|
+
# @return [Array[Hash]] The list of TaskRouter TaskQueues
|
236
238
|
def taskrouter_taskqueues
|
237
239
|
@properties['taskrouter_taskqueues']
|
238
240
|
end
|
239
241
|
|
240
242
|
##
|
241
|
-
# @return [Hash] The Skill description for TaskRouter workers
|
243
|
+
# @return [Array[Hash]] The Skill description for TaskRouter workers
|
242
244
|
def taskrouter_skills
|
243
245
|
@properties['taskrouter_skills']
|
244
246
|
end
|
@@ -376,7 +378,7 @@ module Twilio
|
|
376
378
|
end
|
377
379
|
|
378
380
|
##
|
379
|
-
# @return [Hash] A list of objects that contain the configurations for the Integrations supported in this configuration
|
381
|
+
# @return [Array[Hash]] A list of objects that contain the configurations for the Integrations supported in this configuration
|
380
382
|
def integrations
|
381
383
|
@properties['integrations']
|
382
384
|
end
|
@@ -388,7 +390,7 @@ module Twilio
|
|
388
390
|
end
|
389
391
|
|
390
392
|
##
|
391
|
-
# @return [String] The list of serverless service SIDs
|
393
|
+
# @return [Array[String]] The list of serverless service SIDs
|
392
394
|
def serverless_service_sids
|
393
395
|
@properties['serverless_service_sids']
|
394
396
|
end
|
@@ -399,6 +401,18 @@ module Twilio
|
|
399
401
|
@properties['queue_stats_configuration']
|
400
402
|
end
|
401
403
|
|
404
|
+
##
|
405
|
+
# @return [Hash] Configurable parameters for Notifications
|
406
|
+
def notifications
|
407
|
+
@properties['notifications']
|
408
|
+
end
|
409
|
+
|
410
|
+
##
|
411
|
+
# @return [Hash] Configurable parameters for Markdown
|
412
|
+
def markdown
|
413
|
+
@properties['markdown']
|
414
|
+
end
|
415
|
+
|
402
416
|
##
|
403
417
|
# @return [String] The absolute URL of the Configuration resource
|
404
418
|
def url
|