twilio-ruby 5.43.0 → 5.46.1
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 +83 -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 +17 -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 +2 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +2 -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 +4 -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/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/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/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 +6 -6
- 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 +32 -11
- 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/document.rb +12 -20
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +9 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +8 -31
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +9 -17
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +9 -32
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_permission.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +5 -15
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream/stream_message.rb +1 -1
- 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/trunking/v1/trunk/recording.rb +21 -24
- 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 +20 -10
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call/recording_spec.rb +4 -0
- data/spec/integration/api/v2010/account/conference/participant_spec.rb +30 -0
- 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/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/lookups/v1/phone_number_spec.rb +7 -7
- data/spec/integration/taskrouter/v1/workspace/worker/worker_channel_spec.rb +1 -1
- data/spec/integration/trunking/v1/trunk/recording_spec.rb +2 -6
- data/spec/integration/video/v1/room_spec.rb +5 -0
- data/spec/twiml/voice_response_spec.rb +1 -1
- metadata +2 -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
@@ -164,7 +164,7 @@ module Twilio
|
|
164
164
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Sync Map
|
165
165
|
# Permission resource to fetch. Can be the Service's `sid` value or `default`.
|
166
166
|
# @param [String] map_sid The SID of the Sync Map with the Sync Map Permission
|
167
|
-
# resource to fetch. Can be the Sync Map's `sid` or its `unique_name`.
|
167
|
+
# resource to fetch. Can be the Sync Map resource's `sid` or its `unique_name`.
|
168
168
|
# @param [String] identity The application-defined string that uniquely identifies
|
169
169
|
# the User's Sync Map Permission resource to fetch.
|
170
170
|
# @return [SyncMapPermissionContext] SyncMapPermissionContext
|
@@ -53,9 +53,6 @@ module Twilio
|
|
53
53
|
# Lists SyncStreamInstance records from the API as a list.
|
54
54
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
55
55
|
# memory before returning.
|
56
|
-
# @param [sync_stream.HideExpiredType] hide_expired The default list of Sync
|
57
|
-
# Streams will show both active and expired items. It is possible to filter only
|
58
|
-
# the active ones by hiding the expired ones.
|
59
56
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
60
57
|
# guarantees to never return more than limit. Default is no limit
|
61
58
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -63,17 +60,14 @@ module Twilio
|
|
63
60
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
64
61
|
# efficient page size, i.e. min(limit, 1000)
|
65
62
|
# @return [Array] Array of up to limit results
|
66
|
-
def list(
|
67
|
-
self.stream(
|
63
|
+
def list(limit: nil, page_size: nil)
|
64
|
+
self.stream(limit: limit, page_size: page_size).entries
|
68
65
|
end
|
69
66
|
|
70
67
|
##
|
71
68
|
# Streams SyncStreamInstance records from the API as an Enumerable.
|
72
69
|
# This operation lazily loads records as efficiently as possible until the limit
|
73
70
|
# is reached.
|
74
|
-
# @param [sync_stream.HideExpiredType] hide_expired The default list of Sync
|
75
|
-
# Streams will show both active and expired items. It is possible to filter only
|
76
|
-
# the active ones by hiding the expired ones.
|
77
71
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
78
72
|
# guarantees to never return more than limit. Default is no limit.
|
79
73
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -81,10 +75,10 @@ module Twilio
|
|
81
75
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
82
76
|
# efficient page size, i.e. min(limit, 1000)
|
83
77
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
84
|
-
def stream(
|
78
|
+
def stream(limit: nil, page_size: nil)
|
85
79
|
limits = @version.read_limits(limit, page_size)
|
86
80
|
|
87
|
-
page = self.page(
|
81
|
+
page = self.page(page_size: limits[:page_size], )
|
88
82
|
|
89
83
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
90
84
|
end
|
@@ -106,16 +100,12 @@ module Twilio
|
|
106
100
|
##
|
107
101
|
# Retrieve a single page of SyncStreamInstance records from the API.
|
108
102
|
# Request is executed immediately.
|
109
|
-
# @param [sync_stream.HideExpiredType] hide_expired The default list of Sync
|
110
|
-
# Streams will show both active and expired items. It is possible to filter only
|
111
|
-
# the active ones by hiding the expired ones.
|
112
103
|
# @param [String] page_token PageToken provided by the API
|
113
104
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
114
105
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
115
106
|
# @return [Page] Page of SyncStreamInstance
|
116
|
-
def page(
|
107
|
+
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
117
108
|
params = Twilio::Values.of({
|
118
|
-
'HideExpired' => hide_expired,
|
119
109
|
'PageToken' => page_token,
|
120
110
|
'Page' => page_number,
|
121
111
|
'PageSize' => page_size,
|
@@ -35,7 +35,7 @@ module Twilio
|
|
35
35
|
##
|
36
36
|
# Create the StreamMessageInstance
|
37
37
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
38
|
-
# object that makes up the Stream Message body. Can be up to
|
38
|
+
# object that makes up the Stream Message body. Can be up to 4 KiB in length.
|
39
39
|
# @return [StreamMessageInstance] Created StreamMessageInstance
|
40
40
|
def create(data: nil)
|
41
41
|
data = Twilio::Values.of({'Data' => Twilio.serialize_object(data), })
|
@@ -31,10 +31,10 @@ module Twilio
|
|
31
31
|
# memory before returning.
|
32
32
|
# @param [String] priority The priority value of the Tasks to read. Returns the
|
33
33
|
# list of all Tasks in the Workspace with the specified priority.
|
34
|
-
# @param [String] assignment_status The `assignment_status` of the Tasks
|
35
|
-
# to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
36
|
-
# `completed`. Returns all Tasks in the Workspace with the
|
37
|
-
# `assignment_status`.
|
34
|
+
# @param [Array[String]] assignment_status The `assignment_status` of the Tasks
|
35
|
+
# you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
36
|
+
# `wrapping`, or `completed`. Returns all Tasks in the Workspace with the
|
37
|
+
# specified `assignment_status`.
|
38
38
|
# @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
|
39
39
|
# Returns the Tasks controlled by the Workflow identified by this SID.
|
40
40
|
# @param [String] workflow_name The friendly name of the Workflow with the Tasks
|
@@ -86,10 +86,10 @@ module Twilio
|
|
86
86
|
# is reached.
|
87
87
|
# @param [String] priority The priority value of the Tasks to read. Returns the
|
88
88
|
# list of all Tasks in the Workspace with the specified priority.
|
89
|
-
# @param [String] assignment_status The `assignment_status` of the Tasks
|
90
|
-
# to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
91
|
-
# `completed`. Returns all Tasks in the Workspace with the
|
92
|
-
# `assignment_status`.
|
89
|
+
# @param [Array[String]] assignment_status The `assignment_status` of the Tasks
|
90
|
+
# you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
91
|
+
# `wrapping`, or `completed`. Returns all Tasks in the Workspace with the
|
92
|
+
# specified `assignment_status`.
|
93
93
|
# @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
|
94
94
|
# Returns the Tasks controlled by the Workflow identified by this SID.
|
95
95
|
# @param [String] workflow_name The friendly name of the Workflow with the Tasks
|
@@ -157,10 +157,10 @@ module Twilio
|
|
157
157
|
# Request is executed immediately.
|
158
158
|
# @param [String] priority The priority value of the Tasks to read. Returns the
|
159
159
|
# list of all Tasks in the Workspace with the specified priority.
|
160
|
-
# @param [String] assignment_status The `assignment_status` of the Tasks
|
161
|
-
# to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
162
|
-
# `completed`. Returns all Tasks in the Workspace with the
|
163
|
-
# `assignment_status`.
|
160
|
+
# @param [Array[String]] assignment_status The `assignment_status` of the Tasks
|
161
|
+
# you want to read. Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
162
|
+
# `wrapping`, or `completed`. Returns all Tasks in the Workspace with the
|
163
|
+
# specified `assignment_status`.
|
164
164
|
# @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
|
165
165
|
# Returns the Tasks controlled by the Workflow identified by this SID.
|
166
166
|
# @param [String] workflow_name The friendly name of the Workflow with the Tasks
|
@@ -223,10 +223,10 @@ module Twilio
|
|
223
223
|
|
224
224
|
##
|
225
225
|
# Create the TaskInstance
|
226
|
-
# @param [String] timeout The amount of time in seconds the new task
|
227
|
-
#
|
228
|
-
# is 24 hours (86,400 seconds). On timeout, the `task.canceled`
|
229
|
-
# with description `Task TTL Exceeded`.
|
226
|
+
# @param [String] timeout The amount of time in seconds the new task can live
|
227
|
+
# before being assigned. Can be up to a maximum of 2 weeks (1,209,600 seconds).
|
228
|
+
# The default value is 24 hours (86,400 seconds). On timeout, the `task.canceled`
|
229
|
+
# event will fire with description `Task TTL Exceeded`.
|
230
230
|
# @param [String] priority The priority to assign the new task and override the
|
231
231
|
# default. When supplied, the new Task will have this priority unless it matches a
|
232
232
|
# Workflow Target with a Priority set. When not supplied, the new Task will have
|
@@ -539,7 +539,7 @@ module Twilio
|
|
539
539
|
end
|
540
540
|
|
541
541
|
##
|
542
|
-
# @return [String] The amount of time in seconds that the Task
|
542
|
+
# @return [String] The amount of time in seconds that the Task can live before being assigned
|
543
543
|
def timeout
|
544
544
|
@properties['timeout']
|
545
545
|
end
|
@@ -244,8 +244,8 @@ module Twilio
|
|
244
244
|
# `status_callback_method` to send status information to your application.
|
245
245
|
# @param [String] status_callback_method The HTTP method we should use to call
|
246
246
|
# `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
|
247
|
-
# @param [reservation.CallStatus] status_callback_event The call progress
|
248
|
-
# that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
247
|
+
# @param [Array[reservation.CallStatus]] status_callback_event The call progress
|
248
|
+
# events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
249
249
|
# `answered`, or `completed`.
|
250
250
|
# @param [String] timeout Timeout for call when executing a Conference
|
251
251
|
# instruction.
|
@@ -282,7 +282,7 @@ module Twilio
|
|
282
282
|
# @param [String] conference_status_callback_method The HTTP method we should use
|
283
283
|
# to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
|
284
284
|
# `POST`.
|
285
|
-
# @param [reservation.ConferenceEvent] conference_status_callback_event The
|
285
|
+
# @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
|
286
286
|
# conference status events that we will send to `conference_status_callback`. Can
|
287
287
|
# be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
|
288
288
|
# @param [String] conference_record Whether to record the conference the
|
@@ -310,8 +310,8 @@ module Twilio
|
|
310
310
|
# `br1`, `au1`, or `jp1`.
|
311
311
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
312
312
|
# @param [String] sip_auth_password The SIP password for authentication.
|
313
|
-
# @param [String] dequeue_status_callback_event The Call progress events
|
314
|
-
# webhooks as a result of a Dequeue instruction.
|
313
|
+
# @param [Array[String]] dequeue_status_callback_event The Call progress events
|
314
|
+
# sent via webhooks as a result of a Dequeue instruction.
|
315
315
|
# @param [String] post_work_activity_sid The new worker activity SID after
|
316
316
|
# executing a Conference instruction.
|
317
317
|
# @param [reservation.SupervisorMode] supervisor_mode The Supervisor mode when
|
@@ -584,8 +584,8 @@ module Twilio
|
|
584
584
|
# `status_callback_method` to send status information to your application.
|
585
585
|
# @param [String] status_callback_method The HTTP method we should use to call
|
586
586
|
# `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
|
587
|
-
# @param [reservation.CallStatus] status_callback_event The call progress
|
588
|
-
# that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
587
|
+
# @param [Array[reservation.CallStatus]] status_callback_event The call progress
|
588
|
+
# events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
589
589
|
# `answered`, or `completed`.
|
590
590
|
# @param [String] timeout Timeout for call when executing a Conference
|
591
591
|
# instruction.
|
@@ -622,7 +622,7 @@ module Twilio
|
|
622
622
|
# @param [String] conference_status_callback_method The HTTP method we should use
|
623
623
|
# to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
|
624
624
|
# `POST`.
|
625
|
-
# @param [reservation.ConferenceEvent] conference_status_callback_event The
|
625
|
+
# @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
|
626
626
|
# conference status events that we will send to `conference_status_callback`. Can
|
627
627
|
# be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
|
628
628
|
# @param [String] conference_record Whether to record the conference the
|
@@ -650,8 +650,8 @@ module Twilio
|
|
650
650
|
# `br1`, `au1`, or `jp1`.
|
651
651
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
652
652
|
# @param [String] sip_auth_password The SIP password for authentication.
|
653
|
-
# @param [String] dequeue_status_callback_event The Call progress events
|
654
|
-
# webhooks as a result of a Dequeue instruction.
|
653
|
+
# @param [Array[String]] dequeue_status_callback_event The Call progress events
|
654
|
+
# sent via webhooks as a result of a Dequeue instruction.
|
655
655
|
# @param [String] post_work_activity_sid The new worker activity SID after
|
656
656
|
# executing a Conference instruction.
|
657
657
|
# @param [reservation.SupervisorMode] supervisor_mode The Supervisor mode when
|
@@ -246,8 +246,8 @@ module Twilio
|
|
246
246
|
# `status_callback_method` to send status information to your application.
|
247
247
|
# @param [String] status_callback_method The HTTP method we should use to call
|
248
248
|
# `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
|
249
|
-
# @param [reservation.CallStatus] status_callback_event The call progress
|
250
|
-
# that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
249
|
+
# @param [Array[reservation.CallStatus]] status_callback_event The call progress
|
250
|
+
# events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
251
251
|
# `answered`, or `completed`.
|
252
252
|
# @param [String] timeout The timeout for a call when executing a Conference
|
253
253
|
# instruction.
|
@@ -286,7 +286,7 @@ module Twilio
|
|
286
286
|
# @param [String] conference_status_callback_method The HTTP method we should use
|
287
287
|
# to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
|
288
288
|
# `POST`.
|
289
|
-
# @param [reservation.ConferenceEvent] conference_status_callback_event The
|
289
|
+
# @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
|
290
290
|
# conference status events that we will send to `conference_status_callback`. Can
|
291
291
|
# be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
|
292
292
|
# @param [String] conference_record Whether to record the conference the
|
@@ -314,8 +314,8 @@ module Twilio
|
|
314
314
|
# `br1`, `au1`, or `jp1`.
|
315
315
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
316
316
|
# @param [String] sip_auth_password The SIP password for authentication.
|
317
|
-
# @param [String] dequeue_status_callback_event The call progress events
|
318
|
-
# webhooks as a result of a Dequeue instruction.
|
317
|
+
# @param [Array[String]] dequeue_status_callback_event The call progress events
|
318
|
+
# sent via webhooks as a result of a Dequeue instruction.
|
319
319
|
# @param [String] post_work_activity_sid The new worker activity SID after
|
320
320
|
# executing a Conference instruction.
|
321
321
|
# @param [Boolean] end_conference_on_customer_exit Whether to end the conference
|
@@ -584,8 +584,8 @@ module Twilio
|
|
584
584
|
# `status_callback_method` to send status information to your application.
|
585
585
|
# @param [String] status_callback_method The HTTP method we should use to call
|
586
586
|
# `status_callback`. Can be: `POST` or `GET` and the default is `POST`.
|
587
|
-
# @param [reservation.CallStatus] status_callback_event The call progress
|
588
|
-
# that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
587
|
+
# @param [Array[reservation.CallStatus]] status_callback_event The call progress
|
588
|
+
# events that we will send to `status_callback`. Can be: `initiated`, `ringing`,
|
589
589
|
# `answered`, or `completed`.
|
590
590
|
# @param [String] timeout The timeout for a call when executing a Conference
|
591
591
|
# instruction.
|
@@ -624,7 +624,7 @@ module Twilio
|
|
624
624
|
# @param [String] conference_status_callback_method The HTTP method we should use
|
625
625
|
# to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to
|
626
626
|
# `POST`.
|
627
|
-
# @param [reservation.ConferenceEvent] conference_status_callback_event The
|
627
|
+
# @param [Array[reservation.ConferenceEvent]] conference_status_callback_event The
|
628
628
|
# conference status events that we will send to `conference_status_callback`. Can
|
629
629
|
# be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`.
|
630
630
|
# @param [String] conference_record Whether to record the conference the
|
@@ -652,8 +652,8 @@ module Twilio
|
|
652
652
|
# `br1`, `au1`, or `jp1`.
|
653
653
|
# @param [String] sip_auth_username The SIP username used for authentication.
|
654
654
|
# @param [String] sip_auth_password The SIP password for authentication.
|
655
|
-
# @param [String] dequeue_status_callback_event The call progress events
|
656
|
-
# webhooks as a result of a Dequeue instruction.
|
655
|
+
# @param [Array[String]] dequeue_status_callback_event The call progress events
|
656
|
+
# sent via webhooks as a result of a Dequeue instruction.
|
657
657
|
# @param [String] post_work_activity_sid The new worker activity SID after
|
658
658
|
# executing a Conference instruction.
|
659
659
|
# @param [Boolean] end_conference_on_customer_exit Whether to end the conference
|
@@ -180,7 +180,7 @@ module Twilio
|
|
180
180
|
end
|
181
181
|
|
182
182
|
##
|
183
|
-
# @return [Hash] The minimum, average, maximum, and total time that Workers spent in each Activity
|
183
|
+
# @return [Array[Hash]] The minimum, average, maximum, and total time that Workers spent in each Activity
|
184
184
|
def activity_durations
|
185
185
|
@properties['activity_durations']
|
186
186
|
end
|
@@ -15,7 +15,8 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the RecordingList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] trunk_sid The
|
18
|
+
# @param [String] trunk_sid The unique string that we created to identify the
|
19
|
+
# Trunk resource.
|
19
20
|
# @return [RecordingList] RecordingList
|
20
21
|
def initialize(version, trunk_sid: nil)
|
21
22
|
super(version)
|
@@ -86,9 +87,16 @@ module Twilio
|
|
86
87
|
|
87
88
|
##
|
88
89
|
# Update the RecordingInstance
|
90
|
+
# @param [recording.RecordingMode] mode The recording mode for the trunk. Can be
|
91
|
+
# do-not-record (default), record-from-ringing, record-from-answer,
|
92
|
+
# record-from-ringing-dual, or record-from-answer-dual.
|
93
|
+
# @param [recording.RecordingTrim] trim The recording trim setting for the trunk.
|
94
|
+
# Can be do-not-trim (default) or trim-silence.
|
89
95
|
# @return [RecordingInstance] Updated RecordingInstance
|
90
|
-
def update
|
91
|
-
|
96
|
+
def update(mode: :unset, trim: :unset)
|
97
|
+
data = Twilio::Values.of({'Mode' => mode, 'Trim' => trim, })
|
98
|
+
|
99
|
+
payload = @version.update('POST', @uri, data: data)
|
92
100
|
|
93
101
|
RecordingInstance.new(@version, payload, trunk_sid: @solution[:trunk_sid], )
|
94
102
|
end
|
@@ -113,18 +121,14 @@ module Twilio
|
|
113
121
|
# Initialize the RecordingInstance
|
114
122
|
# @param [Version] version Version that contains the resource
|
115
123
|
# @param [Hash] payload payload that contains response from Twilio
|
116
|
-
# @param [String] trunk_sid The
|
124
|
+
# @param [String] trunk_sid The unique string that we created to identify the
|
125
|
+
# Trunk resource.
|
117
126
|
# @return [RecordingInstance] RecordingInstance
|
118
127
|
def initialize(version, payload, trunk_sid: nil)
|
119
128
|
super(version)
|
120
129
|
|
121
130
|
# Marshaled Properties
|
122
|
-
@properties = {
|
123
|
-
'mode' => payload['mode'],
|
124
|
-
'trim' => payload['trim'],
|
125
|
-
'url' => payload['url'],
|
126
|
-
'trunk_sid' => payload['trunk_sid'],
|
127
|
-
}
|
131
|
+
@properties = {'mode' => payload['mode'], 'trim' => payload['trim'], }
|
128
132
|
|
129
133
|
# Context
|
130
134
|
@instance_context = nil
|
@@ -154,18 +158,6 @@ module Twilio
|
|
154
158
|
@properties['trim']
|
155
159
|
end
|
156
160
|
|
157
|
-
##
|
158
|
-
# @return [String] The url
|
159
|
-
def url
|
160
|
-
@properties['url']
|
161
|
-
end
|
162
|
-
|
163
|
-
##
|
164
|
-
# @return [String] The trunk_sid
|
165
|
-
def trunk_sid
|
166
|
-
@properties['trunk_sid']
|
167
|
-
end
|
168
|
-
|
169
161
|
##
|
170
162
|
# Fetch the RecordingInstance
|
171
163
|
# @return [RecordingInstance] Fetched RecordingInstance
|
@@ -175,9 +167,14 @@ module Twilio
|
|
175
167
|
|
176
168
|
##
|
177
169
|
# Update the RecordingInstance
|
170
|
+
# @param [recording.RecordingMode] mode The recording mode for the trunk. Can be
|
171
|
+
# do-not-record (default), record-from-ringing, record-from-answer,
|
172
|
+
# record-from-ringing-dual, or record-from-answer-dual.
|
173
|
+
# @param [recording.RecordingTrim] trim The recording trim setting for the trunk.
|
174
|
+
# Can be do-not-trim (default) or trim-silence.
|
178
175
|
# @return [RecordingInstance] Updated RecordingInstance
|
179
|
-
def update
|
180
|
-
context.update
|
176
|
+
def update(mode: :unset, trim: :unset)
|
177
|
+
context.update(mode: mode, trim: trim, )
|
181
178
|
end
|
182
179
|
|
183
180
|
##
|
@@ -39,9 +39,9 @@ module Twilio
|
|
39
39
|
# minutes after creation.
|
40
40
|
# @param [String] details_message Shown to the user when the push notification
|
41
41
|
# arrives. Required when `factor_type` is `push`
|
42
|
-
# @param [Hash] details_fields A list of objects that describe the Fields
|
43
|
-
# in the Challenge. Each object contains the label and value of the
|
44
|
-
# when `factor_type` is `push`.
|
42
|
+
# @param [Array[Hash]] details_fields A list of objects that describe the Fields
|
43
|
+
# included in the Challenge. Each object contains the label and value of the
|
44
|
+
# field. Used when `factor_type` is `push`.
|
45
45
|
# @param [Hash] hidden_details Details provided to give context about the
|
46
46
|
# Challenge. Not shown to the end user. It must be a stringified JSON with only
|
47
47
|
# strings values eg. `{"ip": "172.168.1.234"}`
|
@@ -31,9 +31,9 @@ module Twilio
|
|
31
31
|
# Create the WebhookInstance
|
32
32
|
# @param [String] friendly_name The string that you assigned to describe the
|
33
33
|
# webhook. **This value should not contain PII.**
|
34
|
-
# @param [String] event_types The array of events that this Webhook is
|
35
|
-
# to. Possible event types: `*, factor.deleted, factor.created,
|
36
|
-
# challenge.approved, challenge.denied`
|
34
|
+
# @param [Array[String]] event_types The array of events that this Webhook is
|
35
|
+
# subscribed to. Possible event types: `*, factor.deleted, factor.created,
|
36
|
+
# factor.verified, challenge.approved, challenge.denied`
|
37
37
|
# @param [String] webhook_url The URL associated with this Webhook.
|
38
38
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
39
39
|
# One of: `enabled` or `disabled`
|
@@ -191,9 +191,9 @@ module Twilio
|
|
191
191
|
# Update the WebhookInstance
|
192
192
|
# @param [String] friendly_name The string that you assigned to describe the
|
193
193
|
# webhook. **This value should not contain PII.**
|
194
|
-
# @param [String] event_types The array of events that this Webhook is
|
195
|
-
# to. Possible event types: `*, factor.deleted, factor.created,
|
196
|
-
# challenge.approved, challenge.denied`
|
194
|
+
# @param [Array[String]] event_types The array of events that this Webhook is
|
195
|
+
# subscribed to. Possible event types: `*, factor.deleted, factor.created,
|
196
|
+
# factor.verified, challenge.approved, challenge.denied`
|
197
197
|
# @param [String] webhook_url The URL associated with this Webhook.
|
198
198
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
199
199
|
# One of: `enabled` or `disabled`
|
@@ -312,7 +312,7 @@ module Twilio
|
|
312
312
|
end
|
313
313
|
|
314
314
|
##
|
315
|
-
# @return [String] The array of events that this Webhook is subscribed to.
|
315
|
+
# @return [Array[String]] The array of events that this Webhook is subscribed to.
|
316
316
|
def event_types
|
317
317
|
@properties['event_types']
|
318
318
|
end
|
@@ -357,9 +357,9 @@ module Twilio
|
|
357
357
|
# Update the WebhookInstance
|
358
358
|
# @param [String] friendly_name The string that you assigned to describe the
|
359
359
|
# webhook. **This value should not contain PII.**
|
360
|
-
# @param [String] event_types The array of events that this Webhook is
|
361
|
-
# to. Possible event types: `*, factor.deleted, factor.created,
|
362
|
-
# challenge.approved, challenge.denied`
|
360
|
+
# @param [Array[String]] event_types The array of events that this Webhook is
|
361
|
+
# subscribed to. Possible event types: `*, factor.deleted, factor.created,
|
362
|
+
# factor.verified, challenge.approved, challenge.denied`
|
363
363
|
# @param [String] webhook_url The URL associated with this Webhook.
|
364
364
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
365
365
|
# One of: `enabled` or `disabled`
|