twilio-ruby 5.27.0 → 5.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.dockerignore +1 -0
- data/CHANGES.md +13 -0
- data/CONTRIBUTING.md +2 -0
- data/Dockerfile +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +18 -18
- data/lib/twilio-ruby/rest/api/v2010/account/message/media.rb +9 -9
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +9 -9
- data/lib/twilio-ruby/rest/autopilot/v1/assistant/query.rb +5 -5
- data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +10 -1
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +1 -1
- data/lib/twilio-ruby/rest/fax/v1/fax.rb +12 -12
- data/lib/twilio-ruby/rest/flex_api.rb +6 -3
- data/lib/twilio-ruby/rest/flex_api/v1.rb +3 -3
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +23 -23
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +39 -37
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +102 -96
- data/lib/twilio-ruby/rest/flex_api/v1/web_channel.rb +20 -20
- data/lib/twilio-ruby/rest/messaging.rb +3 -2
- data/lib/twilio-ruby/rest/messaging/v1.rb +2 -3
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +124 -91
- data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +22 -18
- data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +22 -16
- data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +18 -20
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +48 -44
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +46 -48
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +55 -62
- data/lib/twilio-ruby/rest/messaging/v1/session/webhook.rb +61 -65
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +30 -36
- data/lib/twilio-ruby/rest/monitor.rb +4 -2
- data/lib/twilio-ruby/rest/monitor/v1.rb +2 -2
- data/lib/twilio-ruby/rest/monitor/v1/alert.rb +45 -57
- data/lib/twilio-ruby/rest/monitor/v1/event.rb +47 -50
- data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +8 -8
- data/lib/twilio-ruby/rest/notify/v1/service/notification.rb +3 -3
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb +6 -6
- data/lib/twilio-ruby/rest/preview/trusted_comms/device.rb +1 -1
- data/lib/twilio-ruby/rest/preview/trusted_comms/phone_call.rb +55 -55
- data/lib/twilio-ruby/rest/pricing/v2/voice.rb +2 -2
- data/lib/twilio-ruby/rest/pricing/v2/voice/country.rb +4 -4
- data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +1 -1
- data/lib/twilio-ruby/rest/serverless.rb +2 -1
- data/lib/twilio-ruby/rest/serverless/v1.rb +1 -2
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +27 -28
- data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +25 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +26 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +21 -24
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +31 -31
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +35 -35
- data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +22 -22
- data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +22 -22
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +12 -12
- data/lib/twilio-ruby/rest/sync/v1/service/document.rb +7 -4
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_list/sync_list_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map.rb +6 -3
- data/lib/twilio-ruby/rest/sync/v1/service/sync_map/sync_map_item.rb +15 -9
- data/lib/twilio-ruby/rest/sync/v1/service/sync_stream.rb +9 -6
- data/lib/twilio-ruby/rest/taskrouter.rb +2 -1
- data/lib/twilio-ruby/rest/taskrouter/v1.rb +1 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +102 -95
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +52 -44
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/event.rb +90 -81
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +152 -136
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +35 -29
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +96 -89
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +61 -61
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +27 -21
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_statistics.rb +46 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queues_statistics.rb +57 -64
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +98 -79
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_channel.rb +41 -39
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/worker_statistics.rb +39 -33
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_cumulative_statistics.rb +32 -31
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_real_time_statistics.rb +16 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/workers_statistics.rb +42 -42
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow.rb +75 -72
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +59 -51
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_real_time_statistics.rb +24 -18
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_statistics.rb +54 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +48 -46
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_real_time_statistics.rb +17 -17
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_statistics.rb +44 -42
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +24 -18
- data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +3 -3
- data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +1 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +1 -2
- data/lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb +12 -12
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb +6 -6
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -1
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +2 -1
- data/lib/twilio-ruby/rest/video.rb +8 -8
- data/lib/twilio-ruby/rest/video/v1.rb +4 -7
- data/lib/twilio-ruby/rest/video/v1/composition.rb +89 -98
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +224 -195
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +34 -34
- data/lib/twilio-ruby/rest/video/v1/recording.rb +53 -55
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +32 -32
- data/lib/twilio-ruby/rest/video/v1/room.rb +71 -61
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +45 -33
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +56 -57
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +25 -22
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribe_rule.rb +10 -10
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb +24 -23
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb +1 -1
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +5 -5
- data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/conversations/v1/conversation/message_spec.rb +58 -0
- metadata +4 -4
|
@@ -15,7 +15,7 @@ module Twilio
|
|
|
15
15
|
##
|
|
16
16
|
# Initialize the WorkspaceStatisticsList
|
|
17
17
|
# @param [Version] version Version that contains the resource
|
|
18
|
-
# @param [String] workspace_sid The
|
|
18
|
+
# @param [String] workspace_sid The SID of the Workspace.
|
|
19
19
|
# @return [WorkspaceStatisticsList] WorkspaceStatisticsList
|
|
20
20
|
def initialize(version, workspace_sid: nil)
|
|
21
21
|
super(version)
|
|
@@ -64,7 +64,7 @@ module Twilio
|
|
|
64
64
|
##
|
|
65
65
|
# Initialize the WorkspaceStatisticsContext
|
|
66
66
|
# @param [Version] version Version that contains the resource
|
|
67
|
-
# @param [String] workspace_sid The
|
|
67
|
+
# @param [String] workspace_sid The SID of the Workspace to fetch.
|
|
68
68
|
# @return [WorkspaceStatisticsContext] WorkspaceStatisticsContext
|
|
69
69
|
def initialize(version, workspace_sid)
|
|
70
70
|
super(version)
|
|
@@ -76,23 +76,24 @@ module Twilio
|
|
|
76
76
|
|
|
77
77
|
##
|
|
78
78
|
# Fetch a WorkspaceStatisticsInstance
|
|
79
|
-
# @param [String] minutes
|
|
80
|
-
# past. This is helpful for statistics for the
|
|
81
|
-
# hours), and 480 minutes (8 hours) to see trends.
|
|
82
|
-
# @param [Time] start_date
|
|
83
|
-
#
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
#
|
|
87
|
-
#
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
#
|
|
93
|
-
#
|
|
94
|
-
#
|
|
95
|
-
#
|
|
79
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
80
|
+
# past. The default 15 minutes. This is helpful for displaying statistics for the
|
|
81
|
+
# last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
|
|
82
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
83
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
84
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
85
|
+
# earlier, specified in GMT as an [ISO
|
|
86
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
87
|
+
# @param [String] task_channel Only calculate statistics on this TaskChannel. Can
|
|
88
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
89
|
+
# `default`.
|
|
90
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
91
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
92
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
93
|
+
# above and below the specified thresholds in seconds are computed. For example,
|
|
94
|
+
# `5,30` would show splits of Tasks that were canceled or accepted before and
|
|
95
|
+
# after 5 seconds and before and after 30 seconds. This can be used to show short
|
|
96
|
+
# abandoned Tasks or Tasks that failed to meet an SLA.
|
|
96
97
|
# @return [WorkspaceStatisticsInstance] Fetched WorkspaceStatisticsInstance
|
|
97
98
|
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
98
99
|
params = Twilio::Values.of({
|
|
@@ -132,7 +133,7 @@ module Twilio
|
|
|
132
133
|
# Initialize the WorkspaceStatisticsInstance
|
|
133
134
|
# @param [Version] version Version that contains the resource
|
|
134
135
|
# @param [Hash] payload payload that contains response from Twilio
|
|
135
|
-
# @param [String] workspace_sid The
|
|
136
|
+
# @param [String] workspace_sid The SID of the Workspace.
|
|
136
137
|
# @return [WorkspaceStatisticsInstance] WorkspaceStatisticsInstance
|
|
137
138
|
def initialize(version, payload, workspace_sid: nil)
|
|
138
139
|
super(version)
|
|
@@ -163,54 +164,55 @@ module Twilio
|
|
|
163
164
|
end
|
|
164
165
|
|
|
165
166
|
##
|
|
166
|
-
# @return [Hash]
|
|
167
|
+
# @return [Hash] n object that contains the real-time statistics for the Workspace
|
|
167
168
|
def realtime
|
|
168
169
|
@properties['realtime']
|
|
169
170
|
end
|
|
170
171
|
|
|
171
172
|
##
|
|
172
|
-
# @return [Hash]
|
|
173
|
+
# @return [Hash] An object that contains the cumulative statistics for the Workspace
|
|
173
174
|
def cumulative
|
|
174
175
|
@properties['cumulative']
|
|
175
176
|
end
|
|
176
177
|
|
|
177
178
|
##
|
|
178
|
-
# @return [String] The
|
|
179
|
+
# @return [String] The SID of the Account that created the resource
|
|
179
180
|
def account_sid
|
|
180
181
|
@properties['account_sid']
|
|
181
182
|
end
|
|
182
183
|
|
|
183
184
|
##
|
|
184
|
-
# @return [String] The
|
|
185
|
+
# @return [String] The SID of the Workspace
|
|
185
186
|
def workspace_sid
|
|
186
187
|
@properties['workspace_sid']
|
|
187
188
|
end
|
|
188
189
|
|
|
189
190
|
##
|
|
190
|
-
# @return [String] The
|
|
191
|
+
# @return [String] The absolute URL of the Workspace statistics resource
|
|
191
192
|
def url
|
|
192
193
|
@properties['url']
|
|
193
194
|
end
|
|
194
195
|
|
|
195
196
|
##
|
|
196
197
|
# Fetch a WorkspaceStatisticsInstance
|
|
197
|
-
# @param [String] minutes
|
|
198
|
-
# past. This is helpful for statistics for the
|
|
199
|
-
# hours), and 480 minutes (8 hours) to see trends.
|
|
200
|
-
# @param [Time] start_date
|
|
201
|
-
#
|
|
202
|
-
#
|
|
203
|
-
#
|
|
204
|
-
#
|
|
205
|
-
#
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
#
|
|
209
|
-
#
|
|
210
|
-
#
|
|
211
|
-
#
|
|
212
|
-
#
|
|
213
|
-
#
|
|
198
|
+
# @param [String] minutes Only calculate statistics since this many minutes in the
|
|
199
|
+
# past. The default 15 minutes. This is helpful for displaying statistics for the
|
|
200
|
+
# last 15 minutes, 240 minutes (4 hours), and 480 minutes (8 hours) to see trends.
|
|
201
|
+
# @param [Time] start_date Only calculate statistics from this date and time and
|
|
202
|
+
# later, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
203
|
+
# @param [Time] end_date Only calculate statistics from this date and time and
|
|
204
|
+
# earlier, specified in GMT as an [ISO
|
|
205
|
+
# 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time.
|
|
206
|
+
# @param [String] task_channel Only calculate statistics on this TaskChannel. Can
|
|
207
|
+
# be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or
|
|
208
|
+
# `default`.
|
|
209
|
+
# @param [String] split_by_wait_time A comma separated list of values that
|
|
210
|
+
# describes the thresholds, in seconds, to calculate statistics on. For each
|
|
211
|
+
# threshold specified, the number of Tasks canceled and reservations accepted
|
|
212
|
+
# above and below the specified thresholds in seconds are computed. For example,
|
|
213
|
+
# `5,30` would show splits of Tasks that were canceled or accepted before and
|
|
214
|
+
# after 5 seconds and before and after 30 seconds. This can be used to show short
|
|
215
|
+
# abandoned Tasks or Tasks that failed to meet an SLA.
|
|
214
216
|
# @return [WorkspaceStatisticsInstance] Fetched WorkspaceStatisticsInstance
|
|
215
217
|
def fetch(minutes: :unset, start_date: :unset, end_date: :unset, task_channel: :unset, split_by_wait_time: :unset)
|
|
216
218
|
context.fetch(
|
|
@@ -31,13 +31,14 @@ module Twilio
|
|
|
31
31
|
# @param [String] domain_name The unique address you reserve on Twilio to which
|
|
32
32
|
# you route your SIP traffic. Domain names can contain letters, digits, and `-`
|
|
33
33
|
# and must end with `pstn.twilio.com`. See [Termination
|
|
34
|
-
# Settings](https://www.twilio.com/docs/sip-trunking
|
|
35
|
-
#
|
|
34
|
+
# Settings](https://www.twilio.com/docs/sip-trunking#termination) for more
|
|
35
|
+
# information.
|
|
36
36
|
# @param [String] disaster_recovery_url The URL we should call using the
|
|
37
37
|
# `disaster_recovery_method` if an error occurs while sending SIP traffic towards
|
|
38
38
|
# the configured Origination URL. We retrieve TwiML from the URL and execute the
|
|
39
39
|
# instructions like any other normal TwiML call. See [Disaster
|
|
40
|
-
# Recovery](https://www.twilio.com/docs/sip-trunking
|
|
40
|
+
# Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more
|
|
41
|
+
# information.
|
|
41
42
|
# @param [String] disaster_recovery_method The HTTP method we should use to call
|
|
42
43
|
# the `disaster_recovery_url`. Can be: `GET` or `POST`.
|
|
43
44
|
# @param [trunk.RecordingSetting] recording The recording settings for the trunk.
|
|
@@ -46,12 +47,13 @@ module Twilio
|
|
|
46
47
|
# will be recorded. The only way to change recording parameters is on a
|
|
47
48
|
# sub-resource of a Trunk after it has been created.
|
|
48
49
|
# e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d'Mode=record-from-answer'`. See
|
|
49
|
-
# [Recording](https://www.twilio.com/docs/sip-trunking
|
|
50
|
-
#
|
|
50
|
+
# [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
|
|
51
|
+
# information.
|
|
51
52
|
# @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
|
|
52
53
|
# enabled, all calls going through the trunk will be secure using SRTP for media
|
|
53
54
|
# and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
|
|
54
|
-
# Trunking](https://www.twilio.com/docs/sip-trunking
|
|
55
|
+
# Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more
|
|
56
|
+
# information.
|
|
55
57
|
# @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
|
|
56
58
|
# be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
|
|
57
59
|
# the United States and Canada automatically perform a CNAM Lookup and display
|
|
@@ -247,25 +249,27 @@ module Twilio
|
|
|
247
249
|
# @param [String] domain_name The unique address you reserve on Twilio to which
|
|
248
250
|
# you route your SIP traffic. Domain names can contain letters, digits, and `-`
|
|
249
251
|
# and must end with `pstn.twilio.com`. See [Termination
|
|
250
|
-
# Settings](https://www.twilio.com/docs/sip-trunking
|
|
251
|
-
#
|
|
252
|
+
# Settings](https://www.twilio.com/docs/sip-trunking#termination) for more
|
|
253
|
+
# information.
|
|
252
254
|
# @param [String] disaster_recovery_url The URL we should call using the
|
|
253
255
|
# `disaster_recovery_method` if an error occurs while sending SIP traffic towards
|
|
254
256
|
# the configured Origination URL. We retrieve TwiML from the URL and execute the
|
|
255
257
|
# instructions like any other normal TwiML call. See [Disaster
|
|
256
|
-
# Recovery](https://www.twilio.com/docs/sip-trunking
|
|
258
|
+
# Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more
|
|
259
|
+
# information.
|
|
257
260
|
# @param [String] disaster_recovery_method The HTTP method we should use to call
|
|
258
261
|
# the `disaster_recovery_url`. Can be: `GET` or `POST`.
|
|
259
262
|
# @param [trunk.RecordingSetting] recording The recording settings for the trunk.
|
|
260
263
|
# Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
|
|
261
264
|
# `record-from-ringing` or `record-from-answer`, all calls going through the trunk
|
|
262
265
|
# will be recorded. See
|
|
263
|
-
# [Recording](https://www.twilio.com/docs/sip-trunking
|
|
264
|
-
#
|
|
266
|
+
# [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
|
|
267
|
+
# information.
|
|
265
268
|
# @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
|
|
266
269
|
# enabled, all calls going through the trunk will be secure using SRTP for media
|
|
267
270
|
# and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
|
|
268
|
-
# Trunking](https://www.twilio.com/docs/sip-trunking
|
|
271
|
+
# Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more
|
|
272
|
+
# information.
|
|
269
273
|
# @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
|
|
270
274
|
# be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
|
|
271
275
|
# the United States and Canada automatically perform a CNAM Lookup and display
|
|
@@ -554,25 +558,27 @@ module Twilio
|
|
|
554
558
|
# @param [String] domain_name The unique address you reserve on Twilio to which
|
|
555
559
|
# you route your SIP traffic. Domain names can contain letters, digits, and `-`
|
|
556
560
|
# and must end with `pstn.twilio.com`. See [Termination
|
|
557
|
-
# Settings](https://www.twilio.com/docs/sip-trunking
|
|
558
|
-
#
|
|
561
|
+
# Settings](https://www.twilio.com/docs/sip-trunking#termination) for more
|
|
562
|
+
# information.
|
|
559
563
|
# @param [String] disaster_recovery_url The URL we should call using the
|
|
560
564
|
# `disaster_recovery_method` if an error occurs while sending SIP traffic towards
|
|
561
565
|
# the configured Origination URL. We retrieve TwiML from the URL and execute the
|
|
562
566
|
# instructions like any other normal TwiML call. See [Disaster
|
|
563
|
-
# Recovery](https://www.twilio.com/docs/sip-trunking
|
|
567
|
+
# Recovery](https://www.twilio.com/docs/sip-trunking#disaster-recovery) for more
|
|
568
|
+
# information.
|
|
564
569
|
# @param [String] disaster_recovery_method The HTTP method we should use to call
|
|
565
570
|
# the `disaster_recovery_url`. Can be: `GET` or `POST`.
|
|
566
571
|
# @param [trunk.RecordingSetting] recording The recording settings for the trunk.
|
|
567
572
|
# Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to
|
|
568
573
|
# `record-from-ringing` or `record-from-answer`, all calls going through the trunk
|
|
569
574
|
# will be recorded. See
|
|
570
|
-
# [Recording](https://www.twilio.com/docs/sip-trunking
|
|
571
|
-
#
|
|
575
|
+
# [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
|
|
576
|
+
# information.
|
|
572
577
|
# @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
|
|
573
578
|
# enabled, all calls going through the trunk will be secure using SRTP for media
|
|
574
579
|
# and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
|
|
575
|
-
# Trunking](https://www.twilio.com/docs/sip-trunking
|
|
580
|
+
# Trunking](https://www.twilio.com/docs/sip-trunking#securetrunking) for more
|
|
581
|
+
# information.
|
|
576
582
|
# @param [Boolean] cnam_lookup_enabled Whether Caller ID Name (CNAM) lookup should
|
|
577
583
|
# be enabled for the trunk. If enabled, all inbound calls to the SIP Trunk from
|
|
578
584
|
# the United States and Canada automatically perform a CNAM Lookup and display
|
|
@@ -30,9 +30,9 @@ module Twilio
|
|
|
30
30
|
# Retrieve a single page of CredentialListInstance records from the API.
|
|
31
31
|
# Request is executed immediately.
|
|
32
32
|
# @param [String] credential_list_sid The SID of the [Credential
|
|
33
|
-
# List](https://www.twilio.com/docs/api/
|
|
34
|
-
# associate with the trunk. Once associated, we will authenticate
|
|
35
|
-
# trunk against this list.
|
|
33
|
+
# List](https://www.twilio.com/docs/voice/sip/api/sip-credentiallist-resource)
|
|
34
|
+
# that you want to associate with the trunk. Once associated, we will authenticate
|
|
35
|
+
# access to the trunk against this list.
|
|
36
36
|
# @return [CredentialListInstance] Newly created CredentialListInstance
|
|
37
37
|
def create(credential_list_sid: nil)
|
|
38
38
|
data = Twilio::Values.of({'CredentialListSid' => credential_list_sid, })
|
|
@@ -29,8 +29,7 @@ module Twilio
|
|
|
29
29
|
# Retrieve a single page of IpAccessControlListInstance records from the API.
|
|
30
30
|
# Request is executed immediately.
|
|
31
31
|
# @param [String] ip_access_control_list_sid The SID of the [IP Access Control
|
|
32
|
-
# List](https://www.twilio.com/docs/api/
|
|
33
|
-
# to associate with the trunk.
|
|
32
|
+
# List](https://www.twilio.com/docs/voice/sip/api/sip-ipaccesscontrollist-resource) that you want to associate with the trunk.
|
|
34
33
|
# @return [IpAccessControlListInstance] Newly created IpAccessControlListInstance
|
|
35
34
|
def create(ip_access_control_list_sid: nil)
|
|
36
35
|
data = Twilio::Values.of({'IpAccessControlListSid' => ip_access_control_list_sid, })
|
|
@@ -32,8 +32,7 @@ module Twilio
|
|
|
32
32
|
# Retrieve a single page of PhoneNumberInstance records from the API.
|
|
33
33
|
# Request is executed immediately.
|
|
34
34
|
# @param [String] phone_number_sid The SID of the [Incoming Phone
|
|
35
|
-
# Number](https://www.twilio.com/docs/api/
|
|
36
|
-
# want to associate with the trunk.
|
|
35
|
+
# Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.
|
|
37
36
|
# @return [PhoneNumberInstance] Newly created PhoneNumberInstance
|
|
38
37
|
def create(phone_number_sid: nil)
|
|
39
38
|
data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
|
|
@@ -18,8 +18,8 @@ module Twilio
|
|
|
18
18
|
# Initialize the MessagingConfigurationList
|
|
19
19
|
# @param [Version] version Version that contains the resource
|
|
20
20
|
# @param [String] service_sid The SID of the
|
|
21
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
22
|
-
#
|
|
21
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) that the resource is
|
|
22
|
+
# associated with.
|
|
23
23
|
# @return [MessagingConfigurationList] MessagingConfigurationList
|
|
24
24
|
def initialize(version, service_sid: nil)
|
|
25
25
|
super(version)
|
|
@@ -37,8 +37,8 @@ module Twilio
|
|
|
37
37
|
# the country this configuration will be applied to. If this is a global
|
|
38
38
|
# configuration, Country will take the value `all`.
|
|
39
39
|
# @param [String] messaging_service_sid The SID of the [Messaging
|
|
40
|
-
# Service](https://www.twilio.com/docs/
|
|
41
|
-
#
|
|
40
|
+
# Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to
|
|
41
|
+
# the country of this configuration.
|
|
42
42
|
# @return [MessagingConfigurationInstance] Newly created MessagingConfigurationInstance
|
|
43
43
|
def create(country: nil, messaging_service_sid: nil)
|
|
44
44
|
data = Twilio::Values.of({'Country' => country, 'MessagingServiceSid' => messaging_service_sid, })
|
|
@@ -179,8 +179,8 @@ module Twilio
|
|
|
179
179
|
# Initialize the MessagingConfigurationContext
|
|
180
180
|
# @param [Version] version Version that contains the resource
|
|
181
181
|
# @param [String] service_sid The SID of the
|
|
182
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
183
|
-
#
|
|
182
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) that the resource is
|
|
183
|
+
# associated with.
|
|
184
184
|
# @param [String] country The
|
|
185
185
|
# [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
|
|
186
186
|
# the country this configuration will be applied to. If this is a global
|
|
@@ -197,8 +197,8 @@ module Twilio
|
|
|
197
197
|
##
|
|
198
198
|
# Update the MessagingConfigurationInstance
|
|
199
199
|
# @param [String] messaging_service_sid The SID of the [Messaging
|
|
200
|
-
# Service](https://www.twilio.com/docs/
|
|
201
|
-
#
|
|
200
|
+
# Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to
|
|
201
|
+
# the country of this configuration.
|
|
202
202
|
# @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
|
|
203
203
|
def update(messaging_service_sid: nil)
|
|
204
204
|
data = Twilio::Values.of({'MessagingServiceSid' => messaging_service_sid, })
|
|
@@ -267,8 +267,8 @@ module Twilio
|
|
|
267
267
|
# @param [Version] version Version that contains the resource
|
|
268
268
|
# @param [Hash] payload payload that contains response from Twilio
|
|
269
269
|
# @param [String] service_sid The SID of the
|
|
270
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
271
|
-
#
|
|
270
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) that the resource is
|
|
271
|
+
# associated with.
|
|
272
272
|
# @param [String] country The
|
|
273
273
|
# [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
|
|
274
274
|
# the country this configuration will be applied to. If this is a global
|
|
@@ -353,8 +353,8 @@ module Twilio
|
|
|
353
353
|
##
|
|
354
354
|
# Update the MessagingConfigurationInstance
|
|
355
355
|
# @param [String] messaging_service_sid The SID of the [Messaging
|
|
356
|
-
# Service](https://www.twilio.com/docs/
|
|
357
|
-
#
|
|
356
|
+
# Service](https://www.twilio.com/docs/sms/services/api) to be used to send SMS to
|
|
357
|
+
# the country of this configuration.
|
|
358
358
|
# @return [MessagingConfigurationInstance] Updated MessagingConfigurationInstance
|
|
359
359
|
def update(messaging_service_sid: nil)
|
|
360
360
|
context.update(messaging_service_sid: messaging_service_sid, )
|
|
@@ -18,8 +18,8 @@ module Twilio
|
|
|
18
18
|
# Initialize the RateLimitList
|
|
19
19
|
# @param [Version] version Version that contains the resource
|
|
20
20
|
# @param [String] service_sid The SID of the
|
|
21
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
22
|
-
#
|
|
21
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) the resource is
|
|
22
|
+
# associated with.
|
|
23
23
|
# @return [RateLimitList] RateLimitList
|
|
24
24
|
def initialize(version, service_sid: nil)
|
|
25
25
|
super(version)
|
|
@@ -176,8 +176,8 @@ module Twilio
|
|
|
176
176
|
# Initialize the RateLimitContext
|
|
177
177
|
# @param [Version] version Version that contains the resource
|
|
178
178
|
# @param [String] service_sid The SID of the
|
|
179
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
180
|
-
#
|
|
179
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) the resource is
|
|
180
|
+
# associated with.
|
|
181
181
|
# @param [String] sid The Twilio-provided string that uniquely identifies the Rate
|
|
182
182
|
# Limit resource to fetch.
|
|
183
183
|
# @return [RateLimitContext] RateLimitContext
|
|
@@ -275,8 +275,8 @@ module Twilio
|
|
|
275
275
|
# @param [Version] version Version that contains the resource
|
|
276
276
|
# @param [Hash] payload payload that contains response from Twilio
|
|
277
277
|
# @param [String] service_sid The SID of the
|
|
278
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
279
|
-
#
|
|
278
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) the resource is
|
|
279
|
+
# associated with.
|
|
280
280
|
# @param [String] sid The Twilio-provided string that uniquely identifies the Rate
|
|
281
281
|
# Limit resource to fetch.
|
|
282
282
|
# @return [RateLimitInstance] RateLimitInstance
|
|
@@ -19,8 +19,8 @@ module Twilio
|
|
|
19
19
|
# Initialize the BucketList
|
|
20
20
|
# @param [Version] version Version that contains the resource
|
|
21
21
|
# @param [String] service_sid The SID of the
|
|
22
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
23
|
-
#
|
|
22
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) the resource is
|
|
23
|
+
# associated with.
|
|
24
24
|
# @param [String] rate_limit_sid The Twilio-provided string that uniquely
|
|
25
25
|
# identifies the Rate Limit resource.
|
|
26
26
|
# @return [BucketList] BucketList
|
|
@@ -188,8 +188,8 @@ module Twilio
|
|
|
188
188
|
# Initialize the BucketContext
|
|
189
189
|
# @param [Version] version Version that contains the resource
|
|
190
190
|
# @param [String] service_sid The SID of the
|
|
191
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
192
|
-
#
|
|
191
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) the resource is
|
|
192
|
+
# associated with.
|
|
193
193
|
# @param [String] rate_limit_sid The Twilio-provided string that uniquely
|
|
194
194
|
# identifies the Rate Limit resource.
|
|
195
195
|
# @param [String] sid A 34 character string that uniquely identifies this Bucket.
|
|
@@ -277,8 +277,8 @@ module Twilio
|
|
|
277
277
|
# @param [Version] version Version that contains the resource
|
|
278
278
|
# @param [Hash] payload payload that contains response from Twilio
|
|
279
279
|
# @param [String] service_sid The SID of the
|
|
280
|
-
# [Service](https://www.twilio.com/docs/verify/api
|
|
281
|
-
#
|
|
280
|
+
# [Service](https://www.twilio.com/docs/verify/api/service) the resource is
|
|
281
|
+
# associated with.
|
|
282
282
|
# @param [String] rate_limit_sid The Twilio-provided string that uniquely
|
|
283
283
|
# identifies the Rate Limit resource.
|
|
284
284
|
# @param [String] sid A 34 character string that uniquely identifies this Bucket.
|
|
@@ -32,7 +32,8 @@ module Twilio
|
|
|
32
32
|
##
|
|
33
33
|
# Retrieve a single page of VerificationInstance records from the API.
|
|
34
34
|
# Request is executed immediately.
|
|
35
|
-
# @param [String] to The phone number to verify.
|
|
35
|
+
# @param [String] to The phone number to verify. Phone numbers must be in [E.164
|
|
36
|
+
# format](https://www.twilio.com/docs/glossary/what-e164).
|
|
36
37
|
# @param [String] channel The verification method to use. Can be: `sms` or `call`.
|
|
37
38
|
# @param [String] custom_message The text of a custom message to use for the
|
|
38
39
|
# verification.
|
|
@@ -34,7 +34,8 @@ module Twilio
|
|
|
34
34
|
# Request is executed immediately.
|
|
35
35
|
# @param [String] code The 4-10 character string being verified.
|
|
36
36
|
# @param [String] to The phone number to verify. Either this parameter or the
|
|
37
|
-
# `verification_sid` must be specified
|
|
37
|
+
# `verification_sid` must be specified. Phone numbers must be in [E.164
|
|
38
|
+
# format](https://www.twilio.com/docs/glossary/what-e164).
|
|
38
39
|
# @param [String] verification_sid A SID that uniquely identifies the Verification
|
|
39
40
|
# Check. Either this parameter or the `to` phone number must be specified.
|
|
40
41
|
# @param [String] amount The amount of the associated PSD2 compliant transaction.
|
|
@@ -29,8 +29,8 @@ module Twilio
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
##
|
|
32
|
-
# @param [String] sid
|
|
33
|
-
#
|
|
32
|
+
# @param [String] sid The unique string that we created to identify the
|
|
33
|
+
# CompositionHook resource.
|
|
34
34
|
# @return [Twilio::REST::Video::V1::CompositionHookInstance] if sid was passed.
|
|
35
35
|
# @return [Twilio::REST::Video::V1::CompositionHookList]
|
|
36
36
|
def composition_hooks(sid=:unset)
|
|
@@ -44,8 +44,8 @@ module Twilio
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
##
|
|
47
|
-
# @param [String] sid
|
|
48
|
-
#
|
|
47
|
+
# @param [String] sid The unique string that we created to identify the Recording
|
|
48
|
+
# resource.
|
|
49
49
|
# @return [Twilio::REST::Video::V1::RecordingInstance] if sid was passed.
|
|
50
50
|
# @return [Twilio::REST::Video::V1::RecordingList]
|
|
51
51
|
def recordings(sid=:unset)
|
|
@@ -59,8 +59,8 @@ module Twilio
|
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
##
|
|
62
|
-
# @param [String] sid
|
|
63
|
-
#
|
|
62
|
+
# @param [String] sid The unique string that we created to identify the
|
|
63
|
+
# Composition resource.
|
|
64
64
|
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
|
65
65
|
# @return [Twilio::REST::Video::V1::CompositionList]
|
|
66
66
|
def compositions(sid=:unset)
|
|
@@ -68,8 +68,8 @@ module Twilio
|
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
##
|
|
71
|
-
# @param [String] sid
|
|
72
|
-
#
|
|
71
|
+
# @param [String] sid The unique string that we created to identify the Room
|
|
72
|
+
# resource.
|
|
73
73
|
# @return [Twilio::REST::Video::V1::RoomInstance] if sid was passed.
|
|
74
74
|
# @return [Twilio::REST::Video::V1::RoomList]
|
|
75
75
|
def rooms(sid=:unset)
|