twilio-ruby 5.42.0 → 5.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +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
|
@@ -112,8 +112,8 @@ module Twilio
|
|
|
112
112
|
# @param [webhook.Type] type The type
|
|
113
113
|
# @param [String] configuration_url The configuration.url
|
|
114
114
|
# @param [webhook.Method] configuration_method The configuration.method
|
|
115
|
-
# @param [String] configuration_filters The configuration.filters
|
|
116
|
-
# @param [String] configuration_triggers The configuration.triggers
|
|
115
|
+
# @param [Array[String]] configuration_filters The configuration.filters
|
|
116
|
+
# @param [Array[String]] configuration_triggers The configuration.triggers
|
|
117
117
|
# @param [String] configuration_flow_sid The configuration.flow_sid
|
|
118
118
|
# @param [String] configuration_retry_count The configuration.retry_count
|
|
119
119
|
# @return [WebhookInstance] Created WebhookInstance
|
|
@@ -214,8 +214,8 @@ module Twilio
|
|
|
214
214
|
# Update the WebhookInstance
|
|
215
215
|
# @param [String] configuration_url The configuration.url
|
|
216
216
|
# @param [webhook.Method] configuration_method The configuration.method
|
|
217
|
-
# @param [String] configuration_filters The configuration.filters
|
|
218
|
-
# @param [String] configuration_triggers The configuration.triggers
|
|
217
|
+
# @param [Array[String]] configuration_filters The configuration.filters
|
|
218
|
+
# @param [Array[String]] configuration_triggers The configuration.triggers
|
|
219
219
|
# @param [String] configuration_flow_sid The configuration.flow_sid
|
|
220
220
|
# @param [String] configuration_retry_count The configuration.retry_count
|
|
221
221
|
# @return [WebhookInstance] Updated WebhookInstance
|
|
@@ -377,8 +377,8 @@ module Twilio
|
|
|
377
377
|
# Update the WebhookInstance
|
|
378
378
|
# @param [String] configuration_url The configuration.url
|
|
379
379
|
# @param [webhook.Method] configuration_method The configuration.method
|
|
380
|
-
# @param [String] configuration_filters The configuration.filters
|
|
381
|
-
# @param [String] configuration_triggers The configuration.triggers
|
|
380
|
+
# @param [Array[String]] configuration_filters The configuration.filters
|
|
381
|
+
# @param [Array[String]] configuration_triggers The configuration.triggers
|
|
382
382
|
# @param [String] configuration_flow_sid The configuration.flow_sid
|
|
383
383
|
# @param [String] configuration_retry_count The configuration.retry_count
|
|
384
384
|
# @return [WebhookInstance] Updated WebhookInstance
|
|
@@ -29,7 +29,7 @@ module Twilio
|
|
|
29
29
|
# Create the RoleInstance
|
|
30
30
|
# @param [String] friendly_name The friendly_name
|
|
31
31
|
# @param [role.RoleType] type The type
|
|
32
|
-
# @param [String] permission The permission
|
|
32
|
+
# @param [Array[String]] permission The permission
|
|
33
33
|
# @return [RoleInstance] Created RoleInstance
|
|
34
34
|
def create(friendly_name: nil, type: nil, permission: nil)
|
|
35
35
|
data = Twilio::Values.of({
|
|
@@ -192,7 +192,7 @@ module Twilio
|
|
|
192
192
|
|
|
193
193
|
##
|
|
194
194
|
# Update the RoleInstance
|
|
195
|
-
# @param [String] permission The permission
|
|
195
|
+
# @param [Array[String]] permission The permission
|
|
196
196
|
# @return [RoleInstance] Updated RoleInstance
|
|
197
197
|
def update(permission: nil)
|
|
198
198
|
data = Twilio::Values.of({'Permission' => Twilio.serialize_list(permission) { |e| e }, })
|
|
@@ -288,7 +288,7 @@ module Twilio
|
|
|
288
288
|
end
|
|
289
289
|
|
|
290
290
|
##
|
|
291
|
-
# @return [String] The permissions
|
|
291
|
+
# @return [Array[String]] The permissions
|
|
292
292
|
def permissions
|
|
293
293
|
@properties['permissions']
|
|
294
294
|
end
|
|
@@ -327,7 +327,7 @@ module Twilio
|
|
|
327
327
|
|
|
328
328
|
##
|
|
329
329
|
# Update the RoleInstance
|
|
330
|
-
# @param [String] permission The permission
|
|
330
|
+
# @param [Array[String]] permission The permission
|
|
331
331
|
# @return [RoleInstance] Updated RoleInstance
|
|
332
332
|
def update(permission: nil)
|
|
333
333
|
context.update(permission: permission, )
|
|
@@ -31,7 +31,7 @@ module Twilio
|
|
|
31
31
|
# Lists UserBindingInstance records from the API as a list.
|
|
32
32
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
|
33
33
|
# memory before returning.
|
|
34
|
-
# @param [user_binding.BindingType] binding_type The binding_type
|
|
34
|
+
# @param [Array[user_binding.BindingType]] binding_type The binding_type
|
|
35
35
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
36
36
|
# guarantees to never return more than limit. Default is no limit
|
|
37
37
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -47,7 +47,7 @@ module Twilio
|
|
|
47
47
|
# Streams UserBindingInstance records from the API as an Enumerable.
|
|
48
48
|
# This operation lazily loads records as efficiently as possible until the limit
|
|
49
49
|
# is reached.
|
|
50
|
-
# @param [user_binding.BindingType] binding_type The binding_type
|
|
50
|
+
# @param [Array[user_binding.BindingType]] binding_type The binding_type
|
|
51
51
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
52
52
|
# guarantees to never return more than limit. Default is no limit.
|
|
53
53
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -80,7 +80,7 @@ module Twilio
|
|
|
80
80
|
##
|
|
81
81
|
# Retrieve a single page of UserBindingInstance records from the API.
|
|
82
82
|
# Request is executed immediately.
|
|
83
|
-
# @param [user_binding.BindingType] binding_type The binding_type
|
|
83
|
+
# @param [Array[user_binding.BindingType]] binding_type The binding_type
|
|
84
84
|
# @param [String] page_token PageToken provided by the API
|
|
85
85
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
86
86
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -315,7 +315,7 @@ module Twilio
|
|
|
315
315
|
end
|
|
316
316
|
|
|
317
317
|
##
|
|
318
|
-
# @return [String] The message_types
|
|
318
|
+
# @return [Array[String]] The message_types
|
|
319
319
|
def message_types
|
|
320
320
|
@properties['message_types']
|
|
321
321
|
end
|
|
@@ -80,16 +80,16 @@ module Twilio
|
|
|
80
80
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the phone number to
|
|
81
81
|
# fetch. This is used to specify the country when the phone number is provided in
|
|
82
82
|
# a national format.
|
|
83
|
-
# @param [String] type The type of information to return. Can be: `carrier`
|
|
84
|
-
# `caller-name`. The default is null. Carrier information costs $0.005 per
|
|
85
|
-
# number looked up. Caller Name information is currently available only in
|
|
86
|
-
# and costs $0.01 per phone number looked up. To retrieve both types on
|
|
83
|
+
# @param [Array[String]] type The type of information to return. Can be: `carrier`
|
|
84
|
+
# or `caller-name`. The default is null. Carrier information costs $0.005 per
|
|
85
|
+
# phone number looked up. Caller Name information is currently available only in
|
|
86
|
+
# the US and costs $0.01 per phone number looked up. To retrieve both types on
|
|
87
87
|
# information, specify this parameter twice; once with `carrier` and once with
|
|
88
88
|
# `caller-name` as the value.
|
|
89
|
-
# @param [String] add_ons The `unique_name` of an Add-on you would like to
|
|
90
|
-
# Can be the `unique_name` of an Add-on that is installed on your account.
|
|
91
|
-
# specify multiple instances of this parameter to invoke multiple Add-ons.
|
|
92
|
-
# more information about Add-ons, see the {Add-ons
|
|
89
|
+
# @param [Array[String]] add_ons The `unique_name` of an Add-on you would like to
|
|
90
|
+
# invoke. Can be the `unique_name` of an Add-on that is installed on your account.
|
|
91
|
+
# You can specify multiple instances of this parameter to invoke multiple Add-ons.
|
|
92
|
+
# For more information about Add-ons, see the {Add-ons
|
|
93
93
|
# documentation}[https://www.twilio.com/docs/add-ons].
|
|
94
94
|
# @param [Hash] add_ons_data Data specific to the add-on you would like to invoke.
|
|
95
95
|
# The content and format of this value depends on the add-on.
|
|
@@ -209,16 +209,16 @@ module Twilio
|
|
|
209
209
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] of the phone number to
|
|
210
210
|
# fetch. This is used to specify the country when the phone number is provided in
|
|
211
211
|
# a national format.
|
|
212
|
-
# @param [String] type The type of information to return. Can be: `carrier`
|
|
213
|
-
# `caller-name`. The default is null. Carrier information costs $0.005 per
|
|
214
|
-
# number looked up. Caller Name information is currently available only in
|
|
215
|
-
# and costs $0.01 per phone number looked up. To retrieve both types on
|
|
212
|
+
# @param [Array[String]] type The type of information to return. Can be: `carrier`
|
|
213
|
+
# or `caller-name`. The default is null. Carrier information costs $0.005 per
|
|
214
|
+
# phone number looked up. Caller Name information is currently available only in
|
|
215
|
+
# the US and costs $0.01 per phone number looked up. To retrieve both types on
|
|
216
216
|
# information, specify this parameter twice; once with `carrier` and once with
|
|
217
217
|
# `caller-name` as the value.
|
|
218
|
-
# @param [String] add_ons The `unique_name` of an Add-on you would like to
|
|
219
|
-
# Can be the `unique_name` of an Add-on that is installed on your account.
|
|
220
|
-
# specify multiple instances of this parameter to invoke multiple Add-ons.
|
|
221
|
-
# more information about Add-ons, see the {Add-ons
|
|
218
|
+
# @param [Array[String]] add_ons The `unique_name` of an Add-on you would like to
|
|
219
|
+
# invoke. Can be the `unique_name` of an Add-on that is installed on your account.
|
|
220
|
+
# You can specify multiple instances of this parameter to invoke multiple Add-ons.
|
|
221
|
+
# For more information about Add-ons, see the {Add-ons
|
|
222
222
|
# documentation}[https://www.twilio.com/docs/add-ons].
|
|
223
223
|
# @param [Hash] add_ons_data Data specific to the add-on you would like to invoke.
|
|
224
224
|
# The content and format of this value depends on the add-on.
|
|
@@ -296,7 +296,7 @@ module Twilio
|
|
|
296
296
|
end
|
|
297
297
|
|
|
298
298
|
##
|
|
299
|
-
# @return [String] An array of values that describe whether the number can receive calls or messages
|
|
299
|
+
# @return [Array[String]] An array of values that describe whether the number can receive calls or messages
|
|
300
300
|
def capabilities
|
|
301
301
|
@properties['capabilities']
|
|
302
302
|
end
|
|
@@ -302,7 +302,7 @@ module Twilio
|
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
##
|
|
305
|
-
# @return [String] An array of values that describe whether the number can receive calls or messages
|
|
305
|
+
# @return [Array[String]] An array of values that describe whether the number can receive calls or messages
|
|
306
306
|
def capabilities
|
|
307
307
|
@properties['capabilities']
|
|
308
308
|
end
|
|
@@ -297,7 +297,7 @@ module Twilio
|
|
|
297
297
|
end
|
|
298
298
|
|
|
299
299
|
##
|
|
300
|
-
# @return [String] An array of values that describe whether the number can receive calls or messages
|
|
300
|
+
# @return [Array[String]] An array of values that describe whether the number can receive calls or messages
|
|
301
301
|
def capabilities
|
|
302
302
|
@properties['capabilities']
|
|
303
303
|
end
|
|
@@ -41,8 +41,9 @@ module Twilio
|
|
|
41
41
|
# token. For FCM and GCM, the registration token. For SMS, a phone number in E.164
|
|
42
42
|
# format. For Facebook Messenger, the Messenger ID of the user or a phone number
|
|
43
43
|
# in E.164 format.
|
|
44
|
-
# @param [String] tag A tag that can be used to select the Bindings to
|
|
45
|
-
# Repeat this parameter to specify more than one tag, up to a total of 20
|
|
44
|
+
# @param [Array[String]] tag A tag that can be used to select the Bindings to
|
|
45
|
+
# notify. Repeat this parameter to specify more than one tag, up to a total of 20
|
|
46
|
+
# tags.
|
|
46
47
|
# @param [String] notification_protocol_version The protocol version to use to
|
|
47
48
|
# send the notification. This defaults to the value of
|
|
48
49
|
# `default_xxxx_notification_protocol_version` for the protocol in the
|
|
@@ -81,12 +82,12 @@ module Twilio
|
|
|
81
82
|
# date. Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
82
83
|
# @param [Date] end_date Only include usage that occurred on or before this date.
|
|
83
84
|
# Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
84
|
-
# @param [String] identity The
|
|
85
|
+
# @param [Array[String]] identity The
|
|
85
86
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
86
87
|
# of the resources to read.
|
|
87
|
-
# @param [String] tag Only list Bindings that have all of the specified
|
|
88
|
-
# following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
|
|
89
|
-
# `facebook-messenger`. Up to 5 tags are allowed.
|
|
88
|
+
# @param [Array[String]] tag Only list Bindings that have all of the specified
|
|
89
|
+
# Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
|
|
90
|
+
# `sms`, `facebook-messenger`. Up to 5 tags are allowed.
|
|
90
91
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
91
92
|
# guarantees to never return more than limit. Default is no limit
|
|
92
93
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -113,12 +114,12 @@ module Twilio
|
|
|
113
114
|
# date. Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
114
115
|
# @param [Date] end_date Only include usage that occurred on or before this date.
|
|
115
116
|
# Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
116
|
-
# @param [String] identity The
|
|
117
|
+
# @param [Array[String]] identity The
|
|
117
118
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
118
119
|
# of the resources to read.
|
|
119
|
-
# @param [String] tag Only list Bindings that have all of the specified
|
|
120
|
-
# following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
|
|
121
|
-
# `facebook-messenger`. Up to 5 tags are allowed.
|
|
120
|
+
# @param [Array[String]] tag Only list Bindings that have all of the specified
|
|
121
|
+
# Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
|
|
122
|
+
# `sms`, `facebook-messenger`. Up to 5 tags are allowed.
|
|
122
123
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
|
123
124
|
# guarantees to never return more than limit. Default is no limit.
|
|
124
125
|
# @param [Integer] page_size Number of records to fetch per request, when
|
|
@@ -161,12 +162,12 @@ module Twilio
|
|
|
161
162
|
# date. Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
162
163
|
# @param [Date] end_date Only include usage that occurred on or before this date.
|
|
163
164
|
# Specify the date in GMT and format as `YYYY-MM-DD`.
|
|
164
|
-
# @param [String] identity The
|
|
165
|
+
# @param [Array[String]] identity The
|
|
165
166
|
# {User}[https://www.twilio.com/docs/chat/rest/user-resource]'s `identity` value
|
|
166
167
|
# of the resources to read.
|
|
167
|
-
# @param [String] tag Only list Bindings that have all of the specified
|
|
168
|
-
# following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
|
|
169
|
-
# `facebook-messenger`. Up to 5 tags are allowed.
|
|
168
|
+
# @param [Array[String]] tag Only list Bindings that have all of the specified
|
|
169
|
+
# Tags. The following implicit tags are available: `all`, `apn`, `fcm`, `gcm`,
|
|
170
|
+
# `sms`, `facebook-messenger`. Up to 5 tags are allowed.
|
|
170
171
|
# @param [String] page_token PageToken provided by the API
|
|
171
172
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
|
172
173
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
|
@@ -406,7 +407,7 @@ module Twilio
|
|
|
406
407
|
end
|
|
407
408
|
|
|
408
409
|
##
|
|
409
|
-
# @return [String] The list of tags associated with this Binding
|
|
410
|
+
# @return [Array[String]] The list of tags associated with this Binding
|
|
410
411
|
def tags
|
|
411
412
|
@properties['tags']
|
|
412
413
|
end
|
|
@@ -107,24 +107,24 @@ module Twilio
|
|
|
107
107
|
# FCM also {reserves certain
|
|
108
108
|
# keys}[https://firebase.google.com/docs/cloud-messaging/http-server-ref], which
|
|
109
109
|
# cannot be used in that channel.
|
|
110
|
-
# @param [String] segment The Segment resource is deprecated. Use the `tag`
|
|
110
|
+
# @param [Array[String]] segment The Segment resource is deprecated. Use the `tag`
|
|
111
111
|
# parameter, instead.
|
|
112
112
|
# @param [Hash] alexa Deprecated.
|
|
113
|
-
# @param [String] to_binding The destination address specified as a JSON
|
|
114
|
-
# Multiple `to_binding` parameters can be included but the total size of
|
|
115
|
-
# request entity should not exceed 1MB. This is typically sufficient for
|
|
116
|
-
# phone numbers.
|
|
113
|
+
# @param [Array[String]] to_binding The destination address specified as a JSON
|
|
114
|
+
# string. Multiple `to_binding` parameters can be included but the total size of
|
|
115
|
+
# the request entity should not exceed 1MB. This is typically sufficient for
|
|
116
|
+
# 10,000 phone numbers.
|
|
117
117
|
# @param [String] delivery_callback_url URL to send webhooks.
|
|
118
|
-
# @param [String] identity The `identity` value that uniquely identifies
|
|
119
|
-
# resource's {User}[https://www.twilio.com/docs/chat/rest/user-resource]
|
|
120
|
-
# the {Service}[https://www.twilio.com/docs/notify/api/service-resource].
|
|
121
|
-
# will be attempted only to Bindings with an Identity in this list. No
|
|
122
|
-
# 20 items are allowed in this list.
|
|
123
|
-
# @param [String] tag A tag that selects the Bindings to notify. Repeat
|
|
124
|
-
# parameter to specify more than one tag, up to a total of 5 tags. The
|
|
125
|
-
# tag `all` is available to notify all Bindings in a Service instance.
|
|
126
|
-
# the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger`
|
|
127
|
-
# available to notify all Bindings in a specific channel.
|
|
118
|
+
# @param [Array[String]] identity The `identity` value that uniquely identifies
|
|
119
|
+
# the new resource's {User}[https://www.twilio.com/docs/chat/rest/user-resource]
|
|
120
|
+
# within the {Service}[https://www.twilio.com/docs/notify/api/service-resource].
|
|
121
|
+
# Delivery will be attempted only to Bindings with an Identity in this list. No
|
|
122
|
+
# more than 20 items are allowed in this list.
|
|
123
|
+
# @param [Array[String]] tag A tag that selects the Bindings to notify. Repeat
|
|
124
|
+
# this parameter to specify more than one tag, up to a total of 5 tags. The
|
|
125
|
+
# implicit tag `all` is available to notify all Bindings in a Service instance.
|
|
126
|
+
# Similarly, the implicit tags `apn`, `fcm`, `gcm`, `sms` and `facebook-messenger`
|
|
127
|
+
# are available to notify all Bindings in a specific channel.
|
|
128
128
|
# @return [NotificationInstance] Created NotificationInstance
|
|
129
129
|
def create(body: :unset, priority: :unset, ttl: :unset, title: :unset, sound: :unset, action: :unset, data: :unset, apn: :unset, gcm: :unset, sms: :unset, facebook_messenger: :unset, fcm: :unset, segment: :unset, alexa: :unset, to_binding: :unset, delivery_callback_url: :unset, identity: :unset, tag: :unset)
|
|
130
130
|
data = Twilio::Values.of({
|
|
@@ -255,19 +255,19 @@ module Twilio
|
|
|
255
255
|
end
|
|
256
256
|
|
|
257
257
|
##
|
|
258
|
-
# @return [String] The list of identity values of the Users to notify
|
|
258
|
+
# @return [Array[String]] The list of identity values of the Users to notify
|
|
259
259
|
def identities
|
|
260
260
|
@properties['identities']
|
|
261
261
|
end
|
|
262
262
|
|
|
263
263
|
##
|
|
264
|
-
# @return [String] The tags that select the Bindings to notify
|
|
264
|
+
# @return [Array[String]] The tags that select the Bindings to notify
|
|
265
265
|
def tags
|
|
266
266
|
@properties['tags']
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
##
|
|
270
|
-
# @return [String] The list of Segments to notify
|
|
270
|
+
# @return [Array[String]] The list of Segments to notify
|
|
271
271
|
def segments
|
|
272
272
|
@properties['segments']
|
|
273
273
|
end
|
|
@@ -78,7 +78,8 @@ module Twilio
|
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
##
|
|
81
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
81
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
82
|
+
# Conferences, and Participants
|
|
82
83
|
# @return [Twilio::REST::Preview::BulkExports::ExportInstance] if resource_type was passed.
|
|
83
84
|
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
|
84
85
|
def exports(resource_type=:unset)
|
|
@@ -86,7 +87,8 @@ module Twilio
|
|
|
86
87
|
end
|
|
87
88
|
|
|
88
89
|
##
|
|
89
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
90
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
91
|
+
# Conferences, and Participants
|
|
90
92
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationInstance] if resource_type was passed.
|
|
91
93
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
|
92
94
|
def export_configuration(resource_type=:unset)
|
|
@@ -180,12 +182,6 @@ module Twilio
|
|
|
180
182
|
self.wireless.sims(sid)
|
|
181
183
|
end
|
|
182
184
|
|
|
183
|
-
##
|
|
184
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedCallInstance]
|
|
185
|
-
def branded_calls
|
|
186
|
-
self.trusted_comms.branded_calls()
|
|
187
|
-
end
|
|
188
|
-
|
|
189
185
|
##
|
|
190
186
|
# @param [String] sid The unique SID identifier of the Branded Channel.
|
|
191
187
|
# @return [Twilio::REST::Preview::TrustedComms::BrandedChannelInstance] if sid was passed.
|
|
@@ -200,15 +196,6 @@ module Twilio
|
|
|
200
196
|
self.trusted_comms.brands_information()
|
|
201
197
|
end
|
|
202
198
|
|
|
203
|
-
##
|
|
204
|
-
# @param [String] sid A 34 character string that uniquely identifies this
|
|
205
|
-
# Business.
|
|
206
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessInstance] if sid was passed.
|
|
207
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessList]
|
|
208
|
-
def businesses(sid=:unset)
|
|
209
|
-
self.trusted_comms.businesses(sid)
|
|
210
|
-
end
|
|
211
|
-
|
|
212
199
|
##
|
|
213
200
|
# @return [Twilio::REST::Preview::TrustedComms::CpsInstance]
|
|
214
201
|
def cps
|
|
@@ -221,12 +208,6 @@ module Twilio
|
|
|
221
208
|
self.trusted_comms.current_calls()
|
|
222
209
|
end
|
|
223
210
|
|
|
224
|
-
##
|
|
225
|
-
# @return [Twilio::REST::Preview::TrustedComms::PhoneCallInstance]
|
|
226
|
-
def phone_calls
|
|
227
|
-
self.trusted_comms.phone_calls()
|
|
228
|
-
end
|
|
229
|
-
|
|
230
211
|
##
|
|
231
212
|
# Provide a user friendly representation
|
|
232
213
|
def to_s
|
|
@@ -20,7 +20,8 @@ module Twilio
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
##
|
|
23
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
23
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
24
|
+
# Conferences, and Participants
|
|
24
25
|
# @return [Twilio::REST::Preview::BulkExports::ExportContext] if resource_type was passed.
|
|
25
26
|
# @return [Twilio::REST::Preview::BulkExports::ExportList]
|
|
26
27
|
def exports(resource_type=:unset)
|
|
@@ -34,7 +35,8 @@ module Twilio
|
|
|
34
35
|
end
|
|
35
36
|
|
|
36
37
|
##
|
|
37
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
38
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
39
|
+
# Conferences, and Participants
|
|
38
40
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationContext] if resource_type was passed.
|
|
39
41
|
# @return [Twilio::REST::Preview::BulkExports::ExportConfigurationList]
|
|
40
42
|
def export_configuration(resource_type=:unset)
|
|
@@ -29,7 +29,8 @@ module Twilio
|
|
|
29
29
|
|
|
30
30
|
##
|
|
31
31
|
# Access the jobs
|
|
32
|
-
# @param [String] job_sid The
|
|
32
|
+
# @param [String] job_sid The unique string that that we created to identify the
|
|
33
|
+
# Bulk Export job
|
|
33
34
|
# @return [JobList]
|
|
34
35
|
# @return [JobContext] if job_sid was passed.
|
|
35
36
|
def jobs(job_sid=:unset)
|
|
@@ -86,7 +87,8 @@ module Twilio
|
|
|
86
87
|
##
|
|
87
88
|
# Initialize the ExportContext
|
|
88
89
|
# @param [Version] version Version that contains the resource
|
|
89
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
90
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
91
|
+
# Conferences, and Participants
|
|
90
92
|
# @return [ExportContext] ExportContext
|
|
91
93
|
def initialize(version, resource_type)
|
|
92
94
|
super(version)
|
|
@@ -161,7 +163,8 @@ module Twilio
|
|
|
161
163
|
# Initialize the ExportInstance
|
|
162
164
|
# @param [Version] version Version that contains the resource
|
|
163
165
|
# @param [Hash] payload payload that contains response from Twilio
|
|
164
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
166
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
167
|
+
# Conferences, and Participants
|
|
165
168
|
# @return [ExportInstance] ExportInstance
|
|
166
169
|
def initialize(version, payload, resource_type: nil)
|
|
167
170
|
super(version)
|
|
@@ -190,7 +193,7 @@ module Twilio
|
|
|
190
193
|
end
|
|
191
194
|
|
|
192
195
|
##
|
|
193
|
-
# @return [String] The type of communication – Messages, Calls
|
|
196
|
+
# @return [String] The type of communication – Messages, Calls, Conferences, and Participants
|
|
194
197
|
def resource_type
|
|
195
198
|
@properties['resource_type']
|
|
196
199
|
end
|