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
@@ -91,7 +91,7 @@ module Twilio
|
|
91
91
|
|
92
92
|
##
|
93
93
|
# Update the FlowTestUserInstance
|
94
|
-
# @param [String] test_users The test_users
|
94
|
+
# @param [Array[String]] test_users The test_users
|
95
95
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
96
96
|
def update(test_users: nil)
|
97
97
|
data = Twilio::Values.of({'TestUsers' => Twilio.serialize_list(test_users) { |e| e }, })
|
@@ -158,7 +158,7 @@ module Twilio
|
|
158
158
|
end
|
159
159
|
|
160
160
|
##
|
161
|
-
# @return [String] The test_users
|
161
|
+
# @return [Array[String]] The test_users
|
162
162
|
def test_users
|
163
163
|
@properties['test_users']
|
164
164
|
end
|
@@ -178,7 +178,7 @@ module Twilio
|
|
178
178
|
|
179
179
|
##
|
180
180
|
# Update the FlowTestUserInstance
|
181
|
-
# @param [String] test_users The test_users
|
181
|
+
# @param [Array[String]] test_users The test_users
|
182
182
|
# @return [FlowTestUserInstance] Updated FlowTestUserInstance
|
183
183
|
def update(test_users: nil)
|
184
184
|
context.update(test_users: test_users, )
|
@@ -30,8 +30,8 @@ module Twilio
|
|
30
30
|
# @param [String] unique_name An application-defined string that uniquely
|
31
31
|
# identifies the resource. It can be used in place of the resource's `sid` in the
|
32
32
|
# URL to address the resource.
|
33
|
-
# @param [String] networks List of Network SIDs that this Network Access
|
34
|
-
# will allow connections to.
|
33
|
+
# @param [Array[String]] networks List of Network SIDs that this Network Access
|
34
|
+
# Profile will allow connections to.
|
35
35
|
# @return [NetworkAccessProfileInstance] Created NetworkAccessProfileInstance
|
36
36
|
def create(unique_name: :unset, networks: :unset)
|
37
37
|
data = Twilio::Values.of({
|
@@ -34,7 +34,7 @@ module Twilio
|
|
34
34
|
# @param [String] unique_name An application-defined string that uniquely
|
35
35
|
# identifies the Sync Document
|
36
36
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
37
|
-
# object that the Sync Document stores. Can be up to
|
37
|
+
# object that the Sync Document stores. Can be up to 16 KiB in length.
|
38
38
|
# @param [String] ttl How long, in seconds, before the Sync Document expires and
|
39
39
|
# is deleted (the Sync Document's time-to-live). Can be an integer from 0 to
|
40
40
|
# 31,536,000 (1 year). The default value is `0`, which means the Sync Document
|
@@ -181,7 +181,8 @@ module Twilio
|
|
181
181
|
# @param [String] service_sid The SID of the {Sync
|
182
182
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Document
|
183
183
|
# resource to fetch.
|
184
|
-
# @param [String] sid The SID of the Document resource to fetch.
|
184
|
+
# @param [String] sid The SID of the Document resource to fetch. Can be the
|
185
|
+
# Document resource's `sid` or its `unique_name`.
|
185
186
|
# @return [DocumentContext] DocumentContext
|
186
187
|
def initialize(version, service_sid, sid)
|
187
188
|
super(version)
|
@@ -216,7 +217,7 @@ module Twilio
|
|
216
217
|
##
|
217
218
|
# Update the DocumentInstance
|
218
219
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
219
|
-
# object that the Sync Document stores. Can be up to
|
220
|
+
# object that the Sync Document stores. Can be up to 16 KiB in length.
|
220
221
|
# @param [String] ttl How long, in seconds, before the Sync Document expires and
|
221
222
|
# is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
222
223
|
# default value is `0`, which means the Document resource does not expire. The
|
@@ -280,7 +281,8 @@ module Twilio
|
|
280
281
|
# @param [String] service_sid The SID of the {Sync
|
281
282
|
# Service}[https://www.twilio.com/docs/sync/api/service] the resource is
|
282
283
|
# associated with.
|
283
|
-
# @param [String] sid The SID of the Document resource to fetch.
|
284
|
+
# @param [String] sid The SID of the Document resource to fetch. Can be the
|
285
|
+
# Document resource's `sid` or its `unique_name`.
|
284
286
|
# @return [DocumentInstance] DocumentInstance
|
285
287
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
286
288
|
super(version)
|
@@ -407,7 +409,7 @@ module Twilio
|
|
407
409
|
##
|
408
410
|
# Update the DocumentInstance
|
409
411
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
410
|
-
# object that the Sync Document stores. Can be up to
|
412
|
+
# object that the Sync Document stores. Can be up to 16 KiB in length.
|
411
413
|
# @param [String] ttl How long, in seconds, before the Sync Document expires and
|
412
414
|
# is deleted (time-to-live). Can be an integer from 0 to 31,536,000 (1 year). The
|
413
415
|
# default value is `0`, which means the Document resource does not expire. The
|
@@ -182,7 +182,8 @@ module Twilio
|
|
182
182
|
# @param [String] service_sid The SID of the {Sync
|
183
183
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Sync List
|
184
184
|
# resource to fetch.
|
185
|
-
# @param [String] sid The SID of the Sync List resource to fetch.
|
185
|
+
# @param [String] sid The SID of the Sync List resource to fetch. Can be the Sync
|
186
|
+
# List resource's `sid` or its `unique_name`.
|
186
187
|
# @return [SyncListContext] SyncListContext
|
187
188
|
def initialize(version, service_sid, sid)
|
188
189
|
super(version)
|
@@ -299,7 +300,8 @@ module Twilio
|
|
299
300
|
# @param [String] service_sid The SID of the {Sync
|
300
301
|
# Service}[https://www.twilio.com/docs/sync/api/service] the resource is
|
301
302
|
# associated with.
|
302
|
-
# @param [String] sid The SID of the Sync List resource to fetch.
|
303
|
+
# @param [String] sid The SID of the Sync List resource to fetch. Can be the Sync
|
304
|
+
# List resource's `sid` or its `unique_name`.
|
303
305
|
# @return [SyncListInstance] SyncListInstance
|
304
306
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
305
307
|
super(version)
|
@@ -34,7 +34,7 @@ module Twilio
|
|
34
34
|
##
|
35
35
|
# Create the SyncListItemInstance
|
36
36
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
37
|
-
# object that the List Item stores. Can be up to
|
37
|
+
# object that the List Item stores. Can be up to 16 KiB in length.
|
38
38
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
39
39
|
# this value is ignored.
|
40
40
|
# @param [String] item_ttl How long, in seconds, before the List Item expires
|
@@ -269,7 +269,7 @@ module Twilio
|
|
269
269
|
##
|
270
270
|
# Update the SyncListItemInstance
|
271
271
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
272
|
-
# object that the List Item stores. Can be up to
|
272
|
+
# object that the List Item stores. Can be up to 16 KiB in length.
|
273
273
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
274
274
|
# this value is ignored.
|
275
275
|
# @param [String] item_ttl How long, in seconds, before the List Item expires
|
@@ -460,7 +460,7 @@ module Twilio
|
|
460
460
|
##
|
461
461
|
# Update the SyncListItemInstance
|
462
462
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
463
|
-
# object that the List Item stores. Can be up to
|
463
|
+
# object that the List Item stores. Can be up to 16 KiB in length.
|
464
464
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
465
465
|
# this value is ignored.
|
466
466
|
# @param [String] item_ttl How long, in seconds, before the List Item expires
|
@@ -181,7 +181,8 @@ module Twilio
|
|
181
181
|
# @param [String] service_sid The SID of the {Sync
|
182
182
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Sync Map
|
183
183
|
# resource to fetch.
|
184
|
-
# @param [String] sid The SID of the Sync Map resource to fetch.
|
184
|
+
# @param [String] sid The SID of the Sync Map resource to fetch. Can be the Sync
|
185
|
+
# Map's `sid` or its `unique_name`.
|
185
186
|
# @return [SyncMapContext] SyncMapContext
|
186
187
|
def initialize(version, service_sid, sid)
|
187
188
|
super(version)
|
@@ -298,7 +299,8 @@ module Twilio
|
|
298
299
|
# @param [String] service_sid The SID of the {Sync
|
299
300
|
# Service}[https://www.twilio.com/docs/sync/api/service] the resource is
|
300
301
|
# associated with.
|
301
|
-
# @param [String] sid The SID of the Sync Map resource to fetch.
|
302
|
+
# @param [String] sid The SID of the Sync Map resource to fetch. Can be the Sync
|
303
|
+
# Map's `sid` or its `unique_name`.
|
302
304
|
# @return [SyncMapInstance] SyncMapInstance
|
303
305
|
def initialize(version, payload, service_sid: nil, sid: nil)
|
304
306
|
super(version)
|
@@ -36,7 +36,7 @@ module Twilio
|
|
36
36
|
# @param [String] key The unique, user-defined key for the Map Item. Can be up to
|
37
37
|
# 320 characters long.
|
38
38
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
39
|
-
# object that the Map Item stores. Can be up to
|
39
|
+
# object that the Map Item stores. Can be up to 16 KiB in length.
|
40
40
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
41
41
|
# this value is ignored.
|
42
42
|
# @param [String] item_ttl How long, in seconds, before the Map Item expires
|
@@ -239,7 +239,7 @@ module Twilio
|
|
239
239
|
# Service}[https://www.twilio.com/docs/sync/api/service] with the Sync Map Item
|
240
240
|
# resource to fetch.
|
241
241
|
# @param [String] map_sid The SID of the Sync Map with the Sync Map Item resource
|
242
|
-
# to fetch. Can be the Sync Map's `sid` or its `unique_name`.
|
242
|
+
# to fetch. Can be the Sync Map resource's `sid` or its `unique_name`.
|
243
243
|
# @param [String] key The `key` value of the Sync Map Item resource to fetch.
|
244
244
|
# @return [SyncMapItemContext] SyncMapItemContext
|
245
245
|
def initialize(version, service_sid, map_sid, key)
|
@@ -278,7 +278,7 @@ module Twilio
|
|
278
278
|
##
|
279
279
|
# Update the SyncMapItemInstance
|
280
280
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
281
|
-
# object that the Map Item stores. Can be up to
|
281
|
+
# object that the Map Item stores. Can be up to 16 KiB in length.
|
282
282
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
283
283
|
# this value is ignored.
|
284
284
|
# @param [String] item_ttl How long, in seconds, before the Map Item expires
|
@@ -466,7 +466,7 @@ module Twilio
|
|
466
466
|
##
|
467
467
|
# Update the SyncMapItemInstance
|
468
468
|
# @param [Hash] data A JSON string that represents an arbitrary, schema-less
|
469
|
-
# object that the Map Item stores. Can be up to
|
469
|
+
# object that the Map Item stores. Can be up to 16 KiB in length.
|
470
470
|
# @param [String] ttl An alias for `item_ttl`. If both parameters are provided,
|
471
471
|
# this value is ignored.
|
472
472
|
# @param [String] item_ttl How long, in seconds, before the Map Item expires
|
@@ -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
|
@@ -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,9 +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
|
-
# Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
36
|
-
# all Tasks in the Workspace with the
|
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`.
|
37
38
|
# @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
|
38
39
|
# Returns the Tasks controlled by the Workflow identified by this SID.
|
39
40
|
# @param [String] workflow_name The friendly name of the Workflow with the Tasks
|
@@ -85,9 +86,10 @@ module Twilio
|
|
85
86
|
# is reached.
|
86
87
|
# @param [String] priority The priority value of the Tasks to read. Returns the
|
87
88
|
# list of all Tasks in the Workspace with the specified priority.
|
88
|
-
# @param [String] assignment_status The `assignment_status` of the Tasks
|
89
|
-
# Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
90
|
-
# all Tasks in the Workspace with the
|
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`.
|
91
93
|
# @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
|
92
94
|
# Returns the Tasks controlled by the Workflow identified by this SID.
|
93
95
|
# @param [String] workflow_name The friendly name of the Workflow with the Tasks
|
@@ -155,9 +157,10 @@ module Twilio
|
|
155
157
|
# Request is executed immediately.
|
156
158
|
# @param [String] priority The priority value of the Tasks to read. Returns the
|
157
159
|
# list of all Tasks in the Workspace with the specified priority.
|
158
|
-
# @param [String] assignment_status The `assignment_status` of the Tasks
|
159
|
-
# Can be: `pending`, `reserved`, `assigned`, `canceled`,
|
160
|
-
# all Tasks in the Workspace with the
|
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`.
|
161
164
|
# @param [String] workflow_sid The SID of the Workflow with the Tasks to read.
|
162
165
|
# Returns the Tasks controlled by the Workflow identified by this SID.
|
163
166
|
# @param [String] workflow_name The friendly name of the Workflow with the Tasks
|
@@ -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
|
@@ -15,8 +15,8 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the TaskChannelList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] workspace_sid The SID of the Workspace that contains the
|
19
|
-
#
|
18
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the Task
|
19
|
+
# Channel.
|
20
20
|
# @return [TaskChannelList] TaskChannelList
|
21
21
|
def initialize(version, workspace_sid: nil)
|
22
22
|
super(version)
|
@@ -109,10 +109,10 @@ module Twilio
|
|
109
109
|
##
|
110
110
|
# Create the TaskChannelInstance
|
111
111
|
# @param [String] friendly_name A descriptive string that you create to describe
|
112
|
-
# the
|
112
|
+
# the Task Channel. It can be up to 64 characters long.
|
113
113
|
# @param [String] unique_name An application-defined string that uniquely
|
114
|
-
# identifies the
|
115
|
-
# @param [Boolean] channel_optimized_routing Whether the
|
114
|
+
# identifies the Task Channel, such as `voice` or `sms`.
|
115
|
+
# @param [Boolean] channel_optimized_routing Whether the Task Channel should
|
116
116
|
# prioritize Workers that have been idle. If `true`, Workers that have been idle
|
117
117
|
# the longest are prioritized.
|
118
118
|
# @return [TaskChannelInstance] Created TaskChannelInstance
|
@@ -168,9 +168,9 @@ module Twilio
|
|
168
168
|
##
|
169
169
|
# Initialize the TaskChannelContext
|
170
170
|
# @param [Version] version Version that contains the resource
|
171
|
-
# @param [String] workspace_sid The SID of the Workspace with the
|
171
|
+
# @param [String] workspace_sid The SID of the Workspace with the Task Channel to
|
172
172
|
# fetch.
|
173
|
-
# @param [String] sid The SID of the
|
173
|
+
# @param [String] sid The SID of the Task Channel resource to fetch.
|
174
174
|
# @return [TaskChannelContext] TaskChannelContext
|
175
175
|
def initialize(version, workspace_sid, sid)
|
176
176
|
super(version)
|
@@ -197,7 +197,7 @@ module Twilio
|
|
197
197
|
##
|
198
198
|
# Update the TaskChannelInstance
|
199
199
|
# @param [String] friendly_name A descriptive string that you create to describe
|
200
|
-
# the
|
200
|
+
# the Task Channel. It can be up to 64 characters long.
|
201
201
|
# @param [Boolean] channel_optimized_routing Whether the TaskChannel should
|
202
202
|
# prioritize Workers that have been idle. If `true`, Workers that have been idle
|
203
203
|
# the longest are prioritized.
|
@@ -245,9 +245,9 @@ module Twilio
|
|
245
245
|
# Initialize the TaskChannelInstance
|
246
246
|
# @param [Version] version Version that contains the resource
|
247
247
|
# @param [Hash] payload payload that contains response from Twilio
|
248
|
-
# @param [String] workspace_sid The SID of the Workspace that contains the
|
249
|
-
#
|
250
|
-
# @param [String] sid The SID of the
|
248
|
+
# @param [String] workspace_sid The SID of the Workspace that contains the Task
|
249
|
+
# Channel.
|
250
|
+
# @param [String] sid The SID of the Task Channel resource to fetch.
|
251
251
|
# @return [TaskChannelInstance] TaskChannelInstance
|
252
252
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
253
253
|
super(version)
|
@@ -313,25 +313,25 @@ module Twilio
|
|
313
313
|
end
|
314
314
|
|
315
315
|
##
|
316
|
-
# @return [String] An application-defined string that uniquely identifies the
|
316
|
+
# @return [String] An application-defined string that uniquely identifies the Task Channel
|
317
317
|
def unique_name
|
318
318
|
@properties['unique_name']
|
319
319
|
end
|
320
320
|
|
321
321
|
##
|
322
|
-
# @return [String] The SID of the Workspace that contains the
|
322
|
+
# @return [String] The SID of the Workspace that contains the Task Channel
|
323
323
|
def workspace_sid
|
324
324
|
@properties['workspace_sid']
|
325
325
|
end
|
326
326
|
|
327
327
|
##
|
328
|
-
# @return [Boolean] Whether the
|
328
|
+
# @return [Boolean] Whether the Task Channel will prioritize Workers that have been idle
|
329
329
|
def channel_optimized_routing
|
330
330
|
@properties['channel_optimized_routing']
|
331
331
|
end
|
332
332
|
|
333
333
|
##
|
334
|
-
# @return [String] The absolute URL of the
|
334
|
+
# @return [String] The absolute URL of the Task Channel resource
|
335
335
|
def url
|
336
336
|
@properties['url']
|
337
337
|
end
|
@@ -352,7 +352,7 @@ module Twilio
|
|
352
352
|
##
|
353
353
|
# Update the TaskChannelInstance
|
354
354
|
# @param [String] friendly_name A descriptive string that you create to describe
|
355
|
-
# the
|
355
|
+
# the Task Channel. It can be up to 64 characters long.
|
356
356
|
# @param [Boolean] channel_optimized_routing Whether the TaskChannel should
|
357
357
|
# prioritize Workers that have been idle. If `true`, Workers that have been idle
|
358
358
|
# the longest are prioritized.
|
@@ -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
|