twilio-ruby 5.42.0 → 5.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +95 -0
- data/LICENSE +1 -1
- data/README.md +18 -2
- data/lib/twilio-ruby.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +34 -9
- data/lib/twilio-ruby/rest/api/v2010/account/call/event.rb +201 -0
- 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/client.rb +29 -3
- 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 +14 -7
- 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 +2 -9
- 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.rb +5 -5
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +10 -10
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +4 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +4 -4
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v2/flow/flow_revision.rb +1 -1
- data/lib/twilio-ruby/rest/studio/v2/flow/test_user.rb +3 -3
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +1 -1
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +2 -2
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +1 -1
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -5
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +4 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +3 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +4 -2
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +4 -4
- 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/stream_message.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +12 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +10 -10
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +16 -16
- 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.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +3 -1
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +8 -6
- 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 +8 -4
- data/lib/twilio-ruby/util/configuration.rb +5 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call/event_spec.rb +102 -0
- data/spec/integration/api/v2010/account/call/recording_spec.rb +4 -0
- data/spec/integration/api/v2010/account/call_spec.rb +20 -10
- 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/events/v1/subscription_spec.rb +49 -0
- data/spec/integration/insights/v1/call/summary_spec.rb +1 -0
- data/spec/integration/insights/v1/room/participant_spec.rb +0 -2
- 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/rest/client_spec.rb +24 -2
- data/spec/twiml/voice_response_spec.rb +1 -1
- data/twilio-ruby.gemspec +1 -0
- metadata +19 -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
@@ -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
|
##
|
@@ -26,7 +26,7 @@ module Twilio
|
|
26
26
|
##
|
27
27
|
# Create the ServiceInstance
|
28
28
|
# @param [String] friendly_name A descriptive string that you create to describe
|
29
|
-
# the verification service. It can be up to
|
29
|
+
# the verification service. It can be up to 30 characters long. **This value
|
30
30
|
# should not contain PII.**
|
31
31
|
# @param [String] code_length The length of the verification code to generate.
|
32
32
|
# Must be an integer value between 4 and 10, inclusive.
|
@@ -241,7 +241,7 @@ module Twilio
|
|
241
241
|
##
|
242
242
|
# Update the ServiceInstance
|
243
243
|
# @param [String] friendly_name A descriptive string that you create to describe
|
244
|
-
# the verification service. It can be up to
|
244
|
+
# the verification service. It can be up to 30 characters long. **This value
|
245
245
|
# should not contain PII.**
|
246
246
|
# @param [String] code_length The length of the verification code to generate.
|
247
247
|
# Must be an integer value between 4 and 10, inclusive.
|
@@ -584,7 +584,7 @@ module Twilio
|
|
584
584
|
##
|
585
585
|
# Update the ServiceInstance
|
586
586
|
# @param [String] friendly_name A descriptive string that you create to describe
|
587
|
-
# the verification service. It can be up to
|
587
|
+
# the verification service. It can be up to 30 characters long. **This value
|
588
588
|
# should not contain PII.**
|
589
589
|
# @param [String] code_length The length of the verification code to generate.
|
590
590
|
# Must be an integer value between 4 and 10, inclusive.
|
@@ -30,7 +30,9 @@ module Twilio
|
|
30
30
|
##
|
31
31
|
# Create the EntityInstance
|
32
32
|
# @param [String] identity The unique external identifier for the Entity of the
|
33
|
-
# Service
|
33
|
+
# Service. This identifier should be immutable, not PII, length between 8 and 64
|
34
|
+
# characters, and generated by your external system, such as your user's UUID,
|
35
|
+
# GUID, or SID.
|
34
36
|
# @return [EntityInstance] Created EntityInstance
|
35
37
|
def create(identity: nil)
|
36
38
|
data = Twilio::Values.of({'Identity' => identity, })
|
@@ -33,13 +33,15 @@ module Twilio
|
|
33
33
|
##
|
34
34
|
# Create the ChallengeInstance
|
35
35
|
# @param [String] factor_sid The unique SID identifier of the Factor.
|
36
|
-
# @param [Time] expiration_date The
|
37
|
-
#
|
36
|
+
# @param [Time] expiration_date The date-time when this Challenge expires, given
|
37
|
+
# in {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] format. The default value
|
38
|
+
# is five (5) minutes after Challenge creation. The max value is sixty (60)
|
39
|
+
# minutes after creation.
|
38
40
|
# @param [String] details_message Shown to the user when the push notification
|
39
41
|
# arrives. Required when `factor_type` is `push`
|
40
|
-
# @param [Hash] details_fields A list of objects that describe the Fields
|
41
|
-
# in the Challenge. Each object contains the label and value of the
|
42
|
-
# 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`.
|
43
45
|
# @param [Hash] hidden_details Details provided to give context about the
|
44
46
|
# Challenge. Not shown to the end user. It must be a stringified JSON with only
|
45
47
|
# strings values eg. `{"ip": "172.168.1.234"}`
|
@@ -379,7 +381,7 @@ module Twilio
|
|
379
381
|
end
|
380
382
|
|
381
383
|
##
|
382
|
-
# @return [Time] The date this Challenge
|
384
|
+
# @return [Time] The date-time when this Challenge expires
|
383
385
|
def expiration_date
|
384
386
|
@properties['expiration_date']
|
385
387
|
end
|
@@ -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`
|
@@ -155,20 +155,21 @@ module Twilio
|
|
155
155
|
# Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
|
156
156
|
# for more info. Please, be aware that either video_layout or audio_sources have
|
157
157
|
# to be provided to get a valid creation request
|
158
|
-
# @param [String] audio_sources An array of track names from the same group
|
159
|
-
# to merge into the new composition. Can include zero or more track names.
|
160
|
-
# composition includes all audio sources specified in `audio_sources`
|
161
|
-
# those specified in `audio_sources_excluded`. The track names in this
|
162
|
-
# can include an asterisk as a wild card character, which will match zero or more
|
163
|
-
# characters in a track name. For example, `student*` includes `student` as well
|
164
|
-
# as `studentTeam`. Please, be aware that either video_layout or audio_sources
|
165
|
-
# have to be provided to get a valid creation request
|
166
|
-
# @param [String] audio_sources_excluded An array of track names to exclude. The
|
167
|
-
# new composition includes all audio sources specified in `audio_sources` except
|
168
|
-
# for those specified in `audio_sources_excluded`. The track names in this
|
158
|
+
# @param [Array[String]] audio_sources An array of track names from the same group
|
159
|
+
# room to merge into the new composition. Can include zero or more track names.
|
160
|
+
# The new composition includes all audio sources specified in `audio_sources`
|
161
|
+
# except for those specified in `audio_sources_excluded`. The track names in this
|
169
162
|
# parameter can include an asterisk as a wild card character, which will match
|
170
|
-
# zero or more characters in a track name. For example, `student*`
|
171
|
-
# `student` as well as `studentTeam`.
|
163
|
+
# zero or more characters in a track name. For example, `student*` includes
|
164
|
+
# `student` as well as `studentTeam`. Please, be aware that either video_layout or
|
165
|
+
# audio_sources have to be provided to get a valid creation request
|
166
|
+
# @param [Array[String]] audio_sources_excluded An array of track names to
|
167
|
+
# exclude. The new composition includes all audio sources specified in
|
168
|
+
# `audio_sources` except for those specified in `audio_sources_excluded`. The
|
169
|
+
# track names in this parameter can include an asterisk as a wild card character,
|
170
|
+
# which will match zero or more characters in a track name. For example,
|
171
|
+
# `student*` excludes `student` as well as `studentTeam`. This parameter can also
|
172
|
+
# be empty.
|
172
173
|
# @param [String] resolution A string that describes the columns (width) and rows
|
173
174
|
# (height) of the generated composed video in pixels. Defaults to `640x480`.
|
174
175
|
# The string's format is `{width}x{height}` where:
|
@@ -404,13 +405,13 @@ module Twilio
|
|
404
405
|
end
|
405
406
|
|
406
407
|
##
|
407
|
-
# @return [String] The array of track names to include in the composition
|
408
|
+
# @return [Array[String]] The array of track names to include in the composition
|
408
409
|
def audio_sources
|
409
410
|
@properties['audio_sources']
|
410
411
|
end
|
411
412
|
|
412
413
|
##
|
413
|
-
# @return [String] The array of track names to exclude from the composition
|
414
|
+
# @return [Array[String]] The array of track names to exclude from the composition
|
414
415
|
def audio_sources_excluded
|
415
416
|
@properties['audio_sources_excluded']
|
416
417
|
end
|
@@ -167,17 +167,17 @@ module Twilio
|
|
167
167
|
# composition hook in terms of regions. See {Specifying Video
|
168
168
|
# Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
|
169
169
|
# for more info.
|
170
|
-
# @param [String] audio_sources An array of track names from the same group
|
171
|
-
# to merge into the compositions created by the composition hook. Can include
|
172
|
-
# or more track names. A composition triggered by the composition hook
|
173
|
-
# all audio sources specified in `audio_sources` except those specified
|
174
|
-
# `audio_sources_excluded`. The track names in this parameter can include an
|
170
|
+
# @param [Array[String]] audio_sources An array of track names from the same group
|
171
|
+
# room to merge into the compositions created by the composition hook. Can include
|
172
|
+
# zero or more track names. A composition triggered by the composition hook
|
173
|
+
# includes all audio sources specified in `audio_sources` except those specified
|
174
|
+
# in `audio_sources_excluded`. The track names in this parameter can include an
|
175
175
|
# asterisk as a wild card character, which matches zero or more characters in a
|
176
176
|
# track name. For example, `student*` includes tracks named `student` as well as
|
177
177
|
# `studentTeam`.
|
178
|
-
# @param [String] audio_sources_excluded An array of track names to
|
179
|
-
# composition triggered by the composition hook includes all audio
|
180
|
-
# specified in `audio_sources` except for those specified in
|
178
|
+
# @param [Array[String]] audio_sources_excluded An array of track names to
|
179
|
+
# exclude. A composition triggered by the composition hook includes all audio
|
180
|
+
# sources specified in `audio_sources` except for those specified in
|
181
181
|
# `audio_sources_excluded`. The track names in this parameter can include an
|
182
182
|
# asterisk as a wild card character, which matches zero or more characters in a
|
183
183
|
# track name. For example, `student*` excludes `student` as well as `studentTeam`.
|
@@ -323,17 +323,17 @@ module Twilio
|
|
323
323
|
# composition hook in terms of regions. See {Specifying Video
|
324
324
|
# Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
|
325
325
|
# for more info.
|
326
|
-
# @param [String] audio_sources An array of track names from the same group
|
327
|
-
# to merge into the compositions created by the composition hook. Can include
|
328
|
-
# or more track names. A composition triggered by the composition hook
|
329
|
-
# all audio sources specified in `audio_sources` except those specified
|
330
|
-
# `audio_sources_excluded`. The track names in this parameter can include an
|
326
|
+
# @param [Array[String]] audio_sources An array of track names from the same group
|
327
|
+
# room to merge into the compositions created by the composition hook. Can include
|
328
|
+
# zero or more track names. A composition triggered by the composition hook
|
329
|
+
# includes all audio sources specified in `audio_sources` except those specified
|
330
|
+
# in `audio_sources_excluded`. The track names in this parameter can include an
|
331
331
|
# asterisk as a wild card character, which matches zero or more characters in a
|
332
332
|
# track name. For example, `student*` includes tracks named `student` as well as
|
333
333
|
# `studentTeam`.
|
334
|
-
# @param [String] audio_sources_excluded An array of track names to
|
335
|
-
# composition triggered by the composition hook includes all audio
|
336
|
-
# specified in `audio_sources` except for those specified in
|
334
|
+
# @param [Array[String]] audio_sources_excluded An array of track names to
|
335
|
+
# exclude. A composition triggered by the composition hook includes all audio
|
336
|
+
# sources specified in `audio_sources` except for those specified in
|
337
337
|
# `audio_sources_excluded`. The track names in this parameter can include an
|
338
338
|
# asterisk as a wild card character, which matches zero or more characters in a
|
339
339
|
# track name. For example, `student*` excludes `student` as well as `studentTeam`.
|
@@ -496,13 +496,13 @@ module Twilio
|
|
496
496
|
end
|
497
497
|
|
498
498
|
##
|
499
|
-
# @return [String] The array of track names to include in the compositions created by the composition hook
|
499
|
+
# @return [Array[String]] The array of track names to include in the compositions created by the composition hook
|
500
500
|
def audio_sources
|
501
501
|
@properties['audio_sources']
|
502
502
|
end
|
503
503
|
|
504
504
|
##
|
505
|
-
# @return [String] The array of track names to exclude from the compositions created by the composition hook
|
505
|
+
# @return [Array[String]] The array of track names to exclude from the compositions created by the composition hook
|
506
506
|
def audio_sources_excluded
|
507
507
|
@properties['audio_sources_excluded']
|
508
508
|
end
|
@@ -575,17 +575,17 @@ module Twilio
|
|
575
575
|
# composition hook in terms of regions. See {Specifying Video
|
576
576
|
# Layouts}[https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts]
|
577
577
|
# for more info.
|
578
|
-
# @param [String] audio_sources An array of track names from the same group
|
579
|
-
# to merge into the compositions created by the composition hook. Can include
|
580
|
-
# or more track names. A composition triggered by the composition hook
|
581
|
-
# all audio sources specified in `audio_sources` except those specified
|
582
|
-
# `audio_sources_excluded`. The track names in this parameter can include an
|
578
|
+
# @param [Array[String]] audio_sources An array of track names from the same group
|
579
|
+
# room to merge into the compositions created by the composition hook. Can include
|
580
|
+
# zero or more track names. A composition triggered by the composition hook
|
581
|
+
# includes all audio sources specified in `audio_sources` except those specified
|
582
|
+
# in `audio_sources_excluded`. The track names in this parameter can include an
|
583
583
|
# asterisk as a wild card character, which matches zero or more characters in a
|
584
584
|
# track name. For example, `student*` includes tracks named `student` as well as
|
585
585
|
# `studentTeam`.
|
586
|
-
# @param [String] audio_sources_excluded An array of track names to
|
587
|
-
# composition triggered by the composition hook includes all audio
|
588
|
-
# specified in `audio_sources` except for those specified in
|
586
|
+
# @param [Array[String]] audio_sources_excluded An array of track names to
|
587
|
+
# exclude. A composition triggered by the composition hook includes all audio
|
588
|
+
# sources specified in `audio_sources` except for those specified in
|
589
589
|
# `audio_sources_excluded`. The track names in this parameter can include an
|
590
590
|
# asterisk as a wild card character, which matches zero or more characters in a
|
591
591
|
# track name. For example, `student*` excludes `student` as well as `studentTeam`.
|
@@ -89,9 +89,9 @@ module Twilio
|
|
89
89
|
# encryption.
|
90
90
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
91
91
|
# should be stored. We only support DNS-compliant URLs like
|
92
|
-
# `https
|
93
|
-
#
|
94
|
-
#
|
92
|
+
# `https://documentation-example-twilio-bucket/compositions`, where `compositions`
|
93
|
+
# is the path in which you want the compositions to be stored. This URL accepts
|
94
|
+
# only URI-valid characters, as described in the <a
|
95
95
|
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
96
96
|
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
97
97
|
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
@@ -229,9 +229,9 @@ module Twilio
|
|
229
229
|
# encryption.
|
230
230
|
# @param [String] aws_s3_url The URL of the AWS S3 bucket where the compositions
|
231
231
|
# should be stored. We only support DNS-compliant URLs like
|
232
|
-
# `https
|
233
|
-
#
|
234
|
-
#
|
232
|
+
# `https://documentation-example-twilio-bucket/compositions`, where `compositions`
|
233
|
+
# is the path in which you want the compositions to be stored. This URL accepts
|
234
|
+
# only URI-valid characters, as described in the <a
|
235
235
|
# href='https://tools.ietf.org/html/rfc3986#section-2'>RFC 3986</a>.
|
236
236
|
# @param [Boolean] aws_storage_enabled Whether all compositions should be written
|
237
237
|
# to the `aws_s3_url`. When `false`, all compositions are stored in our cloud.
|
@@ -30,8 +30,8 @@ module Twilio
|
|
30
30
|
# @param [recording.Status] status Read only the recordings that have this status.
|
31
31
|
# Can be: `processing`, `completed`, or `deleted`.
|
32
32
|
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
33
|
-
# @param [String] grouping_sid Read only recordings with this
|
34
|
-
# which may include a `participant_sid` and/or a `room_sid`.
|
33
|
+
# @param [Array[String]] grouping_sid Read only recordings with this
|
34
|
+
# `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`.
|
35
35
|
# @param [Time] date_created_after Read only recordings that started on or after
|
36
36
|
# this {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] date-time with time
|
37
37
|
# zone.
|
@@ -67,8 +67,8 @@ module Twilio
|
|
67
67
|
# @param [recording.Status] status Read only the recordings that have this status.
|
68
68
|
# Can be: `processing`, `completed`, or `deleted`.
|
69
69
|
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
70
|
-
# @param [String] grouping_sid Read only recordings with this
|
71
|
-
# which may include a `participant_sid` and/or a `room_sid`.
|
70
|
+
# @param [Array[String]] grouping_sid Read only recordings with this
|
71
|
+
# `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`.
|
72
72
|
# @param [Time] date_created_after Read only recordings that started on or after
|
73
73
|
# this {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] date-time with time
|
74
74
|
# zone.
|
@@ -120,8 +120,8 @@ module Twilio
|
|
120
120
|
# @param [recording.Status] status Read only the recordings that have this status.
|
121
121
|
# Can be: `processing`, `completed`, or `deleted`.
|
122
122
|
# @param [String] source_sid Read only the recordings that have this `source_sid`.
|
123
|
-
# @param [String] grouping_sid Read only recordings with this
|
124
|
-
# which may include a `participant_sid` and/or a `room_sid`.
|
123
|
+
# @param [Array[String]] grouping_sid Read only recordings with this
|
124
|
+
# `grouping_sid`, which may include a `participant_sid` and/or a `room_sid`.
|
125
125
|
# @param [Time] date_created_after Read only recordings that started on or after
|
126
126
|
# this {ISO 8601}[https://en.wikipedia.org/wiki/ISO_8601] date-time with time
|
127
127
|
# zone.
|