twilio-ruby 5.73.0 → 5.73.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +32 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb +160 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb +251 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +59 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +10 -1
- data/lib/twilio-ruby/rest/flex_api/v1/good_data.rb +183 -0
- data/lib/twilio-ruby/rest/flex_api/v1/user_roles.rb +166 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api.rb +12 -0
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +71 -1
- data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +1 -14
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +4 -45
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +18 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +9 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +9 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +2 -2
- data/lib/twilio-ruby/rest/verify/v2/template.rb +1 -1
- data/lib/twilio-ruby/twiml/voice_response.rb +4 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -2
@@ -35,6 +35,7 @@ module Twilio
|
|
35
35
|
# @param [reservation.Status] reservation_status Returns the list of reservations
|
36
36
|
# for a task with a specified ReservationStatus. Can be: `pending`, `accepted`,
|
37
37
|
# `rejected`, or `timeout`.
|
38
|
+
# @param [String] worker_sid The SID of the reserved Worker resource to read.
|
38
39
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
39
40
|
# guarantees to never return more than limit. Default is no limit
|
40
41
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -42,8 +43,13 @@ module Twilio
|
|
42
43
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
43
44
|
# efficient page size, i.e. min(limit, 1000)
|
44
45
|
# @return [Array] Array of up to limit results
|
45
|
-
def list(reservation_status: :unset, limit: nil, page_size: nil)
|
46
|
-
self.stream(
|
46
|
+
def list(reservation_status: :unset, worker_sid: :unset, limit: nil, page_size: nil)
|
47
|
+
self.stream(
|
48
|
+
reservation_status: reservation_status,
|
49
|
+
worker_sid: worker_sid,
|
50
|
+
limit: limit,
|
51
|
+
page_size: page_size
|
52
|
+
).entries
|
47
53
|
end
|
48
54
|
|
49
55
|
##
|
@@ -53,6 +59,7 @@ module Twilio
|
|
53
59
|
# @param [reservation.Status] reservation_status Returns the list of reservations
|
54
60
|
# for a task with a specified ReservationStatus. Can be: `pending`, `accepted`,
|
55
61
|
# `rejected`, or `timeout`.
|
62
|
+
# @param [String] worker_sid The SID of the reserved Worker resource to read.
|
56
63
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
57
64
|
# guarantees to never return more than limit. Default is no limit.
|
58
65
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -60,10 +67,14 @@ module Twilio
|
|
60
67
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
61
68
|
# efficient page size, i.e. min(limit, 1000)
|
62
69
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
63
|
-
def stream(reservation_status: :unset, limit: nil, page_size: nil)
|
70
|
+
def stream(reservation_status: :unset, worker_sid: :unset, limit: nil, page_size: nil)
|
64
71
|
limits = @version.read_limits(limit, page_size)
|
65
72
|
|
66
|
-
page = self.page(
|
73
|
+
page = self.page(
|
74
|
+
reservation_status: reservation_status,
|
75
|
+
worker_sid: worker_sid,
|
76
|
+
page_size: limits[:page_size],
|
77
|
+
)
|
67
78
|
|
68
79
|
@version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
|
69
80
|
end
|
@@ -88,13 +99,15 @@ module Twilio
|
|
88
99
|
# @param [reservation.Status] reservation_status Returns the list of reservations
|
89
100
|
# for a task with a specified ReservationStatus. Can be: `pending`, `accepted`,
|
90
101
|
# `rejected`, or `timeout`.
|
102
|
+
# @param [String] worker_sid The SID of the reserved Worker resource to read.
|
91
103
|
# @param [String] page_token PageToken provided by the API
|
92
104
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
93
105
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
94
106
|
# @return [Page] Page of ReservationInstance
|
95
|
-
def page(reservation_status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
107
|
+
def page(reservation_status: :unset, worker_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
96
108
|
params = Twilio::Values.of({
|
97
109
|
'ReservationStatus' => reservation_status,
|
110
|
+
'WorkerSid' => worker_sid,
|
98
111
|
'PageToken' => page_token,
|
99
112
|
'Page' => page_number,
|
100
113
|
'PageSize' => page_size,
|
@@ -40,6 +40,7 @@ module Twilio
|
|
40
40
|
# this parameter.
|
41
41
|
# @param [String] worker_sid The SID of the Worker with the TaskQueue resources to
|
42
42
|
# read.
|
43
|
+
# @param [String] ordering Sorting parameter for TaskQueues
|
43
44
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
44
45
|
# guarantees to never return more than limit. Default is no limit
|
45
46
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -47,11 +48,12 @@ module Twilio
|
|
47
48
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
48
49
|
# efficient page size, i.e. min(limit, 1000)
|
49
50
|
# @return [Array] Array of up to limit results
|
50
|
-
def list(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, limit: nil, page_size: nil)
|
51
|
+
def list(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, ordering: :unset, limit: nil, page_size: nil)
|
51
52
|
self.stream(
|
52
53
|
friendly_name: friendly_name,
|
53
54
|
evaluate_worker_attributes: evaluate_worker_attributes,
|
54
55
|
worker_sid: worker_sid,
|
56
|
+
ordering: ordering,
|
55
57
|
limit: limit,
|
56
58
|
page_size: page_size
|
57
59
|
).entries
|
@@ -68,6 +70,7 @@ module Twilio
|
|
68
70
|
# this parameter.
|
69
71
|
# @param [String] worker_sid The SID of the Worker with the TaskQueue resources to
|
70
72
|
# read.
|
73
|
+
# @param [String] ordering Sorting parameter for TaskQueues
|
71
74
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
72
75
|
# guarantees to never return more than limit. Default is no limit.
|
73
76
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -75,13 +78,14 @@ module Twilio
|
|
75
78
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
76
79
|
# efficient page size, i.e. min(limit, 1000)
|
77
80
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
78
|
-
def stream(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, limit: nil, page_size: nil)
|
81
|
+
def stream(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, ordering: :unset, limit: nil, page_size: nil)
|
79
82
|
limits = @version.read_limits(limit, page_size)
|
80
83
|
|
81
84
|
page = self.page(
|
82
85
|
friendly_name: friendly_name,
|
83
86
|
evaluate_worker_attributes: evaluate_worker_attributes,
|
84
87
|
worker_sid: worker_sid,
|
88
|
+
ordering: ordering,
|
85
89
|
page_size: limits[:page_size],
|
86
90
|
)
|
87
91
|
|
@@ -112,15 +116,17 @@ module Twilio
|
|
112
116
|
# this parameter.
|
113
117
|
# @param [String] worker_sid The SID of the Worker with the TaskQueue resources to
|
114
118
|
# read.
|
119
|
+
# @param [String] ordering Sorting parameter for TaskQueues
|
115
120
|
# @param [String] page_token PageToken provided by the API
|
116
121
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
117
122
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
118
123
|
# @return [Page] Page of TaskQueueInstance
|
119
|
-
def page(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
124
|
+
def page(friendly_name: :unset, evaluate_worker_attributes: :unset, worker_sid: :unset, ordering: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
120
125
|
params = Twilio::Values.of({
|
121
126
|
'FriendlyName' => friendly_name,
|
122
127
|
'EvaluateWorkerAttributes' => evaluate_worker_attributes,
|
123
128
|
'WorkerSid' => worker_sid,
|
129
|
+
'Ordering' => ordering,
|
124
130
|
'PageToken' => page_token,
|
125
131
|
'Page' => page_number,
|
126
132
|
'PageSize' => page_size,
|
@@ -48,6 +48,7 @@ module Twilio
|
|
48
48
|
# Workers to read are eligible for.
|
49
49
|
# @param [String] task_queue_sid The SID of the TaskQueue that the Workers to read
|
50
50
|
# are eligible for.
|
51
|
+
# @param [String] ordering Sorting parameter for Workers
|
51
52
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
52
53
|
# guarantees to never return more than limit. Default is no limit
|
53
54
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -55,7 +56,7 @@ module Twilio
|
|
55
56
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
56
57
|
# efficient page size, i.e. min(limit, 1000)
|
57
58
|
# @return [Array] Array of up to limit results
|
58
|
-
def list(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, limit: nil, page_size: nil)
|
59
|
+
def list(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, ordering: :unset, limit: nil, page_size: nil)
|
59
60
|
self.stream(
|
60
61
|
activity_name: activity_name,
|
61
62
|
activity_sid: activity_sid,
|
@@ -64,6 +65,7 @@ module Twilio
|
|
64
65
|
target_workers_expression: target_workers_expression,
|
65
66
|
task_queue_name: task_queue_name,
|
66
67
|
task_queue_sid: task_queue_sid,
|
68
|
+
ordering: ordering,
|
67
69
|
limit: limit,
|
68
70
|
page_size: page_size
|
69
71
|
).entries
|
@@ -89,6 +91,7 @@ module Twilio
|
|
89
91
|
# Workers to read are eligible for.
|
90
92
|
# @param [String] task_queue_sid The SID of the TaskQueue that the Workers to read
|
91
93
|
# are eligible for.
|
94
|
+
# @param [String] ordering Sorting parameter for Workers
|
92
95
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
93
96
|
# guarantees to never return more than limit. Default is no limit.
|
94
97
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -96,7 +99,7 @@ module Twilio
|
|
96
99
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
97
100
|
# efficient page size, i.e. min(limit, 1000)
|
98
101
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
99
|
-
def stream(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, limit: nil, page_size: nil)
|
102
|
+
def stream(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, ordering: :unset, limit: nil, page_size: nil)
|
100
103
|
limits = @version.read_limits(limit, page_size)
|
101
104
|
|
102
105
|
page = self.page(
|
@@ -107,6 +110,7 @@ module Twilio
|
|
107
110
|
target_workers_expression: target_workers_expression,
|
108
111
|
task_queue_name: task_queue_name,
|
109
112
|
task_queue_sid: task_queue_sid,
|
113
|
+
ordering: ordering,
|
110
114
|
page_size: limits[:page_size],
|
111
115
|
)
|
112
116
|
|
@@ -146,11 +150,12 @@ module Twilio
|
|
146
150
|
# Workers to read are eligible for.
|
147
151
|
# @param [String] task_queue_sid The SID of the TaskQueue that the Workers to read
|
148
152
|
# are eligible for.
|
153
|
+
# @param [String] ordering Sorting parameter for Workers
|
149
154
|
# @param [String] page_token PageToken provided by the API
|
150
155
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
151
156
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
152
157
|
# @return [Page] Page of WorkerInstance
|
153
|
-
def page(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
158
|
+
def page(activity_name: :unset, activity_sid: :unset, available: :unset, friendly_name: :unset, target_workers_expression: :unset, task_queue_name: :unset, task_queue_sid: :unset, ordering: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
154
159
|
params = Twilio::Values.of({
|
155
160
|
'ActivityName' => activity_name,
|
156
161
|
'ActivitySid' => activity_sid,
|
@@ -159,6 +164,7 @@ module Twilio
|
|
159
164
|
'TargetWorkersExpression' => target_workers_expression,
|
160
165
|
'TaskQueueName' => task_queue_name,
|
161
166
|
'TaskQueueSid' => task_queue_sid,
|
167
|
+
'Ordering' => ordering,
|
162
168
|
'PageToken' => page_token,
|
163
169
|
'Page' => page_number,
|
164
170
|
'PageSize' => page_size,
|
@@ -46,7 +46,7 @@ module Twilio
|
|
46
46
|
# @param [String] locale Locale will automatically resolve based on phone number
|
47
47
|
# country code for SMS, WhatsApp and call channel verifications. This parameter
|
48
48
|
# will override the automatic locale. {See supported languages and more
|
49
|
-
# information here
|
49
|
+
# information here}[https://www.twilio.com/docs/verify/supported-languages].
|
50
50
|
# @param [String] custom_code A pre-generated code to use for verification. The
|
51
51
|
# code can be between 4 and 10 characters, inclusive.
|
52
52
|
# @param [String] amount The amount of the associated PSD2 compliant transaction.
|
@@ -68,7 +68,7 @@ module Twilio
|
|
68
68
|
# Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
69
69
|
# @param [String] template_sid The message
|
70
70
|
# {template}[https://www.twilio.com/docs/verify/api/templates]. If provided, will
|
71
|
-
# override the default template for the Service. SMS
|
71
|
+
# override the default template for the Service. SMS and Voice channels only.
|
72
72
|
# @param [String] template_custom_substitutions A stringified JSON object in which
|
73
73
|
# the keys are the template's special variables and the values are the variables
|
74
74
|
# substitutions.
|
@@ -1775,6 +1775,8 @@ module Twilio
|
|
1775
1775
|
# inbound_autocreation:: Inbound autocreation
|
1776
1776
|
# routing_assignment_timeout:: Routing assignment timeout
|
1777
1777
|
# inbound_timeout:: Inbound timeout
|
1778
|
+
# url:: TwiML URL
|
1779
|
+
# method:: TwiML URL method
|
1778
1780
|
# record:: Record
|
1779
1781
|
# trim:: Trim
|
1780
1782
|
# recording_status_callback:: Recording status callback URL
|
@@ -1784,8 +1786,8 @@ module Twilio
|
|
1784
1786
|
# status_callback_method:: Status callback URL method
|
1785
1787
|
# status_callback_event:: Events to call status callback URL
|
1786
1788
|
# keyword_args:: additional attributes
|
1787
|
-
def conversation(service_instance_sid: nil, inbound_autocreation: nil, routing_assignment_timeout: nil, inbound_timeout: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, status_callback: nil, status_callback_method: nil, status_callback_event: nil, **keyword_args)
|
1788
|
-
append(Conversation.new(service_instance_sid: service_instance_sid, inbound_autocreation: inbound_autocreation, routing_assignment_timeout: routing_assignment_timeout, inbound_timeout: inbound_timeout, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, status_callback_event: status_callback_event, **keyword_args))
|
1789
|
+
def conversation(service_instance_sid: nil, inbound_autocreation: nil, routing_assignment_timeout: nil, inbound_timeout: nil, url: nil, method: nil, record: nil, trim: nil, recording_status_callback: nil, recording_status_callback_method: nil, recording_status_callback_event: nil, status_callback: nil, status_callback_method: nil, status_callback_event: nil, **keyword_args)
|
1790
|
+
append(Conversation.new(service_instance_sid: service_instance_sid, inbound_autocreation: inbound_autocreation, routing_assignment_timeout: routing_assignment_timeout, inbound_timeout: inbound_timeout, url: url, method: method, record: record, trim: trim, recording_status_callback: recording_status_callback, recording_status_callback_method: recording_status_callback_method, recording_status_callback_event: recording_status_callback_event, status_callback: status_callback, status_callback_method: status_callback_method, status_callback_event: status_callback_event, **keyword_args))
|
1789
1791
|
end
|
1790
1792
|
end
|
1791
1793
|
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.73.
|
4
|
+
version: 5.73.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -274,6 +274,8 @@ files:
|
|
274
274
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
275
275
|
- lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb
|
276
276
|
- lib/twilio-ruby/rest/api/v2010/account/call/stream.rb
|
277
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb
|
278
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message_subscription.rb
|
277
279
|
- lib/twilio-ruby/rest/api/v2010/account/conference.rb
|
278
280
|
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
|
279
281
|
- lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb
|
@@ -423,10 +425,12 @@ files:
|
|
423
425
|
- lib/twilio-ruby/rest/flex_api/v1/channel.rb
|
424
426
|
- lib/twilio-ruby/rest/flex_api/v1/configuration.rb
|
425
427
|
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
|
428
|
+
- lib/twilio-ruby/rest/flex_api/v1/good_data.rb
|
426
429
|
- lib/twilio-ruby/rest/flex_api/v1/interaction.rb
|
427
430
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
|
428
431
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
|
429
432
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
|
433
|
+
- lib/twilio-ruby/rest/flex_api/v1/user_roles.rb
|
430
434
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
431
435
|
- lib/twilio-ruby/rest/frontline_api.rb
|
432
436
|
- lib/twilio-ruby/rest/frontline_api/v1.rb
|