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
|
@@ -17,7 +17,8 @@ module Twilio
|
|
|
17
17
|
##
|
|
18
18
|
# Initialize the DayList
|
|
19
19
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
20
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
21
|
+
# Conferences, and Participants
|
|
21
22
|
# @return [DayList] DayList
|
|
22
23
|
def initialize(version, resource_type: nil)
|
|
23
24
|
super(version)
|
|
@@ -151,7 +152,8 @@ module Twilio
|
|
|
151
152
|
##
|
|
152
153
|
# Initialize the DayContext
|
|
153
154
|
# @param [Version] version Version that contains the resource
|
|
154
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
155
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
156
|
+
# Conferences, and Participants
|
|
155
157
|
# @param [String] day The ISO 8601 format date of the resources in the file, for a
|
|
156
158
|
# UTC day
|
|
157
159
|
# @return [DayContext] DayContext
|
|
@@ -194,7 +196,8 @@ module Twilio
|
|
|
194
196
|
# Initialize the DayInstance
|
|
195
197
|
# @param [Version] version Version that contains the resource
|
|
196
198
|
# @param [Hash] payload payload that contains response from Twilio
|
|
197
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
199
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
200
|
+
# Conferences, and Participants
|
|
198
201
|
# @param [String] day The ISO 8601 format date of the resources in the file, for a
|
|
199
202
|
# UTC day
|
|
200
203
|
# @return [DayInstance] DayInstance
|
|
@@ -258,7 +261,7 @@ module Twilio
|
|
|
258
261
|
end
|
|
259
262
|
|
|
260
263
|
##
|
|
261
|
-
# @return [String] The type of communication – Messages, Calls
|
|
264
|
+
# @return [String] The type of communication – Messages, Calls, Conferences, and Participants
|
|
262
265
|
def resource_type
|
|
263
266
|
@properties['resource_type']
|
|
264
267
|
end
|
|
@@ -17,7 +17,8 @@ module Twilio
|
|
|
17
17
|
##
|
|
18
18
|
# Initialize the ExportCustomJobList
|
|
19
19
|
# @param [Version] version Version that contains the resource
|
|
20
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
20
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
21
|
+
# Conferences, and Participants
|
|
21
22
|
# @return [ExportCustomJobList] ExportCustomJobList
|
|
22
23
|
def initialize(version, resource_type: nil)
|
|
23
24
|
super(version)
|
|
@@ -181,7 +182,8 @@ module Twilio
|
|
|
181
182
|
# Initialize the ExportCustomJobInstance
|
|
182
183
|
# @param [Version] version Version that contains the resource
|
|
183
184
|
# @param [Hash] payload payload that contains response from Twilio
|
|
184
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
185
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
186
|
+
# Conferences, and Participants
|
|
185
187
|
# @return [ExportCustomJobInstance] ExportCustomJobInstance
|
|
186
188
|
def initialize(version, payload, resource_type: nil)
|
|
187
189
|
super(version)
|
|
@@ -207,7 +209,7 @@ module Twilio
|
|
|
207
209
|
end
|
|
208
210
|
|
|
209
211
|
##
|
|
210
|
-
# @return [String] The type of communication – Messages, Calls
|
|
212
|
+
# @return [String] The type of communication – Messages, Calls, Conferences, and Participants
|
|
211
213
|
def resource_type
|
|
212
214
|
@properties['resource_type']
|
|
213
215
|
end
|
|
@@ -69,7 +69,8 @@ module Twilio
|
|
|
69
69
|
##
|
|
70
70
|
# Initialize the JobContext
|
|
71
71
|
# @param [Version] version Version that contains the resource
|
|
72
|
-
# @param [String] job_sid The
|
|
72
|
+
# @param [String] job_sid The unique string that that we created to identify the
|
|
73
|
+
# Bulk Export job
|
|
73
74
|
# @return [JobContext] JobContext
|
|
74
75
|
def initialize(version, job_sid)
|
|
75
76
|
super(version)
|
|
@@ -117,7 +118,8 @@ module Twilio
|
|
|
117
118
|
# Initialize the JobInstance
|
|
118
119
|
# @param [Version] version Version that contains the resource
|
|
119
120
|
# @param [Hash] payload payload that contains response from Twilio
|
|
120
|
-
# @param [String] job_sid The
|
|
121
|
+
# @param [String] job_sid The unique string that that we created to identify the
|
|
122
|
+
# Bulk Export job
|
|
121
123
|
# @return [JobInstance] JobInstance
|
|
122
124
|
def initialize(version, payload, job_sid: nil)
|
|
123
125
|
super(version)
|
|
@@ -153,7 +155,7 @@ module Twilio
|
|
|
153
155
|
end
|
|
154
156
|
|
|
155
157
|
##
|
|
156
|
-
# @return [String] The type of communication – Messages, Calls
|
|
158
|
+
# @return [String] The type of communication – Messages, Calls, Conferences, and Participants
|
|
157
159
|
def resource_type
|
|
158
160
|
@properties['resource_type']
|
|
159
161
|
end
|
|
@@ -68,7 +68,8 @@ module Twilio
|
|
|
68
68
|
##
|
|
69
69
|
# Initialize the ExportConfigurationContext
|
|
70
70
|
# @param [Version] version Version that contains the resource
|
|
71
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
71
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
72
|
+
# Conferences, and Participants
|
|
72
73
|
# @return [ExportConfigurationContext] ExportConfigurationContext
|
|
73
74
|
def initialize(version, resource_type)
|
|
74
75
|
super(version)
|
|
@@ -131,7 +132,8 @@ module Twilio
|
|
|
131
132
|
# Initialize the ExportConfigurationInstance
|
|
132
133
|
# @param [Version] version Version that contains the resource
|
|
133
134
|
# @param [Hash] payload payload that contains response from Twilio
|
|
134
|
-
# @param [String] resource_type The type of communication – Messages, Calls
|
|
135
|
+
# @param [String] resource_type The type of communication – Messages, Calls,
|
|
136
|
+
# Conferences, and Participants
|
|
135
137
|
# @return [ExportConfigurationInstance] ExportConfigurationInstance
|
|
136
138
|
def initialize(version, payload, resource_type: nil)
|
|
137
139
|
super(version)
|
|
@@ -180,7 +182,7 @@ module Twilio
|
|
|
180
182
|
end
|
|
181
183
|
|
|
182
184
|
##
|
|
183
|
-
# @return [String] The type of communication – Messages, Calls
|
|
185
|
+
# @return [String] The type of communication – Messages, Calls, Conferences, and Participants
|
|
184
186
|
def resource_type
|
|
185
187
|
@properties['resource_type']
|
|
186
188
|
end
|
|
@@ -130,9 +130,9 @@ module Twilio
|
|
|
130
130
|
|
|
131
131
|
##
|
|
132
132
|
# Create the AuthorizationDocumentInstance
|
|
133
|
-
# @param [String] hosted_number_order_sids A list of HostedNumberOrder sids
|
|
134
|
-
# this AuthorizationDocument will authorize for hosting phone number
|
|
135
|
-
# on Twilio's platform.
|
|
133
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids
|
|
134
|
+
# that this AuthorizationDocument will authorize for hosting phone number
|
|
135
|
+
# capabilities on Twilio's platform.
|
|
136
136
|
# @param [String] address_sid A 34 character string that uniquely identifies the
|
|
137
137
|
# Address resource that is associated with this AuthorizationDocument.
|
|
138
138
|
# @param [String] email Email that this AuthorizationDocument will be sent to for
|
|
@@ -141,7 +141,7 @@ module Twilio
|
|
|
141
141
|
# Authorization Document for this phone number.
|
|
142
142
|
# @param [String] contact_phone_number The contact phone number of the person
|
|
143
143
|
# authorized to sign the Authorization Document.
|
|
144
|
-
# @param [String] cc_emails Email recipients who will be informed when an
|
|
144
|
+
# @param [Array[String]] cc_emails Email recipients who will be informed when an
|
|
145
145
|
# Authorization Document has been sent and signed.
|
|
146
146
|
# @return [AuthorizationDocumentInstance] Created AuthorizationDocumentInstance
|
|
147
147
|
def create(hosted_number_order_sids: nil, address_sid: nil, email: nil, contact_title: nil, contact_phone_number: nil, cc_emails: :unset)
|
|
@@ -228,14 +228,14 @@ module Twilio
|
|
|
228
228
|
|
|
229
229
|
##
|
|
230
230
|
# Update the AuthorizationDocumentInstance
|
|
231
|
-
# @param [String] hosted_number_order_sids A list of HostedNumberOrder sids
|
|
232
|
-
# this AuthorizationDocument will authorize for hosting phone number
|
|
233
|
-
# on Twilio's platform.
|
|
231
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids
|
|
232
|
+
# that this AuthorizationDocument will authorize for hosting phone number
|
|
233
|
+
# capabilities on Twilio's platform.
|
|
234
234
|
# @param [String] address_sid A 34 character string that uniquely identifies the
|
|
235
235
|
# Address resource that is associated with this AuthorizationDocument.
|
|
236
236
|
# @param [String] email Email that this AuthorizationDocument will be sent to for
|
|
237
237
|
# signing.
|
|
238
|
-
# @param [String] cc_emails Email recipients who will be informed when an
|
|
238
|
+
# @param [Array[String]] cc_emails Email recipients who will be informed when an
|
|
239
239
|
# Authorization Document has been sent and signed
|
|
240
240
|
# @param [authorization_document.Status] status Status of an instance resource. It
|
|
241
241
|
# can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5.
|
|
@@ -360,7 +360,7 @@ module Twilio
|
|
|
360
360
|
end
|
|
361
361
|
|
|
362
362
|
##
|
|
363
|
-
# @return [String] A list of emails.
|
|
363
|
+
# @return [Array[String]] A list of emails.
|
|
364
364
|
def cc_emails
|
|
365
365
|
@properties['cc_emails']
|
|
366
366
|
end
|
|
@@ -398,14 +398,14 @@ module Twilio
|
|
|
398
398
|
|
|
399
399
|
##
|
|
400
400
|
# Update the AuthorizationDocumentInstance
|
|
401
|
-
# @param [String] hosted_number_order_sids A list of HostedNumberOrder sids
|
|
402
|
-
# this AuthorizationDocument will authorize for hosting phone number
|
|
403
|
-
# on Twilio's platform.
|
|
401
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids
|
|
402
|
+
# that this AuthorizationDocument will authorize for hosting phone number
|
|
403
|
+
# capabilities on Twilio's platform.
|
|
404
404
|
# @param [String] address_sid A 34 character string that uniquely identifies the
|
|
405
405
|
# Address resource that is associated with this AuthorizationDocument.
|
|
406
406
|
# @param [String] email Email that this AuthorizationDocument will be sent to for
|
|
407
407
|
# signing.
|
|
408
|
-
# @param [String] cc_emails Email recipients who will be informed when an
|
|
408
|
+
# @param [Array[String]] cc_emails Email recipients who will be informed when an
|
|
409
409
|
# Authorization Document has been sent and signed
|
|
410
410
|
# @param [authorization_document.Status] status Status of an instance resource. It
|
|
411
411
|
# can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5.
|
|
@@ -343,7 +343,7 @@ module Twilio
|
|
|
343
343
|
end
|
|
344
344
|
|
|
345
345
|
##
|
|
346
|
-
# @return [String] A list of emails.
|
|
346
|
+
# @return [Array[String]] A list of emails.
|
|
347
347
|
def cc_emails
|
|
348
348
|
@properties['cc_emails']
|
|
349
349
|
end
|
|
@@ -379,7 +379,7 @@ module Twilio
|
|
|
379
379
|
end
|
|
380
380
|
|
|
381
381
|
##
|
|
382
|
-
# @return [String] List of IDs for ownership verification calls.
|
|
382
|
+
# @return [Array[String]] List of IDs for ownership verification calls.
|
|
383
383
|
def verification_call_sids
|
|
384
384
|
@properties['verification_call_sids']
|
|
385
385
|
end
|
|
@@ -175,8 +175,8 @@ module Twilio
|
|
|
175
175
|
# @param [String] unique_name Optional. Provides a unique and addressable name to
|
|
176
176
|
# be assigned to this HostedNumberOrder, assigned by the developer, to be
|
|
177
177
|
# optionally used in addition to SID.
|
|
178
|
-
# @param [String] cc_emails Optional. A list of emails that the LOA
|
|
179
|
-
# this HostedNumberOrder will be carbon copied to.
|
|
178
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that the LOA
|
|
179
|
+
# document for this HostedNumberOrder will be carbon copied to.
|
|
180
180
|
# @param [String] sms_url The URL that Twilio should request when somebody sends
|
|
181
181
|
# an SMS to the phone number. This will be copied onto the IncomingPhoneNumber
|
|
182
182
|
# resource.
|
|
@@ -315,8 +315,8 @@ module Twilio
|
|
|
315
315
|
# used in addition to SID.
|
|
316
316
|
# @param [String] email Email of the owner of this phone number that is being
|
|
317
317
|
# hosted.
|
|
318
|
-
# @param [String] cc_emails Optional. A list of emails that LOA document
|
|
319
|
-
# HostedNumberOrder will be carbon copied to.
|
|
318
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that LOA document
|
|
319
|
+
# for this HostedNumberOrder will be carbon copied to.
|
|
320
320
|
# @param [hosted_number_order.Status] status User can only post to
|
|
321
321
|
# `pending-verification` status to transition the HostedNumberOrder to initiate a
|
|
322
322
|
# verification call or verification of ownership with a copy of a phone bill.
|
|
@@ -513,7 +513,7 @@ module Twilio
|
|
|
513
513
|
end
|
|
514
514
|
|
|
515
515
|
##
|
|
516
|
-
# @return [String] A list of emails.
|
|
516
|
+
# @return [Array[String]] A list of emails.
|
|
517
517
|
def cc_emails
|
|
518
518
|
@properties['cc_emails']
|
|
519
519
|
end
|
|
@@ -555,7 +555,7 @@ module Twilio
|
|
|
555
555
|
end
|
|
556
556
|
|
|
557
557
|
##
|
|
558
|
-
# @return [String] List of IDs for ownership verification calls.
|
|
558
|
+
# @return [Array[String]] List of IDs for ownership verification calls.
|
|
559
559
|
def verification_call_sids
|
|
560
560
|
@properties['verification_call_sids']
|
|
561
561
|
end
|
|
@@ -583,8 +583,8 @@ module Twilio
|
|
|
583
583
|
# used in addition to SID.
|
|
584
584
|
# @param [String] email Email of the owner of this phone number that is being
|
|
585
585
|
# hosted.
|
|
586
|
-
# @param [String] cc_emails Optional. A list of emails that LOA document
|
|
587
|
-
# HostedNumberOrder will be carbon copied to.
|
|
586
|
+
# @param [Array[String]] cc_emails Optional. A list of emails that LOA document
|
|
587
|
+
# for this HostedNumberOrder will be carbon copied to.
|
|
588
588
|
# @param [hosted_number_order.Status] status User can only post to
|
|
589
589
|
# `pending-verification` status to transition the HostedNumberOrder to initiate a
|
|
590
590
|
# verification call or verification of ownership with a copy of a phone bill.
|
|
@@ -15,19 +15,10 @@ module Twilio
|
|
|
15
15
|
def initialize(domain)
|
|
16
16
|
super
|
|
17
17
|
@version = 'TrustedComms'
|
|
18
|
-
@branded_calls = nil
|
|
19
18
|
@branded_channels = nil
|
|
20
19
|
@brands_information = nil
|
|
21
|
-
@businesses = nil
|
|
22
20
|
@cps = nil
|
|
23
21
|
@current_calls = nil
|
|
24
|
-
@phone_calls = nil
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
##
|
|
28
|
-
# @return [Twilio::REST::Preview::TrustedComms::BrandedCallContext]
|
|
29
|
-
def branded_calls
|
|
30
|
-
@branded_calls ||= BrandedCallList.new self
|
|
31
22
|
end
|
|
32
23
|
|
|
33
24
|
##
|
|
@@ -50,21 +41,6 @@ module Twilio
|
|
|
50
41
|
@brands_information ||= BrandsInformationContext.new self
|
|
51
42
|
end
|
|
52
43
|
|
|
53
|
-
##
|
|
54
|
-
# @param [String] sid A 34 character string that uniquely identifies this
|
|
55
|
-
# Business.
|
|
56
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessContext] if sid was passed.
|
|
57
|
-
# @return [Twilio::REST::Preview::TrustedComms::BusinessList]
|
|
58
|
-
def businesses(sid=:unset)
|
|
59
|
-
if sid.nil?
|
|
60
|
-
raise ArgumentError, 'sid cannot be nil'
|
|
61
|
-
elsif sid == :unset
|
|
62
|
-
@businesses ||= BusinessList.new self
|
|
63
|
-
else
|
|
64
|
-
BusinessContext.new(self, sid)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
44
|
##
|
|
69
45
|
# @return [Twilio::REST::Preview::TrustedComms::CpsContext]
|
|
70
46
|
def cps
|
|
@@ -77,12 +53,6 @@ module Twilio
|
|
|
77
53
|
@current_calls ||= CurrentCallContext.new self
|
|
78
54
|
end
|
|
79
55
|
|
|
80
|
-
##
|
|
81
|
-
# @return [Twilio::REST::Preview::TrustedComms::PhoneCallContext]
|
|
82
|
-
def phone_calls
|
|
83
|
-
@phone_calls ||= PhoneCallList.new self
|
|
84
|
-
end
|
|
85
|
-
|
|
86
56
|
##
|
|
87
57
|
# Provide a user friendly representation
|
|
88
58
|
def to_s
|
|
@@ -116,7 +116,7 @@ module Twilio
|
|
|
116
116
|
# @param [Boolean] voice_enabled The voice_enabled
|
|
117
117
|
# @param [Boolean] commands_enabled The commands_enabled
|
|
118
118
|
# @param [Boolean] national_roaming_enabled The national_roaming_enabled
|
|
119
|
-
# @param [String] international_roaming The international_roaming
|
|
119
|
+
# @param [Array[String]] international_roaming The international_roaming
|
|
120
120
|
# @return [RatePlanInstance] Created RatePlanInstance
|
|
121
121
|
def create(unique_name: :unset, friendly_name: :unset, data_enabled: :unset, data_limit: :unset, data_metering: :unset, messaging_enabled: :unset, voice_enabled: :unset, commands_enabled: :unset, national_roaming_enabled: :unset, international_roaming: :unset)
|
|
122
122
|
data = Twilio::Values.of({
|
|
@@ -342,7 +342,7 @@ module Twilio
|
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
##
|
|
345
|
-
# @return [String] The international_roaming
|
|
345
|
+
# @return [Array[String]] The international_roaming
|
|
346
346
|
def international_roaming
|
|
347
347
|
@properties['international_roaming']
|
|
348
348
|
end
|
|
@@ -231,13 +231,13 @@ module Twilio
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
##
|
|
234
|
-
# @return [String] The list of OutboundSMSPrice records
|
|
234
|
+
# @return [Array[String]] The list of OutboundSMSPrice records
|
|
235
235
|
def outbound_sms_prices
|
|
236
236
|
@properties['outbound_sms_prices']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
##
|
|
240
|
-
# @return [String] The list of InboundPrice records
|
|
240
|
+
# @return [Array[String]] The list of InboundPrice records
|
|
241
241
|
def inbound_sms_prices
|
|
242
242
|
@properties['inbound_sms_prices']
|
|
243
243
|
end
|
|
@@ -231,13 +231,13 @@ module Twilio
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
##
|
|
234
|
-
# @return [String] The list of OutboundPrefixPrice records
|
|
234
|
+
# @return [Array[String]] The list of OutboundPrefixPrice records
|
|
235
235
|
def outbound_prefix_prices
|
|
236
236
|
@properties['outbound_prefix_prices']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
##
|
|
240
|
-
# @return [String] The list of InboundCallPrice records
|
|
240
|
+
# @return [Array[String]] The list of InboundCallPrice records
|
|
241
241
|
def inbound_call_prices
|
|
242
242
|
@properties['inbound_call_prices']
|
|
243
243
|
end
|
|
@@ -231,13 +231,13 @@ module Twilio
|
|
|
231
231
|
end
|
|
232
232
|
|
|
233
233
|
##
|
|
234
|
-
# @return [String] The list of OutboundPrefixPriceWithOrigin records
|
|
234
|
+
# @return [Array[String]] The list of OutboundPrefixPriceWithOrigin records
|
|
235
235
|
def outbound_prefix_prices
|
|
236
236
|
@properties['outbound_prefix_prices']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
##
|
|
240
|
-
# @return [String] The list of InboundCallPrice records
|
|
240
|
+
# @return [Array[String]] The list of InboundCallPrice records
|
|
241
241
|
def inbound_call_prices
|
|
242
242
|
@properties['inbound_call_prices']
|
|
243
243
|
end
|
|
@@ -172,7 +172,7 @@ module Twilio
|
|
|
172
172
|
end
|
|
173
173
|
|
|
174
174
|
##
|
|
175
|
-
# @return [String] The list of OutboundCallPriceWithOrigin records
|
|
175
|
+
# @return [Array[String]] The list of OutboundCallPriceWithOrigin records
|
|
176
176
|
def outbound_call_prices
|
|
177
177
|
@properties['outbound_call_prices']
|
|
178
178
|
end
|
|
@@ -125,7 +125,7 @@ module Twilio
|
|
|
125
125
|
# @param [session.Status] status The initial status of the Session. Can be:
|
|
126
126
|
# `open`, `in-progress`, `closed`, `failed`, or `unknown`. The default is `open`
|
|
127
127
|
# on create.
|
|
128
|
-
# @param [Hash] participants The Participant objects to include in the new
|
|
128
|
+
# @param [Array[Hash]] participants The Participant objects to include in the new
|
|
129
129
|
# session.
|
|
130
130
|
# @param [Boolean] fail_on_participant_conflict [Experimental] For accounts with
|
|
131
131
|
# the ProxyAllowParticipantConflict account flag, setting to true enables
|
|
@@ -37,7 +37,7 @@ module Twilio
|
|
|
37
37
|
##
|
|
38
38
|
# Create the MessageInteractionInstance
|
|
39
39
|
# @param [String] body The message to send to the participant
|
|
40
|
-
# @param [String] media_url Reserved. Not currently supported.
|
|
40
|
+
# @param [Array[String]] media_url Reserved. Not currently supported.
|
|
41
41
|
# @return [MessageInteractionInstance] Created MessageInteractionInstance
|
|
42
42
|
def create(body: :unset, media_url: :unset)
|
|
43
43
|
data = Twilio::Values.of({'Body' => body, 'MediaUrl' => Twilio.serialize_list(media_url) { |e| e }, })
|
|
@@ -11,7 +11,7 @@ module Twilio
|
|
|
11
11
|
class Serverless < Domain
|
|
12
12
|
class V1 < Version
|
|
13
13
|
##
|
|
14
|
-
# PLEASE NOTE that this class contains
|
|
14
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
15
15
|
class ServiceList < ListResource
|
|
16
16
|
##
|
|
17
17
|
# Initialize the ServiceList
|
|
@@ -114,7 +114,7 @@ module Twilio
|
|
|
114
114
|
# @param [String] friendly_name A descriptive string that you create to describe
|
|
115
115
|
# the Service resource. It can be a maximum of 255 characters.
|
|
116
116
|
# @param [Boolean] include_credentials Whether to inject Account credentials into
|
|
117
|
-
# a function invocation context. The default value is `
|
|
117
|
+
# a function invocation context. The default value is `true`.
|
|
118
118
|
# @param [Boolean] ui_editable Whether the Service's properties and subresources
|
|
119
119
|
# can be edited via the UI. The default value is `false`.
|
|
120
120
|
# @return [ServiceInstance] Created ServiceInstance
|
|
@@ -139,7 +139,7 @@ module Twilio
|
|
|
139
139
|
end
|
|
140
140
|
|
|
141
141
|
##
|
|
142
|
-
# PLEASE NOTE that this class contains
|
|
142
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
143
143
|
class ServicePage < Page
|
|
144
144
|
##
|
|
145
145
|
# Initialize the ServicePage
|
|
@@ -170,7 +170,7 @@ module Twilio
|
|
|
170
170
|
end
|
|
171
171
|
|
|
172
172
|
##
|
|
173
|
-
# PLEASE NOTE that this class contains
|
|
173
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
174
174
|
class ServiceContext < InstanceContext
|
|
175
175
|
##
|
|
176
176
|
# Initialize the ServiceContext
|
|
@@ -316,7 +316,7 @@ module Twilio
|
|
|
316
316
|
end
|
|
317
317
|
|
|
318
318
|
##
|
|
319
|
-
# PLEASE NOTE that this class contains
|
|
319
|
+
# PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
|
320
320
|
class ServiceInstance < InstanceResource
|
|
321
321
|
##
|
|
322
322
|
# Initialize the ServiceInstance
|