twilio-ruby 5.17.0 → 5.18.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 +5 -5
- data/CHANGES.md +25 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +5 -5
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +34 -22
- data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +32 -28
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +5 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +11 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +14 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +45 -31
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +4 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +15 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +14 -9
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +8 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +41 -19
- data/lib/twilio-ruby/rest/authy.rb +9 -9
- data/lib/twilio-ruby/rest/authy/v1.rb +16 -16
- data/lib/twilio-ruby/rest/authy/v1/form.rb +12 -12
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor.rb +11 -7
- data/lib/twilio-ruby/rest/authy/v1/service/entity/factor/challenge.rb +4 -4
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +3 -6
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +28 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +12 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_channel.rb +80 -9
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +12 -2
- data/lib/twilio-ruby/rest/verify/v1/service.rb +51 -3
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +16 -16
- data/lib/twilio-ruby/rest/wireless/v1.rb +4 -2
- data/lib/twilio-ruby/rest/wireless/v1/command.rb +28 -6
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +27 -8
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +15 -11
- data/spec/integration/authy/v1/form_spec.rb +1 -1
- data/spec/integration/authy/v1/service/entity/factor/challenge_spec.rb +5 -5
- data/spec/integration/authy/v1/service/entity/factor_spec.rb +7 -7
- data/spec/integration/messaging/v1/service_spec.rb +12 -4
- data/spec/integration/taskrouter/v1/workspace/task_channel_spec.rb +191 -10
- data/spec/integration/verify/v1/service_spec.rb +12 -0
- data/spec/integration/wireless/v1/command_spec.rb +26 -0
- data/spec/integration/wireless/v1/sim_spec.rb +26 -0
- metadata +3 -3
@@ -29,6 +29,10 @@ module Twilio
|
|
29
29
|
# Lists ExecutionInstance records from the API as a list.
|
30
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
31
31
|
# memory before returning.
|
32
|
+
# @param [Time] date_created_from Only show Executions that started on or after
|
33
|
+
# this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
34
|
+
# @param [Time] date_created_to Only show Executions that started before this this
|
35
|
+
# ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
32
36
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
33
37
|
# guarantees to never return more than limit. Default is no limit
|
34
38
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -36,14 +40,23 @@ module Twilio
|
|
36
40
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
37
41
|
# efficient page size, i.e. min(limit, 1000)
|
38
42
|
# @return [Array] Array of up to limit results
|
39
|
-
def list(limit: nil, page_size: nil)
|
40
|
-
self.stream(
|
43
|
+
def list(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
44
|
+
self.stream(
|
45
|
+
date_created_from: date_created_from,
|
46
|
+
date_created_to: date_created_to,
|
47
|
+
limit: limit,
|
48
|
+
page_size: page_size
|
49
|
+
).entries
|
41
50
|
end
|
42
51
|
|
43
52
|
##
|
44
53
|
# Streams ExecutionInstance records from the API as an Enumerable.
|
45
54
|
# This operation lazily loads records as efficiently as possible until the limit
|
46
55
|
# is reached.
|
56
|
+
# @param [Time] date_created_from Only show Executions that started on or after
|
57
|
+
# this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
58
|
+
# @param [Time] date_created_to Only show Executions that started before this this
|
59
|
+
# ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
47
60
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
48
61
|
# guarantees to never return more than limit. Default is no limit.
|
49
62
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -51,10 +64,14 @@ module Twilio
|
|
51
64
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
52
65
|
# efficient page size, i.e. min(limit, 1000)
|
53
66
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
54
|
-
def stream(limit: nil, page_size: nil)
|
67
|
+
def stream(date_created_from: :unset, date_created_to: :unset, limit: nil, page_size: nil)
|
55
68
|
limits = @version.read_limits(limit, page_size)
|
56
69
|
|
57
|
-
page = self.page(
|
70
|
+
page = self.page(
|
71
|
+
date_created_from: date_created_from,
|
72
|
+
date_created_to: date_created_to,
|
73
|
+
page_size: limits[:page_size],
|
74
|
+
)
|
58
75
|
|
59
76
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
60
77
|
end
|
@@ -76,12 +93,18 @@ module Twilio
|
|
76
93
|
##
|
77
94
|
# Retrieve a single page of ExecutionInstance records from the API.
|
78
95
|
# Request is executed immediately.
|
96
|
+
# @param [Time] date_created_from Only show Executions that started on or after
|
97
|
+
# this ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
98
|
+
# @param [Time] date_created_to Only show Executions that started before this this
|
99
|
+
# ISO8601 date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`.
|
79
100
|
# @param [String] page_token PageToken provided by the API
|
80
101
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
81
102
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
82
103
|
# @return [Page] Page of ExecutionInstance
|
83
|
-
def page(page_token: :unset, page_number: :unset, page_size: :unset)
|
104
|
+
def page(date_created_from: :unset, date_created_to: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
84
105
|
params = Twilio::Values.of({
|
106
|
+
'DateCreatedFrom' => Twilio.serialize_iso8601_datetime(date_created_from),
|
107
|
+
'DateCreatedTo' => Twilio.serialize_iso8601_datetime(date_created_to),
|
85
108
|
'PageToken' => page_token,
|
86
109
|
'Page' => page_number,
|
87
110
|
'PageSize' => page_size,
|
@@ -275,8 +275,11 @@ module Twilio
|
|
275
275
|
# executing the Supervise instruction
|
276
276
|
# @param [String] supervisor Supervisor sid/uri when executing the Supervise
|
277
277
|
# instruction
|
278
|
+
# @param [Boolean] end_conference_on_customer_exit The
|
279
|
+
# end_conference_on_customer_exit
|
280
|
+
# @param [Boolean] beep_on_customer_entrance The beep_on_customer_entrance
|
278
281
|
# @return [ReservationInstance] Updated ReservationInstance
|
279
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset)
|
282
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
280
283
|
data = Twilio::Values.of({
|
281
284
|
'ReservationStatus' => reservation_status,
|
282
285
|
'WorkerActivitySid' => worker_activity_sid,
|
@@ -329,6 +332,8 @@ module Twilio
|
|
329
332
|
'PostWorkActivitySid' => post_work_activity_sid,
|
330
333
|
'SupervisorMode' => supervisor_mode,
|
331
334
|
'Supervisor' => supervisor,
|
335
|
+
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
|
336
|
+
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
|
332
337
|
})
|
333
338
|
|
334
339
|
payload = @version.update(
|
@@ -560,8 +565,11 @@ module Twilio
|
|
560
565
|
# executing the Supervise instruction
|
561
566
|
# @param [String] supervisor Supervisor sid/uri when executing the Supervise
|
562
567
|
# instruction
|
568
|
+
# @param [Boolean] end_conference_on_customer_exit The
|
569
|
+
# end_conference_on_customer_exit
|
570
|
+
# @param [Boolean] beep_on_customer_entrance The beep_on_customer_entrance
|
563
571
|
# @return [ReservationInstance] Updated ReservationInstance
|
564
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset)
|
572
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, supervisor_mode: :unset, supervisor: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
565
573
|
context.update(
|
566
574
|
reservation_status: reservation_status,
|
567
575
|
worker_activity_sid: worker_activity_sid,
|
@@ -614,6 +622,8 @@ module Twilio
|
|
614
622
|
post_work_activity_sid: post_work_activity_sid,
|
615
623
|
supervisor_mode: supervisor_mode,
|
616
624
|
supervisor: supervisor,
|
625
|
+
end_conference_on_customer_exit: end_conference_on_customer_exit,
|
626
|
+
beep_on_customer_entrance: beep_on_customer_entrance,
|
617
627
|
)
|
618
628
|
end
|
619
629
|
|
@@ -15,7 +15,8 @@ module Twilio
|
|
15
15
|
##
|
16
16
|
# Initialize the TaskChannelList
|
17
17
|
# @param [Version] version Version that contains the resource
|
18
|
-
# @param [String] workspace_sid The
|
18
|
+
# @param [String] workspace_sid The unique ID of the Workspace that this
|
19
|
+
# TaskChannel belongs to.
|
19
20
|
# @return [TaskChannelList] TaskChannelList
|
20
21
|
def initialize(version, workspace_sid: nil)
|
21
22
|
super(version)
|
@@ -107,6 +108,25 @@ module Twilio
|
|
107
108
|
TaskChannelPage.new(@version, response, @solution)
|
108
109
|
end
|
109
110
|
|
111
|
+
##
|
112
|
+
# Retrieve a single page of TaskChannelInstance records from the API.
|
113
|
+
# Request is executed immediately.
|
114
|
+
# @param [String] friendly_name String representing user-friendly name for the
|
115
|
+
# TaskChannel
|
116
|
+
# @param [String] unique_name String representing unique name for the TaskChannel
|
117
|
+
# @return [TaskChannelInstance] Newly created TaskChannelInstance
|
118
|
+
def create(friendly_name: nil, unique_name: nil)
|
119
|
+
data = Twilio::Values.of({'FriendlyName' => friendly_name, 'UniqueName' => unique_name, })
|
120
|
+
|
121
|
+
payload = @version.create(
|
122
|
+
'POST',
|
123
|
+
@uri,
|
124
|
+
data: data
|
125
|
+
)
|
126
|
+
|
127
|
+
TaskChannelInstance.new(@version, payload, workspace_sid: @solution[:workspace_sid], )
|
128
|
+
end
|
129
|
+
|
110
130
|
##
|
111
131
|
# Provide a user friendly representation
|
112
132
|
def to_s
|
@@ -178,6 +198,34 @@ module Twilio
|
|
178
198
|
)
|
179
199
|
end
|
180
200
|
|
201
|
+
##
|
202
|
+
# Update the TaskChannelInstance
|
203
|
+
# @param [String] friendly_name Toggle the FriendlyName for the TaskChannel
|
204
|
+
# @return [TaskChannelInstance] Updated TaskChannelInstance
|
205
|
+
def update(friendly_name: :unset)
|
206
|
+
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
207
|
+
|
208
|
+
payload = @version.update(
|
209
|
+
'POST',
|
210
|
+
@uri,
|
211
|
+
data: data,
|
212
|
+
)
|
213
|
+
|
214
|
+
TaskChannelInstance.new(
|
215
|
+
@version,
|
216
|
+
payload,
|
217
|
+
workspace_sid: @solution[:workspace_sid],
|
218
|
+
sid: @solution[:sid],
|
219
|
+
)
|
220
|
+
end
|
221
|
+
|
222
|
+
##
|
223
|
+
# Deletes the TaskChannelInstance
|
224
|
+
# @return [Boolean] true if delete succeeds, true otherwise
|
225
|
+
def delete
|
226
|
+
@version.delete('delete', @uri)
|
227
|
+
end
|
228
|
+
|
181
229
|
##
|
182
230
|
# Provide a user friendly representation
|
183
231
|
def to_s
|
@@ -191,7 +239,8 @@ module Twilio
|
|
191
239
|
# Initialize the TaskChannelInstance
|
192
240
|
# @param [Version] version Version that contains the resource
|
193
241
|
# @param [Hash] payload payload that contains response from Twilio
|
194
|
-
# @param [String] workspace_sid The
|
242
|
+
# @param [String] workspace_sid The unique ID of the Workspace that this
|
243
|
+
# TaskChannel belongs to.
|
195
244
|
# @param [String] sid The sid
|
196
245
|
# @return [TaskChannelInstance] TaskChannelInstance
|
197
246
|
def initialize(version, payload, workspace_sid: nil, sid: nil)
|
@@ -207,6 +256,7 @@ module Twilio
|
|
207
256
|
'unique_name' => payload['unique_name'],
|
208
257
|
'workspace_sid' => payload['workspace_sid'],
|
209
258
|
'url' => payload['url'],
|
259
|
+
'links' => payload['links'],
|
210
260
|
}
|
211
261
|
|
212
262
|
# Context
|
@@ -226,43 +276,43 @@ module Twilio
|
|
226
276
|
end
|
227
277
|
|
228
278
|
##
|
229
|
-
# @return [String] The
|
279
|
+
# @return [String] The unique ID of the Account that owns this TaskChannel.
|
230
280
|
def account_sid
|
231
281
|
@properties['account_sid']
|
232
282
|
end
|
233
283
|
|
234
284
|
##
|
235
|
-
# @return [Time] The
|
285
|
+
# @return [Time] The date this TaskChannel was created.
|
236
286
|
def date_created
|
237
287
|
@properties['date_created']
|
238
288
|
end
|
239
289
|
|
240
290
|
##
|
241
|
-
# @return [Time] The
|
291
|
+
# @return [Time] The date this TaskChannel was updated.
|
242
292
|
def date_updated
|
243
293
|
@properties['date_updated']
|
244
294
|
end
|
245
295
|
|
246
296
|
##
|
247
|
-
# @return [String] The
|
297
|
+
# @return [String] The friendly name of this TaskChannel
|
248
298
|
def friendly_name
|
249
299
|
@properties['friendly_name']
|
250
300
|
end
|
251
301
|
|
252
302
|
##
|
253
|
-
# @return [String] The
|
303
|
+
# @return [String] The unique ID for this TaskChannel.
|
254
304
|
def sid
|
255
305
|
@properties['sid']
|
256
306
|
end
|
257
307
|
|
258
308
|
##
|
259
|
-
# @return [String] The
|
309
|
+
# @return [String] The unique name of TaskChannel, such as 'voice', 'sms', etc.
|
260
310
|
def unique_name
|
261
311
|
@properties['unique_name']
|
262
312
|
end
|
263
313
|
|
264
314
|
##
|
265
|
-
# @return [String] The
|
315
|
+
# @return [String] The unique ID of the Workspace that this TaskChannel belongs to.
|
266
316
|
def workspace_sid
|
267
317
|
@properties['workspace_sid']
|
268
318
|
end
|
@@ -273,6 +323,12 @@ module Twilio
|
|
273
323
|
@properties['url']
|
274
324
|
end
|
275
325
|
|
326
|
+
##
|
327
|
+
# @return [String] The links
|
328
|
+
def links
|
329
|
+
@properties['links']
|
330
|
+
end
|
331
|
+
|
276
332
|
##
|
277
333
|
# Fetch a TaskChannelInstance
|
278
334
|
# @return [TaskChannelInstance] Fetched TaskChannelInstance
|
@@ -280,6 +336,21 @@ module Twilio
|
|
280
336
|
context.fetch
|
281
337
|
end
|
282
338
|
|
339
|
+
##
|
340
|
+
# Update the TaskChannelInstance
|
341
|
+
# @param [String] friendly_name Toggle the FriendlyName for the TaskChannel
|
342
|
+
# @return [TaskChannelInstance] Updated TaskChannelInstance
|
343
|
+
def update(friendly_name: :unset)
|
344
|
+
context.update(friendly_name: friendly_name, )
|
345
|
+
end
|
346
|
+
|
347
|
+
##
|
348
|
+
# Deletes the TaskChannelInstance
|
349
|
+
# @return [Boolean] true if delete succeeds, true otherwise
|
350
|
+
def delete
|
351
|
+
context.delete
|
352
|
+
end
|
353
|
+
|
283
354
|
##
|
284
355
|
# Provide a user friendly representation
|
285
356
|
def to_s
|
@@ -250,8 +250,11 @@ module Twilio
|
|
250
250
|
# @param [String] sip_auth_password The sip_auth_password
|
251
251
|
# @param [String] dequeue_status_callback_event The dequeue_status_callback_event
|
252
252
|
# @param [String] post_work_activity_sid The post_work_activity_sid
|
253
|
+
# @param [Boolean] end_conference_on_customer_exit The
|
254
|
+
# end_conference_on_customer_exit
|
255
|
+
# @param [Boolean] beep_on_customer_entrance The beep_on_customer_entrance
|
253
256
|
# @return [ReservationInstance] Updated ReservationInstance
|
254
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset)
|
257
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
255
258
|
data = Twilio::Values.of({
|
256
259
|
'ReservationStatus' => reservation_status,
|
257
260
|
'WorkerActivitySid' => worker_activity_sid,
|
@@ -302,6 +305,8 @@ module Twilio
|
|
302
305
|
'SipAuthPassword' => sip_auth_password,
|
303
306
|
'DequeueStatusCallbackEvent' => Twilio.serialize_list(dequeue_status_callback_event) { |e| e },
|
304
307
|
'PostWorkActivitySid' => post_work_activity_sid,
|
308
|
+
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
|
309
|
+
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
|
305
310
|
})
|
306
311
|
|
307
312
|
payload = @version.update(
|
@@ -508,8 +513,11 @@ module Twilio
|
|
508
513
|
# @param [String] sip_auth_password The sip_auth_password
|
509
514
|
# @param [String] dequeue_status_callback_event The dequeue_status_callback_event
|
510
515
|
# @param [String] post_work_activity_sid The post_work_activity_sid
|
516
|
+
# @param [Boolean] end_conference_on_customer_exit The
|
517
|
+
# end_conference_on_customer_exit
|
518
|
+
# @param [Boolean] beep_on_customer_entrance The beep_on_customer_entrance
|
511
519
|
# @return [ReservationInstance] Updated ReservationInstance
|
512
|
-
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset)
|
520
|
+
def update(reservation_status: :unset, worker_activity_sid: :unset, instruction: :unset, dequeue_post_work_activity_sid: :unset, dequeue_from: :unset, dequeue_record: :unset, dequeue_timeout: :unset, dequeue_to: :unset, dequeue_status_callback_url: :unset, call_from: :unset, call_record: :unset, call_timeout: :unset, call_to: :unset, call_url: :unset, call_status_callback_url: :unset, call_accept: :unset, redirect_call_sid: :unset, redirect_accept: :unset, redirect_url: :unset, to: :unset, from: :unset, status_callback: :unset, status_callback_method: :unset, status_callback_event: :unset, timeout: :unset, record: :unset, muted: :unset, beep: :unset, start_conference_on_enter: :unset, end_conference_on_exit: :unset, wait_url: :unset, wait_method: :unset, early_media: :unset, max_participants: :unset, conference_status_callback: :unset, conference_status_callback_method: :unset, conference_status_callback_event: :unset, conference_record: :unset, conference_trim: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, conference_recording_status_callback: :unset, conference_recording_status_callback_method: :unset, region: :unset, sip_auth_username: :unset, sip_auth_password: :unset, dequeue_status_callback_event: :unset, post_work_activity_sid: :unset, end_conference_on_customer_exit: :unset, beep_on_customer_entrance: :unset)
|
513
521
|
context.update(
|
514
522
|
reservation_status: reservation_status,
|
515
523
|
worker_activity_sid: worker_activity_sid,
|
@@ -560,6 +568,8 @@ module Twilio
|
|
560
568
|
sip_auth_password: sip_auth_password,
|
561
569
|
dequeue_status_callback_event: dequeue_status_callback_event,
|
562
570
|
post_work_activity_sid: post_work_activity_sid,
|
571
|
+
end_conference_on_customer_exit: end_conference_on_customer_exit,
|
572
|
+
beep_on_customer_entrance: beep_on_customer_entrance,
|
563
573
|
)
|
564
574
|
end
|
565
575
|
|
@@ -34,12 +34,21 @@ module Twilio
|
|
34
34
|
# Must be an integer value between 4-10
|
35
35
|
# @param [Boolean] lookup_enabled Boolean value that indicates if a lookup should
|
36
36
|
# be performed with each verification started and associated info returned
|
37
|
+
# @param [Boolean] skip_sms_to_landlines Boolean value that indicates whether or
|
38
|
+
# not to ignore SMS verifications for landlines, depends on lookup_enabled flag
|
39
|
+
# @param [Boolean] dtmf_input_required Boolean value that indicates whether or not
|
40
|
+
# to require a random number input to deliver the verify code via phone calls
|
41
|
+
# @param [String] tts_name Alternative to be used as Service friendly name in
|
42
|
+
# phone calls, only applies to TTS languages
|
37
43
|
# @return [ServiceInstance] Newly created ServiceInstance
|
38
|
-
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset)
|
44
|
+
def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset)
|
39
45
|
data = Twilio::Values.of({
|
40
46
|
'FriendlyName' => friendly_name,
|
41
47
|
'CodeLength' => code_length,
|
42
48
|
'LookupEnabled' => lookup_enabled,
|
49
|
+
'SkipSmsToLandlines' => skip_sms_to_landlines,
|
50
|
+
'DtmfInputRequired' => dtmf_input_required,
|
51
|
+
'TtsName' => tts_name,
|
43
52
|
})
|
44
53
|
|
45
54
|
payload = @version.create(
|
@@ -221,12 +230,21 @@ module Twilio
|
|
221
230
|
# Must be an integer value between 4-10
|
222
231
|
# @param [Boolean] lookup_enabled Boolean value that indicates if a lookup should
|
223
232
|
# be performed with each verification started and associated info returned
|
233
|
+
# @param [Boolean] skip_sms_to_landlines Boolean value that indicates whether or
|
234
|
+
# not to ignore SMS verifications for landlines, depends on lookup_enabled flag
|
235
|
+
# @param [Boolean] dtmf_input_required Boolean value that indicates whether or not
|
236
|
+
# to require a random number input to deliver the verify code via phone calls
|
237
|
+
# @param [String] tts_name Alternative to be used as Service friendly name in
|
238
|
+
# phone calls, only applies to TTS languages
|
224
239
|
# @return [ServiceInstance] Updated ServiceInstance
|
225
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset)
|
240
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset)
|
226
241
|
data = Twilio::Values.of({
|
227
242
|
'FriendlyName' => friendly_name,
|
228
243
|
'CodeLength' => code_length,
|
229
244
|
'LookupEnabled' => lookup_enabled,
|
245
|
+
'SkipSmsToLandlines' => skip_sms_to_landlines,
|
246
|
+
'DtmfInputRequired' => dtmf_input_required,
|
247
|
+
'TtsName' => tts_name,
|
230
248
|
})
|
231
249
|
|
232
250
|
payload = @version.update(
|
@@ -289,6 +307,9 @@ module Twilio
|
|
289
307
|
'friendly_name' => payload['friendly_name'],
|
290
308
|
'code_length' => payload['code_length'].to_i,
|
291
309
|
'lookup_enabled' => payload['lookup_enabled'],
|
310
|
+
'skip_sms_to_landlines' => payload['skip_sms_to_landlines'],
|
311
|
+
'dtmf_input_required' => payload['dtmf_input_required'],
|
312
|
+
'tts_name' => payload['tts_name'],
|
292
313
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
293
314
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
294
315
|
'url' => payload['url'],
|
@@ -341,6 +362,24 @@ module Twilio
|
|
341
362
|
@properties['lookup_enabled']
|
342
363
|
end
|
343
364
|
|
365
|
+
##
|
366
|
+
# @return [Boolean] Indicates whether or not to ignore SMS verifications for landlines
|
367
|
+
def skip_sms_to_landlines
|
368
|
+
@properties['skip_sms_to_landlines']
|
369
|
+
end
|
370
|
+
|
371
|
+
##
|
372
|
+
# @return [Boolean] Indicates whether or not to require a random number input to deliver the verify code via phone calls
|
373
|
+
def dtmf_input_required
|
374
|
+
@properties['dtmf_input_required']
|
375
|
+
end
|
376
|
+
|
377
|
+
##
|
378
|
+
# @return [String] Alternative to be used as Service friendly name in phone calls
|
379
|
+
def tts_name
|
380
|
+
@properties['tts_name']
|
381
|
+
end
|
382
|
+
|
344
383
|
##
|
345
384
|
# @return [Time] The date this Service was created
|
346
385
|
def date_created
|
@@ -387,12 +426,21 @@ module Twilio
|
|
387
426
|
# Must be an integer value between 4-10
|
388
427
|
# @param [Boolean] lookup_enabled Boolean value that indicates if a lookup should
|
389
428
|
# be performed with each verification started and associated info returned
|
429
|
+
# @param [Boolean] skip_sms_to_landlines Boolean value that indicates whether or
|
430
|
+
# not to ignore SMS verifications for landlines, depends on lookup_enabled flag
|
431
|
+
# @param [Boolean] dtmf_input_required Boolean value that indicates whether or not
|
432
|
+
# to require a random number input to deliver the verify code via phone calls
|
433
|
+
# @param [String] tts_name Alternative to be used as Service friendly name in
|
434
|
+
# phone calls, only applies to TTS languages
|
390
435
|
# @return [ServiceInstance] Updated ServiceInstance
|
391
|
-
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset)
|
436
|
+
def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset)
|
392
437
|
context.update(
|
393
438
|
friendly_name: friendly_name,
|
394
439
|
code_length: code_length,
|
395
440
|
lookup_enabled: lookup_enabled,
|
441
|
+
skip_sms_to_landlines: skip_sms_to_landlines,
|
442
|
+
dtmf_input_required: dtmf_input_required,
|
443
|
+
tts_name: tts_name,
|
396
444
|
)
|
397
445
|
end
|
398
446
|
|
@@ -28,15 +28,6 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
-
##
|
32
|
-
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
33
|
-
# uniquely identifies this Composition.
|
34
|
-
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
35
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
36
|
-
def compositions(sid=:unset)
|
37
|
-
self.v1.compositions(sid)
|
38
|
-
end
|
39
|
-
|
40
31
|
##
|
41
32
|
# @param [String] sid `HKxx…xx` A system-generated 34-character string that
|
42
33
|
# uniquely identifies this Composition Hook.
|
@@ -67,6 +58,15 @@ module Twilio
|
|
67
58
|
self.v1.recording_settings()
|
68
59
|
end
|
69
60
|
|
61
|
+
##
|
62
|
+
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
63
|
+
# uniquely identifies this Composition.
|
64
|
+
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
65
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
66
|
+
def compositions(sid=:unset)
|
67
|
+
self.v1.compositions(sid)
|
68
|
+
end
|
69
|
+
|
70
70
|
##
|
71
71
|
# @param [String] sid A system-generated 34-character string that uniquely
|
72
72
|
# identifies this resource.
|