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
@@ -27,7 +27,7 @@ module Twilio
|
|
27
27
|
# Lists FlexFlowInstance records from the API as a list.
|
28
28
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
29
29
|
# memory before returning.
|
30
|
-
# @param [String] friendly_name The `friendly_name` of the
|
30
|
+
# @param [String] friendly_name The `friendly_name` of the Flex Flow resources to
|
31
31
|
# read.
|
32
32
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
33
33
|
# guarantees to never return more than limit. Default is no limit
|
@@ -44,7 +44,7 @@ module Twilio
|
|
44
44
|
# Streams FlexFlowInstance records from the API as an Enumerable.
|
45
45
|
# This operation lazily loads records as efficiently as possible until the limit
|
46
46
|
# is reached.
|
47
|
-
# @param [String] friendly_name The `friendly_name` of the
|
47
|
+
# @param [String] friendly_name The `friendly_name` of the Flex Flow resources to
|
48
48
|
# read.
|
49
49
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
50
50
|
# guarantees to never return more than limit. Default is no limit.
|
@@ -78,7 +78,7 @@ module Twilio
|
|
78
78
|
##
|
79
79
|
# Retrieve a single page of FlexFlowInstance records from the API.
|
80
80
|
# Request is executed immediately.
|
81
|
-
# @param [String] friendly_name The `friendly_name` of the
|
81
|
+
# @param [String] friendly_name The `friendly_name` of the Flex Flow resources to
|
82
82
|
# read.
|
83
83
|
# @param [String] page_token PageToken provided by the API
|
84
84
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
@@ -113,33 +113,36 @@ module Twilio
|
|
113
113
|
##
|
114
114
|
# Create the FlexFlowInstance
|
115
115
|
# @param [String] friendly_name A descriptive string that you create to describe
|
116
|
-
# the
|
116
|
+
# the Flex Flow resource.
|
117
117
|
# @param [String] chat_service_sid The SID of the chat service.
|
118
118
|
# @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
|
119
119
|
# `facebook`, `sms`, `whatsapp`, `line` or `custom`.
|
120
120
|
# @param [String] contact_identity The channel contact's Identity.
|
121
|
-
# @param [Boolean] enabled Whether the new
|
121
|
+
# @param [Boolean] enabled Whether the new Flex Flow is enabled.
|
122
122
|
# @param [flex_flow.IntegrationType] integration_type The integration type. Can
|
123
123
|
# be: `studio`, `external`, or `task`.
|
124
|
-
# @param [String] integration_flow_sid The SID of the Flow when
|
125
|
-
# is `studio`.
|
126
|
-
# @param [String] integration_url The
|
127
|
-
# is `external`.
|
128
|
-
# @param [String] integration_workspace_sid The Workspace SID for a new
|
129
|
-
#
|
130
|
-
# @param [String] integration_workflow_sid The Workflow SID for a new
|
131
|
-
# `
|
132
|
-
# @param [String] integration_channel The
|
133
|
-
#
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
138
|
-
# @param [
|
139
|
-
#
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
124
|
+
# @param [String] integration_flow_sid The SID of the Studio Flow. Required when
|
125
|
+
# `integrationType` is `studio`.
|
126
|
+
# @param [String] integration_url The URL of the external webhook. Required when
|
127
|
+
# `integrationType` is `external`.
|
128
|
+
# @param [String] integration_workspace_sid The Workspace SID for a new Task.
|
129
|
+
# Required when `integrationType` is `task`.
|
130
|
+
# @param [String] integration_workflow_sid The Workflow SID for a new Task.
|
131
|
+
# Required when `integrationType` is `task`.
|
132
|
+
# @param [String] integration_channel The Task Channel for the TaskRouter Task
|
133
|
+
# that will be created. Applicable and required when integrationType is `task`.
|
134
|
+
# Set to `sms` for SMS, and to `chat` otherwise. The default value is `default`
|
135
|
+
# @param [String] integration_timeout The Task timeout in seconds for a new Task.
|
136
|
+
# Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`,
|
137
|
+
# not applicable otherwise.
|
138
|
+
# @param [String] integration_priority The Task priority of a new Task. The
|
139
|
+
# default priority is 0. Optional when `integrationType` is `task`, not applicable
|
140
|
+
# otherwise.
|
141
|
+
# @param [Boolean] integration_creation_on_message In the context of outbound
|
142
|
+
# messaging, defines whether to create a Task immediately (and therefore reserve
|
143
|
+
# the conversation to current agent), or delay Task creation until the customer
|
144
|
+
# sends the first response. Set to false to create immediately, true to delay Task
|
145
|
+
# creation. This setting is only applicable for outbound messaging.
|
143
146
|
# @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
|
144
147
|
# so that it may be used for subsequent interactions with a contact identity.
|
145
148
|
# Defaults to `false`.
|
@@ -147,8 +150,9 @@ module Twilio
|
|
147
150
|
# will remove active Proxy sessions if the associated Task is deleted outside of
|
148
151
|
# the Flex UI. Defaults to `false`.
|
149
152
|
# @param [String] integration_retry_count The number of times to retry the webhook
|
150
|
-
# if the first attempt fails. Can be an integer between 0 and 3
|
151
|
-
#
|
153
|
+
# if the first attempt fails. Can be an integer between 0 and 3 (included),
|
154
|
+
# default is 0. Optional when integrationType is `external`, not applicable
|
155
|
+
# otherwise.
|
152
156
|
# @return [FlexFlowInstance] Created FlexFlowInstance
|
153
157
|
def create(friendly_name: nil, chat_service_sid: nil, channel_type: nil, contact_identity: :unset, enabled: :unset, integration_type: :unset, integration_flow_sid: :unset, integration_url: :unset, integration_workspace_sid: :unset, integration_workflow_sid: :unset, integration_channel: :unset, integration_timeout: :unset, integration_priority: :unset, integration_creation_on_message: :unset, long_lived: :unset, janitor_enabled: :unset, integration_retry_count: :unset)
|
154
158
|
data = Twilio::Values.of({
|
@@ -216,7 +220,7 @@ module Twilio
|
|
216
220
|
##
|
217
221
|
# Initialize the FlexFlowContext
|
218
222
|
# @param [Version] version Version that contains the resource
|
219
|
-
# @param [String] sid The SID of the
|
223
|
+
# @param [String] sid The SID of the Flex Flow resource to fetch.
|
220
224
|
# @return [FlexFlowContext] FlexFlowContext
|
221
225
|
def initialize(version, sid)
|
222
226
|
super(version)
|
@@ -238,33 +242,36 @@ module Twilio
|
|
238
242
|
##
|
239
243
|
# Update the FlexFlowInstance
|
240
244
|
# @param [String] friendly_name A descriptive string that you create to describe
|
241
|
-
# the
|
245
|
+
# the Flex Flow resource.
|
242
246
|
# @param [String] chat_service_sid The SID of the chat service.
|
243
247
|
# @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
|
244
248
|
# `facebook`, `sms`, `whatsapp`, `line` or `custom`.
|
245
249
|
# @param [String] contact_identity The channel contact's Identity.
|
246
|
-
# @param [Boolean] enabled Whether the
|
250
|
+
# @param [Boolean] enabled Whether the new Flex Flow is enabled.
|
247
251
|
# @param [flex_flow.IntegrationType] integration_type The integration type. Can
|
248
252
|
# be: `studio`, `external`, or `task`.
|
249
|
-
# @param [String] integration_flow_sid The SID of the Flow when
|
250
|
-
# is `studio`.
|
251
|
-
# @param [String] integration_url The
|
252
|
-
# is `external`.
|
253
|
-
# @param [String] integration_workspace_sid The Workspace SID for a new
|
254
|
-
# `
|
255
|
-
# @param [String] integration_workflow_sid The Workflow SID for a new
|
256
|
-
# `
|
257
|
-
# @param [String] integration_channel The
|
258
|
-
#
|
259
|
-
#
|
260
|
-
#
|
261
|
-
#
|
262
|
-
#
|
263
|
-
# @param [
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
#
|
253
|
+
# @param [String] integration_flow_sid The SID of the Studio Flow. Required when
|
254
|
+
# `integrationType` is `studio`.
|
255
|
+
# @param [String] integration_url The URL of the external webhook. Required when
|
256
|
+
# `integrationType` is `external`.
|
257
|
+
# @param [String] integration_workspace_sid The Workspace SID for a new Task.
|
258
|
+
# Required when `integrationType` is `task`.
|
259
|
+
# @param [String] integration_workflow_sid The Workflow SID for a new Task.
|
260
|
+
# Required when `integrationType` is `task`.
|
261
|
+
# @param [String] integration_channel The Task Channel for the TaskRouter Task
|
262
|
+
# that will be created. Applicable and required when integrationType is `task`.
|
263
|
+
# Set to `sms` for SMS, and to `chat` otherwise. The default value is `default`
|
264
|
+
# @param [String] integration_timeout The Task timeout in seconds for a new Task.
|
265
|
+
# Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`,
|
266
|
+
# not applicable otherwise.
|
267
|
+
# @param [String] integration_priority The Task priority of a new Task. The
|
268
|
+
# default priority is 0. Optional when `integrationType` is `task`, not applicable
|
269
|
+
# otherwise.
|
270
|
+
# @param [Boolean] integration_creation_on_message In the context of outbound
|
271
|
+
# messaging, defines whether to create a Task immediately (and therefore reserve
|
272
|
+
# the conversation to current agent), or delay Task creation until the customer
|
273
|
+
# sends the first response. Set to false to create immediately, true to delay Task
|
274
|
+
# creation. This setting is only applicable for outbound messaging.
|
268
275
|
# @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
|
269
276
|
# so that it may be used for subsequent interactions with a contact identity.
|
270
277
|
# Defaults to `false`.
|
@@ -272,8 +279,9 @@ module Twilio
|
|
272
279
|
# will remove active Proxy sessions if the associated Task is deleted outside of
|
273
280
|
# the Flex UI. Defaults to `false`.
|
274
281
|
# @param [String] integration_retry_count The number of times to retry the webhook
|
275
|
-
# if the first attempt fails. Can be an integer between 0 and 3
|
276
|
-
#
|
282
|
+
# if the first attempt fails. Can be an integer between 0 and 3 (included),
|
283
|
+
# default is 0. Optional when integrationType is `external`, not applicable
|
284
|
+
# otherwise.
|
277
285
|
# @return [FlexFlowInstance] Updated FlexFlowInstance
|
278
286
|
def update(friendly_name: :unset, chat_service_sid: :unset, channel_type: :unset, contact_identity: :unset, enabled: :unset, integration_type: :unset, integration_flow_sid: :unset, integration_url: :unset, integration_workspace_sid: :unset, integration_workflow_sid: :unset, integration_channel: :unset, integration_timeout: :unset, integration_priority: :unset, integration_creation_on_message: :unset, long_lived: :unset, janitor_enabled: :unset, integration_retry_count: :unset)
|
279
287
|
data = Twilio::Values.of({
|
@@ -328,7 +336,7 @@ module Twilio
|
|
328
336
|
# Initialize the FlexFlowInstance
|
329
337
|
# @param [Version] version Version that contains the resource
|
330
338
|
# @param [Hash] payload payload that contains response from Twilio
|
331
|
-
# @param [String] sid The SID of the
|
339
|
+
# @param [String] sid The SID of the Flex Flow resource to fetch.
|
332
340
|
# @return [FlexFlowInstance] FlexFlowInstance
|
333
341
|
def initialize(version, payload, sid: nil)
|
334
342
|
super(version)
|
@@ -416,7 +424,7 @@ module Twilio
|
|
416
424
|
end
|
417
425
|
|
418
426
|
##
|
419
|
-
# @return [Boolean] Whether the
|
427
|
+
# @return [Boolean] Whether the Flex Flow is enabled
|
420
428
|
def enabled
|
421
429
|
@properties['enabled']
|
422
430
|
end
|
@@ -446,7 +454,7 @@ module Twilio
|
|
446
454
|
end
|
447
455
|
|
448
456
|
##
|
449
|
-
# @return [String] The absolute URL of the
|
457
|
+
# @return [String] The absolute URL of the Flex Flow resource
|
450
458
|
def url
|
451
459
|
@properties['url']
|
452
460
|
end
|
@@ -461,33 +469,36 @@ module Twilio
|
|
461
469
|
##
|
462
470
|
# Update the FlexFlowInstance
|
463
471
|
# @param [String] friendly_name A descriptive string that you create to describe
|
464
|
-
# the
|
472
|
+
# the Flex Flow resource.
|
465
473
|
# @param [String] chat_service_sid The SID of the chat service.
|
466
474
|
# @param [flex_flow.ChannelType] channel_type The channel type. Can be: `web`,
|
467
475
|
# `facebook`, `sms`, `whatsapp`, `line` or `custom`.
|
468
476
|
# @param [String] contact_identity The channel contact's Identity.
|
469
|
-
# @param [Boolean] enabled Whether the
|
477
|
+
# @param [Boolean] enabled Whether the new Flex Flow is enabled.
|
470
478
|
# @param [flex_flow.IntegrationType] integration_type The integration type. Can
|
471
479
|
# be: `studio`, `external`, or `task`.
|
472
|
-
# @param [String] integration_flow_sid The SID of the Flow when
|
473
|
-
# is `studio`.
|
474
|
-
# @param [String] integration_url The
|
475
|
-
# is `external`.
|
476
|
-
# @param [String] integration_workspace_sid The Workspace SID for a new
|
477
|
-
# `
|
478
|
-
# @param [String] integration_workflow_sid The Workflow SID for a new
|
479
|
-
# `
|
480
|
-
# @param [String] integration_channel The
|
481
|
-
#
|
482
|
-
#
|
483
|
-
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
# @param [
|
487
|
-
#
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
480
|
+
# @param [String] integration_flow_sid The SID of the Studio Flow. Required when
|
481
|
+
# `integrationType` is `studio`.
|
482
|
+
# @param [String] integration_url The URL of the external webhook. Required when
|
483
|
+
# `integrationType` is `external`.
|
484
|
+
# @param [String] integration_workspace_sid The Workspace SID for a new Task.
|
485
|
+
# Required when `integrationType` is `task`.
|
486
|
+
# @param [String] integration_workflow_sid The Workflow SID for a new Task.
|
487
|
+
# Required when `integrationType` is `task`.
|
488
|
+
# @param [String] integration_channel The Task Channel for the TaskRouter Task
|
489
|
+
# that will be created. Applicable and required when integrationType is `task`.
|
490
|
+
# Set to `sms` for SMS, and to `chat` otherwise. The default value is `default`
|
491
|
+
# @param [String] integration_timeout The Task timeout in seconds for a new Task.
|
492
|
+
# Default is 86,400 seconds (24 hours). Optional when `integrationType` is `task`,
|
493
|
+
# not applicable otherwise.
|
494
|
+
# @param [String] integration_priority The Task priority of a new Task. The
|
495
|
+
# default priority is 0. Optional when `integrationType` is `task`, not applicable
|
496
|
+
# otherwise.
|
497
|
+
# @param [Boolean] integration_creation_on_message In the context of outbound
|
498
|
+
# messaging, defines whether to create a Task immediately (and therefore reserve
|
499
|
+
# the conversation to current agent), or delay Task creation until the customer
|
500
|
+
# sends the first response. Set to false to create immediately, true to delay Task
|
501
|
+
# creation. This setting is only applicable for outbound messaging.
|
491
502
|
# @param [Boolean] long_lived When enabled, Flex will keep the chat channel active
|
492
503
|
# so that it may be used for subsequent interactions with a contact identity.
|
493
504
|
# Defaults to `false`.
|
@@ -495,8 +506,9 @@ module Twilio
|
|
495
506
|
# will remove active Proxy sessions if the associated Task is deleted outside of
|
496
507
|
# the Flex UI. Defaults to `false`.
|
497
508
|
# @param [String] integration_retry_count The number of times to retry the webhook
|
498
|
-
# if the first attempt fails. Can be an integer between 0 and 3
|
499
|
-
#
|
509
|
+
# if the first attempt fails. Can be an integer between 0 and 3 (included),
|
510
|
+
# default is 0. Optional when integrationType is `external`, not applicable
|
511
|
+
# otherwise.
|
500
512
|
# @return [FlexFlowInstance] Updated FlexFlowInstance
|
501
513
|
def update(friendly_name: :unset, chat_service_sid: :unset, channel_type: :unset, contact_identity: :unset, enabled: :unset, integration_type: :unset, integration_flow_sid: :unset, integration_url: :unset, integration_workspace_sid: :unset, integration_workflow_sid: :unset, integration_channel: :unset, integration_timeout: :unset, integration_priority: :unset, integration_creation_on_message: :unset, long_lived: :unset, janitor_enabled: :unset, integration_retry_count: :unset)
|
502
514
|
context.update(
|
@@ -105,7 +105,7 @@ module Twilio
|
|
105
105
|
|
106
106
|
##
|
107
107
|
# Create the WebChannelInstance
|
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 chat identity.
|
110
110
|
# @param [String] customer_friendly_name The chat participant's friendly name.
|
111
111
|
# @param [String] chat_friendly_name The chat channel's friendly name.
|
@@ -268,7 +268,7 @@ module Twilio
|
|
268
268
|
end
|
269
269
|
|
270
270
|
##
|
271
|
-
# @return [String] The SID of the
|
271
|
+
# @return [String] The SID of the Flex Flow
|
272
272
|
def flex_flow_sid
|
273
273
|
@properties['flex_flow_sid']
|
274
274
|
end
|
@@ -11,8 +11,6 @@ module Twilio
|
|
11
11
|
class Insights < Domain
|
12
12
|
class V1 < Version
|
13
13
|
class CallContext < InstanceContext
|
14
|
-
##
|
15
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
16
14
|
class CallSummaryList < ListResource
|
17
15
|
##
|
18
16
|
# Initialize the CallSummaryList
|
@@ -33,8 +31,6 @@ module Twilio
|
|
33
31
|
end
|
34
32
|
end
|
35
33
|
|
36
|
-
##
|
37
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
38
34
|
class CallSummaryPage < Page
|
39
35
|
##
|
40
36
|
# Initialize the CallSummaryPage
|
@@ -64,8 +60,6 @@ module Twilio
|
|
64
60
|
end
|
65
61
|
end
|
66
62
|
|
67
|
-
##
|
68
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
69
63
|
class CallSummaryContext < InstanceContext
|
70
64
|
##
|
71
65
|
# Initialize the CallSummaryContext
|
@@ -107,8 +101,6 @@ module Twilio
|
|
107
101
|
end
|
108
102
|
end
|
109
103
|
|
110
|
-
##
|
111
|
-
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
112
104
|
class CallSummaryInstance < InstanceResource
|
113
105
|
##
|
114
106
|
# Initialize the CallSummaryInstance
|
@@ -126,6 +118,7 @@ module Twilio
|
|
126
118
|
'call_type' => payload['call_type'],
|
127
119
|
'call_state' => payload['call_state'],
|
128
120
|
'processing_state' => payload['processing_state'],
|
121
|
+
'created_time' => Twilio.deserialize_iso8601_datetime(payload['created_time']),
|
129
122
|
'start_time' => Twilio.deserialize_iso8601_datetime(payload['start_time']),
|
130
123
|
'end_time' => Twilio.deserialize_iso8601_datetime(payload['end_time']),
|
131
124
|
'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
|
@@ -189,6 +182,12 @@ module Twilio
|
|
189
182
|
@properties['processing_state']
|
190
183
|
end
|
191
184
|
|
185
|
+
##
|
186
|
+
# @return [Time] The created_time
|
187
|
+
def created_time
|
188
|
+
@properties['created_time']
|
189
|
+
end
|
190
|
+
|
192
191
|
##
|
193
192
|
# @return [Time] The start_time
|
194
193
|
def start_time
|
@@ -250,7 +249,7 @@ module Twilio
|
|
250
249
|
end
|
251
250
|
|
252
251
|
##
|
253
|
-
# @return [String] The tags
|
252
|
+
# @return [Array[String]] The tags
|
254
253
|
def tags
|
255
254
|
@properties['tags']
|
256
255
|
end
|
@@ -29,8 +29,8 @@ module Twilio
|
|
29
29
|
# Lists RoomInstance records from the API as a list.
|
30
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
31
|
# memory before returning.
|
32
|
-
# @param [room.RoomType] room_type The room_type
|
33
|
-
# @param [room.Codec] codec The codec
|
32
|
+
# @param [Array[room.RoomType]] room_type The room_type
|
33
|
+
# @param [Array[room.Codec]] codec The codec
|
34
34
|
# @param [String] room_name The room_name
|
35
35
|
# @param [Time] created_after The created_after
|
36
36
|
# @param [Time] created_before The created_before
|
@@ -57,8 +57,8 @@ module Twilio
|
|
57
57
|
# Streams RoomInstance records from the API as an Enumerable.
|
58
58
|
# This operation lazily loads records as efficiently as possible until the limit
|
59
59
|
# is reached.
|
60
|
-
# @param [room.RoomType] room_type The room_type
|
61
|
-
# @param [room.Codec] codec The codec
|
60
|
+
# @param [Array[room.RoomType]] room_type The room_type
|
61
|
+
# @param [Array[room.Codec]] codec The codec
|
62
62
|
# @param [String] room_name The room_name
|
63
63
|
# @param [Time] created_after The created_after
|
64
64
|
# @param [Time] created_before The created_before
|
@@ -101,8 +101,8 @@ module Twilio
|
|
101
101
|
##
|
102
102
|
# Retrieve a single page of RoomInstance records from the API.
|
103
103
|
# Request is executed immediately.
|
104
|
-
# @param [room.RoomType] room_type The room_type
|
105
|
-
# @param [room.Codec] codec The codec
|
104
|
+
# @param [Array[room.RoomType]] room_type The room_type
|
105
|
+
# @param [Array[room.Codec]] codec The codec
|
106
106
|
# @param [String] room_name The room_name
|
107
107
|
# @param [Time] created_after The created_after
|
108
108
|
# @param [Time] created_before The created_before
|
@@ -394,7 +394,7 @@ module Twilio
|
|
394
394
|
end
|
395
395
|
|
396
396
|
##
|
397
|
-
# @return [room.Codec] The codecs
|
397
|
+
# @return [Array[room.Codec]] The codecs
|
398
398
|
def codecs
|
399
399
|
@properties['codecs']
|
400
400
|
end
|
@@ -216,7 +216,7 @@ module Twilio
|
|
216
216
|
# @param [String] pre_webhook_url The pre_webhook_url
|
217
217
|
# @param [String] post_webhook_url The post_webhook_url
|
218
218
|
# @param [String] webhook_method The webhook_method
|
219
|
-
# @param [String] webhook_filters The webhook_filters
|
219
|
+
# @param [Array[String]] webhook_filters The webhook_filters
|
220
220
|
# @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
|
221
221
|
# @param [String] webhooks_on_message_send_method The
|
222
222
|
# webhooks.on_message_send.method
|
@@ -562,7 +562,7 @@ module Twilio
|
|
562
562
|
end
|
563
563
|
|
564
564
|
##
|
565
|
-
# @return [String] The webhook_filters
|
565
|
+
# @return [Array[String]] The webhook_filters
|
566
566
|
def webhook_filters
|
567
567
|
@properties['webhook_filters']
|
568
568
|
end
|
@@ -629,7 +629,7 @@ module Twilio
|
|
629
629
|
# @param [String] pre_webhook_url The pre_webhook_url
|
630
630
|
# @param [String] post_webhook_url The post_webhook_url
|
631
631
|
# @param [String] webhook_method The webhook_method
|
632
|
-
# @param [String] webhook_filters The webhook_filters
|
632
|
+
# @param [Array[String]] webhook_filters The webhook_filters
|
633
633
|
# @param [String] webhooks_on_message_send_url The webhooks.on_message_send.url
|
634
634
|
# @param [String] webhooks_on_message_send_method The
|
635
635
|
# webhooks.on_message_send.method
|
@@ -49,7 +49,7 @@ module Twilio
|
|
49
49
|
# Lists ChannelInstance records from the API as a list.
|
50
50
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
51
51
|
# memory before returning.
|
52
|
-
# @param [channel.ChannelType] type The type
|
52
|
+
# @param [Array[channel.ChannelType]] type The type
|
53
53
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
54
54
|
# guarantees to never return more than limit. Default is no limit
|
55
55
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -65,7 +65,7 @@ module Twilio
|
|
65
65
|
# Streams ChannelInstance records from the API as an Enumerable.
|
66
66
|
# This operation lazily loads records as efficiently as possible until the limit
|
67
67
|
# is reached.
|
68
|
-
# @param [channel.ChannelType] type The type
|
68
|
+
# @param [Array[channel.ChannelType]] type The type
|
69
69
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
70
70
|
# guarantees to never return more than limit. Default is no limit.
|
71
71
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -98,7 +98,7 @@ module Twilio
|
|
98
98
|
##
|
99
99
|
# Retrieve a single page of ChannelInstance records from the API.
|
100
100
|
# Request is executed immediately.
|
101
|
-
# @param [channel.ChannelType] type The type
|
101
|
+
# @param [Array[channel.ChannelType]] type The type
|
102
102
|
# @param [String] page_token PageToken provided by the API
|
103
103
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
104
104
|
# @param [Integer] page_size Number of records to return, defaults to 50
|