twilio-ruby 7.2.1 → 7.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +74 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb +5 -599
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb +200 -0
- data/lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb +22 -1
- data/lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb +303 -0
- data/lib/twilio-ruby/rest/assistants/v1/assistant.rb +626 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb +229 -0
- data/lib/twilio-ruby/rest/assistants/v1/knowledge.rb +593 -0
- data/lib/twilio-ruby/rest/assistants/v1/policy.rb +264 -0
- data/lib/twilio-ruby/rest/assistants/v1/session/message.rb +264 -0
- data/lib/twilio-ruby/rest/assistants/v1/session.rb +328 -0
- data/lib/twilio-ruby/rest/assistants/v1/tool.rb +549 -0
- data/lib/twilio-ruby/rest/assistants/v1.rb +100 -0
- data/lib/twilio-ruby/rest/{preview_iam.rb → assistants.rb} +1 -1
- data/lib/twilio-ruby/rest/assistants_base.rb +38 -0
- data/lib/twilio-ruby/rest/client.rb +8 -3
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
- data/lib/twilio-ruby/rest/content/v1/content.rb +167 -4
- data/lib/twilio-ruby/rest/flex_api/v2/flex_user.rb +81 -1
- data/lib/twilio-ruby/rest/iam/v1/api_key.rb +270 -0
- data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +223 -0
- data/lib/twilio-ruby/rest/iam/v1/new_api_key.rb +177 -0
- data/lib/twilio-ruby/rest/iam/v1.rb +61 -0
- data/lib/twilio-ruby/rest/iam.rb +6 -0
- data/lib/twilio-ruby/rest/{preview_iam_base.rb → iam_base.rb} +10 -5
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +60 -12
- data/lib/twilio-ruby/rest/intelligence/v2/operator_type.rb +1 -1
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb +16 -3
- data/lib/twilio-ruby/rest/intelligence/v2.rb +1 -1
- data/lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb +16 -29
- data/lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb +46 -20
- data/lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb +199 -0
- data/lib/twilio-ruby/rest/marketplace/v1.rb +7 -1
- data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +4 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +40 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +10 -10
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb +24 -17
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +7 -7
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb +1 -1
- data/lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb +3 -3
- data/lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb +96 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +2 -2
- data/lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb +277 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +8 -5
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
- data/lib/twilio-ruby/rest/numbers/v2.rb +15 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +2 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb +1 -1
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb +12 -3
- data/lib/twilio-ruby/rest/verify/v2/service.rb +4 -4
- data/lib/twilio-ruby/version.rb +1 -1
- data/twilio-ruby.gemspec +2 -1
- metadata +23 -4
@@ -0,0 +1,277 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Numbers
|
8
|
+
# This is the public Twilio REST API.
|
9
|
+
#
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
+
# https://openapi-generator.tech
|
12
|
+
# Do not edit the class manually.
|
13
|
+
#
|
14
|
+
|
15
|
+
|
16
|
+
module Twilio
|
17
|
+
module REST
|
18
|
+
class Numbers < NumbersBase
|
19
|
+
class V2 < Version
|
20
|
+
class BundleCloneList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the BundleCloneList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [BundleCloneList] BundleCloneList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
# Provide a user friendly representation
|
37
|
+
def to_s
|
38
|
+
'#<Twilio.Numbers.V2.BundleCloneList>'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
class BundleCloneContext < InstanceContext
|
44
|
+
##
|
45
|
+
# Initialize the BundleCloneContext
|
46
|
+
# @param [Version] version Version that contains the resource
|
47
|
+
# @param [String] bundle_sid The unique string that identifies the Bundle to be cloned.
|
48
|
+
# @return [BundleCloneContext] BundleCloneContext
|
49
|
+
def initialize(version, bundle_sid)
|
50
|
+
super(version)
|
51
|
+
|
52
|
+
# Path Solution
|
53
|
+
@solution = { bundle_sid: bundle_sid, }
|
54
|
+
@uri = "/RegulatoryCompliance/Bundles/#{@solution[:bundle_sid]}/Clones"
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
##
|
59
|
+
# Create the BundleCloneInstance
|
60
|
+
# @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
|
61
|
+
# @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
|
62
|
+
# @param [String] friendly_name The string that you assigned to describe the cloned bundle.
|
63
|
+
# @return [BundleCloneInstance] Created BundleCloneInstance
|
64
|
+
def create(
|
65
|
+
target_account_sid: nil,
|
66
|
+
move_to_draft: :unset,
|
67
|
+
friendly_name: :unset
|
68
|
+
)
|
69
|
+
|
70
|
+
data = Twilio::Values.of({
|
71
|
+
'TargetAccountSid' => target_account_sid,
|
72
|
+
'MoveToDraft' => move_to_draft,
|
73
|
+
'FriendlyName' => friendly_name,
|
74
|
+
})
|
75
|
+
|
76
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
77
|
+
|
78
|
+
payload = @version.create('POST', @uri, data: data, headers: headers)
|
79
|
+
BundleCloneInstance.new(
|
80
|
+
@version,
|
81
|
+
payload,
|
82
|
+
bundle_sid: @solution[:bundle_sid],
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
86
|
+
|
87
|
+
##
|
88
|
+
# Provide a user friendly representation
|
89
|
+
def to_s
|
90
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
91
|
+
"#<Twilio.Numbers.V2.BundleCloneContext #{context}>"
|
92
|
+
end
|
93
|
+
|
94
|
+
##
|
95
|
+
# Provide a detailed, user friendly representation
|
96
|
+
def inspect
|
97
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
98
|
+
"#<Twilio.Numbers.V2.BundleCloneContext #{context}>"
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
class BundleClonePage < Page
|
103
|
+
##
|
104
|
+
# Initialize the BundleClonePage
|
105
|
+
# @param [Version] version Version that contains the resource
|
106
|
+
# @param [Response] response Response from the API
|
107
|
+
# @param [Hash] solution Path solution for the resource
|
108
|
+
# @return [BundleClonePage] BundleClonePage
|
109
|
+
def initialize(version, response, solution)
|
110
|
+
super(version, response)
|
111
|
+
|
112
|
+
# Path Solution
|
113
|
+
@solution = solution
|
114
|
+
end
|
115
|
+
|
116
|
+
##
|
117
|
+
# Build an instance of BundleCloneInstance
|
118
|
+
# @param [Hash] payload Payload response from the API
|
119
|
+
# @return [BundleCloneInstance] BundleCloneInstance
|
120
|
+
def get_instance(payload)
|
121
|
+
BundleCloneInstance.new(@version, payload)
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# Provide a user friendly representation
|
126
|
+
def to_s
|
127
|
+
'<Twilio.Numbers.V2.BundleClonePage>'
|
128
|
+
end
|
129
|
+
end
|
130
|
+
class BundleCloneInstance < InstanceResource
|
131
|
+
##
|
132
|
+
# Initialize the BundleCloneInstance
|
133
|
+
# @param [Version] version Version that contains the resource
|
134
|
+
# @param [Hash] payload payload that contains response from Twilio
|
135
|
+
# @param [String] account_sid The SID of the
|
136
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this BundleClone
|
137
|
+
# resource.
|
138
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
139
|
+
# @return [BundleCloneInstance] BundleCloneInstance
|
140
|
+
def initialize(version, payload , bundle_sid: nil)
|
141
|
+
super(version)
|
142
|
+
|
143
|
+
# Marshaled Properties
|
144
|
+
@properties = {
|
145
|
+
'bundle_sid' => payload['bundle_sid'],
|
146
|
+
'account_sid' => payload['account_sid'],
|
147
|
+
'regulation_sid' => payload['regulation_sid'],
|
148
|
+
'friendly_name' => payload['friendly_name'],
|
149
|
+
'status' => payload['status'],
|
150
|
+
'valid_until' => Twilio.deserialize_iso8601_datetime(payload['valid_until']),
|
151
|
+
'email' => payload['email'],
|
152
|
+
'status_callback' => payload['status_callback'],
|
153
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
154
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
155
|
+
'url' => payload['url'],
|
156
|
+
}
|
157
|
+
|
158
|
+
# Context
|
159
|
+
@instance_context = nil
|
160
|
+
@params = { 'bundle_sid' => bundle_sid || @properties['bundle_sid'] , }
|
161
|
+
end
|
162
|
+
|
163
|
+
##
|
164
|
+
# Generate an instance context for the instance, the context is capable of
|
165
|
+
# performing various actions. All instance actions are proxied to the context
|
166
|
+
# @return [BundleCloneContext] CallContext for this CallInstance
|
167
|
+
def context
|
168
|
+
unless @instance_context
|
169
|
+
@instance_context = BundleCloneContext.new(@version , @params['bundle_sid'])
|
170
|
+
end
|
171
|
+
@instance_context
|
172
|
+
end
|
173
|
+
|
174
|
+
##
|
175
|
+
# @return [String] The unique string that we created to identify the Bundle resource.
|
176
|
+
def bundle_sid
|
177
|
+
@properties['bundle_sid']
|
178
|
+
end
|
179
|
+
|
180
|
+
##
|
181
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Bundle resource.
|
182
|
+
def account_sid
|
183
|
+
@properties['account_sid']
|
184
|
+
end
|
185
|
+
|
186
|
+
##
|
187
|
+
# @return [String] The unique string of a regulation that is associated to the Bundle resource.
|
188
|
+
def regulation_sid
|
189
|
+
@properties['regulation_sid']
|
190
|
+
end
|
191
|
+
|
192
|
+
##
|
193
|
+
# @return [String] The string that you assigned to describe the resource.
|
194
|
+
def friendly_name
|
195
|
+
@properties['friendly_name']
|
196
|
+
end
|
197
|
+
|
198
|
+
##
|
199
|
+
# @return [Status]
|
200
|
+
def status
|
201
|
+
@properties['status']
|
202
|
+
end
|
203
|
+
|
204
|
+
##
|
205
|
+
# @return [Time] The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
|
206
|
+
def valid_until
|
207
|
+
@properties['valid_until']
|
208
|
+
end
|
209
|
+
|
210
|
+
##
|
211
|
+
# @return [String] The email address that will receive updates when the Bundle resource changes status.
|
212
|
+
def email
|
213
|
+
@properties['email']
|
214
|
+
end
|
215
|
+
|
216
|
+
##
|
217
|
+
# @return [String] The URL we call to inform your application of status changes.
|
218
|
+
def status_callback
|
219
|
+
@properties['status_callback']
|
220
|
+
end
|
221
|
+
|
222
|
+
##
|
223
|
+
# @return [Time] The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
224
|
+
def date_created
|
225
|
+
@properties['date_created']
|
226
|
+
end
|
227
|
+
|
228
|
+
##
|
229
|
+
# @return [Time] The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
230
|
+
def date_updated
|
231
|
+
@properties['date_updated']
|
232
|
+
end
|
233
|
+
|
234
|
+
##
|
235
|
+
# @return [String] The URL of this resource.
|
236
|
+
def url
|
237
|
+
@properties['url']
|
238
|
+
end
|
239
|
+
|
240
|
+
##
|
241
|
+
# Create the BundleCloneInstance
|
242
|
+
# @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
|
243
|
+
# @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
|
244
|
+
# @param [String] friendly_name The string that you assigned to describe the cloned bundle.
|
245
|
+
# @return [BundleCloneInstance] Created BundleCloneInstance
|
246
|
+
def create(
|
247
|
+
target_account_sid: nil,
|
248
|
+
move_to_draft: :unset,
|
249
|
+
friendly_name: :unset
|
250
|
+
)
|
251
|
+
|
252
|
+
context.create(
|
253
|
+
target_account_sid: target_account_sid,
|
254
|
+
move_to_draft: move_to_draft,
|
255
|
+
friendly_name: friendly_name,
|
256
|
+
)
|
257
|
+
end
|
258
|
+
|
259
|
+
##
|
260
|
+
# Provide a user friendly representation
|
261
|
+
def to_s
|
262
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
263
|
+
"<Twilio.Numbers.V2.BundleCloneInstance #{values}>"
|
264
|
+
end
|
265
|
+
|
266
|
+
##
|
267
|
+
# Provide a detailed, user friendly representation
|
268
|
+
def inspect
|
269
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
270
|
+
"<Twilio.Numbers.V2.BundleCloneInstance #{values}>"
|
271
|
+
end
|
272
|
+
end
|
273
|
+
|
274
|
+
end
|
275
|
+
end
|
276
|
+
end
|
277
|
+
end
|
@@ -40,7 +40,8 @@ module Twilio
|
|
40
40
|
# @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
|
41
41
|
# @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
42
42
|
# @param [EndUserType] end_user_type
|
43
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll
|
43
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
44
|
+
# @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
|
44
45
|
# @return [BundleInstance] Created BundleInstance
|
45
46
|
def create(
|
46
47
|
friendly_name: nil,
|
@@ -49,7 +50,8 @@ module Twilio
|
|
49
50
|
regulation_sid: :unset,
|
50
51
|
iso_country: :unset,
|
51
52
|
end_user_type: :unset,
|
52
|
-
number_type: :unset
|
53
|
+
number_type: :unset,
|
54
|
+
is_test: :unset
|
53
55
|
)
|
54
56
|
|
55
57
|
data = Twilio::Values.of({
|
@@ -60,6 +62,7 @@ module Twilio
|
|
60
62
|
'IsoCountry' => iso_country,
|
61
63
|
'EndUserType' => end_user_type,
|
62
64
|
'NumberType' => number_type,
|
65
|
+
'IsTest' => is_test,
|
63
66
|
})
|
64
67
|
|
65
68
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -80,7 +83,7 @@ module Twilio
|
|
80
83
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
81
84
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
82
85
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
83
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
86
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
84
87
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
85
88
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
86
89
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
@@ -120,7 +123,7 @@ module Twilio
|
|
120
123
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
121
124
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
122
125
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
123
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
126
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
124
127
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
125
128
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
126
129
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
@@ -175,7 +178,7 @@ module Twilio
|
|
175
178
|
# @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
|
176
179
|
# @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
|
177
180
|
# @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
|
178
|
-
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `
|
181
|
+
# @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
|
179
182
|
# @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
|
180
183
|
# @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
|
181
184
|
# @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
|
@@ -283,6 +283,7 @@ module Twilio
|
|
283
283
|
'mime_type' => payload['mime_type'],
|
284
284
|
'status' => payload['status'],
|
285
285
|
'failure_reason' => payload['failure_reason'],
|
286
|
+
'errors' => payload['errors'],
|
286
287
|
'type' => payload['type'],
|
287
288
|
'attributes' => payload['attributes'],
|
288
289
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -342,6 +343,12 @@ module Twilio
|
|
342
343
|
@properties['failure_reason']
|
343
344
|
end
|
344
345
|
|
346
|
+
##
|
347
|
+
# @return [Array<Hash>] A list of errors that occurred during the registering RC Bundle
|
348
|
+
def errors
|
349
|
+
@properties['errors']
|
350
|
+
end
|
351
|
+
|
345
352
|
##
|
346
353
|
# @return [String] The type of the Supporting Document.
|
347
354
|
def type
|
@@ -23,6 +23,7 @@ module Twilio
|
|
23
23
|
@version = 'v2'
|
24
24
|
@authorization_documents = nil
|
25
25
|
@bulk_hosted_number_orders = nil
|
26
|
+
@bundle_clone = nil
|
26
27
|
@hosted_number_orders = nil
|
27
28
|
@regulatory_compliance = nil
|
28
29
|
end
|
@@ -56,6 +57,20 @@ module Twilio
|
|
56
57
|
end
|
57
58
|
end
|
58
59
|
##
|
60
|
+
# @param [String] bundle_sid The unique string that identifies the Bundle to be cloned.
|
61
|
+
# @return [Twilio::REST::Numbers::V2::BundleCloneContext] if bundleSid was passed.
|
62
|
+
# @return [Twilio::REST::Numbers::V2::BundleCloneList]
|
63
|
+
def bundle_clone(bundle_sid=:unset)
|
64
|
+
if bundle_sid.nil?
|
65
|
+
raise ArgumentError, 'bundle_sid cannot be nil'
|
66
|
+
end
|
67
|
+
if bundle_sid == :unset
|
68
|
+
@bundle_clone ||= BundleCloneList.new self
|
69
|
+
else
|
70
|
+
BundleCloneContext.new(self, bundle_sid)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
##
|
59
74
|
# @param [String] sid A 34 character string that uniquely identifies this HostedNumberOrder.
|
60
75
|
# @return [Twilio::REST::Numbers::V2::HostedNumberOrderContext] if sid was passed.
|
61
76
|
# @return [Twilio::REST::Numbers::V2::HostedNumberOrderList]
|
@@ -41,7 +41,7 @@ module Twilio
|
|
41
41
|
# @param [String] attributes A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`.
|
42
42
|
# @param [Time] virtual_start_time The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future.
|
43
43
|
# @param [String] routing_target A SID of a Worker, Queue, or Workflow to route a Task to
|
44
|
-
# @param [String] ignore_capacity A boolean
|
44
|
+
# @param [String] ignore_capacity A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID.
|
45
45
|
# @param [String] task_queue_sid The SID of the TaskQueue in which the Task belongs
|
46
46
|
# @return [TaskInstance] Created TaskInstance
|
47
47
|
def create(
|
@@ -572,7 +572,7 @@ module Twilio
|
|
572
572
|
end
|
573
573
|
|
574
574
|
##
|
575
|
-
# @return [Boolean] A boolean
|
575
|
+
# @return [Boolean] A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID.
|
576
576
|
def ignore_capacity
|
577
577
|
@properties['ignore_capacity']
|
578
578
|
end
|
data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_real_time_statistics.rb
CHANGED
@@ -227,7 +227,7 @@ module Twilio
|
|
227
227
|
end
|
228
228
|
|
229
229
|
##
|
230
|
-
# @return [String] The total number of Workers available
|
230
|
+
# @return [String] The total number of Workers in the TaskQueue with an `available` status. Workers with an `available` status may already have active interactions or may have none.
|
231
231
|
def total_available_workers
|
232
232
|
@properties['total_available_workers']
|
233
233
|
end
|
@@ -34,15 +34,18 @@ module Twilio
|
|
34
34
|
# Create the ComplianceInquiriesInstance
|
35
35
|
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
36
36
|
# @param [String] notification_email The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.
|
37
|
+
# @param [String] theme_set_id Theme id for styling the inquiry form.
|
37
38
|
# @return [ComplianceInquiriesInstance] Created ComplianceInquiriesInstance
|
38
39
|
def create(
|
39
40
|
primary_profile_sid: nil,
|
40
|
-
notification_email: :unset
|
41
|
+
notification_email: :unset,
|
42
|
+
theme_set_id: :unset
|
41
43
|
)
|
42
44
|
|
43
45
|
data = Twilio::Values.of({
|
44
46
|
'PrimaryProfileSid' => primary_profile_sid,
|
45
47
|
'NotificationEmail' => notification_email,
|
48
|
+
'ThemeSetId' => theme_set_id,
|
46
49
|
})
|
47
50
|
|
48
51
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -82,13 +85,16 @@ module Twilio
|
|
82
85
|
##
|
83
86
|
# Update the ComplianceInquiriesInstance
|
84
87
|
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
88
|
+
# @param [String] theme_set_id Theme id for styling the inquiry form.
|
85
89
|
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
|
86
90
|
def update(
|
87
|
-
primary_profile_sid: nil
|
91
|
+
primary_profile_sid: nil,
|
92
|
+
theme_set_id: :unset
|
88
93
|
)
|
89
94
|
|
90
95
|
data = Twilio::Values.of({
|
91
96
|
'PrimaryProfileSid' => primary_profile_sid,
|
97
|
+
'ThemeSetId' => theme_set_id,
|
92
98
|
})
|
93
99
|
|
94
100
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -209,13 +215,16 @@ module Twilio
|
|
209
215
|
##
|
210
216
|
# Update the ComplianceInquiriesInstance
|
211
217
|
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
|
218
|
+
# @param [String] theme_set_id Theme id for styling the inquiry form.
|
212
219
|
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
|
213
220
|
def update(
|
214
|
-
primary_profile_sid: nil
|
221
|
+
primary_profile_sid: nil,
|
222
|
+
theme_set_id: :unset
|
215
223
|
)
|
216
224
|
|
217
225
|
context.update(
|
218
226
|
primary_profile_sid: primary_profile_sid,
|
227
|
+
theme_set_id: theme_set_id,
|
219
228
|
)
|
220
229
|
end
|
221
230
|
|
@@ -40,7 +40,7 @@ module Twilio
|
|
40
40
|
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
41
41
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
42
42
|
# @param [Boolean] do_not_share_warning_enabled Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS. Example SMS body: `Your AppName verification code is: 1234. Don’t share this code with anyone; our employees will never ask for the code`
|
43
|
-
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
43
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
44
44
|
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter. This timestamp value is the same one as the one found in `date_created`, please use that one instead.
|
45
45
|
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
46
46
|
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
@@ -259,7 +259,7 @@ module Twilio
|
|
259
259
|
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
260
260
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
261
261
|
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.**
|
262
|
-
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
262
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
263
263
|
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter.
|
264
264
|
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
265
265
|
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
@@ -611,7 +611,7 @@ module Twilio
|
|
611
611
|
end
|
612
612
|
|
613
613
|
##
|
614
|
-
# @return [Boolean] Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
614
|
+
# @return [Boolean] Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
615
615
|
def custom_code_enabled
|
616
616
|
@properties['custom_code_enabled']
|
617
617
|
end
|
@@ -696,7 +696,7 @@ module Twilio
|
|
696
696
|
# @param [String] tts_name The name of an alternative text-to-speech service to use in phone calls. Applies only to TTS languages.
|
697
697
|
# @param [Boolean] psd2_enabled Whether to pass PSD2 transaction parameters when starting a verification.
|
698
698
|
# @param [Boolean] do_not_share_warning_enabled Whether to add a privacy warning at the end of an SMS. **Disabled by default and applies only for SMS.**
|
699
|
-
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
699
|
+
# @param [Boolean] custom_code_enabled Whether to allow sending verifications with a custom code instead of a randomly generated one.
|
700
700
|
# @param [Boolean] push_include_date Optional configuration for the Push factors. If true, include the date in the Challenge's response. Otherwise, the date is omitted from the response. See [Challenge](https://www.twilio.com/docs/verify/api/challenge) resource’s details parameter for more info. Default: false. **Deprecated** do not use this parameter.
|
701
701
|
# @param [String] push_apn_credential_sid Optional configuration for the Push factors. Set the APN Credential for this service. This will allow to send push notifications to iOS devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
702
702
|
# @param [String] push_fcm_credential_sid Optional configuration for the Push factors. Set the FCM Credential for this service. This will allow to send push notifications to Android devices. See [Credential Resource](https://www.twilio.com/docs/notify/api/credential-resource)
|
data/lib/twilio-ruby/version.rb
CHANGED
data/twilio-ruby.gemspec
CHANGED
@@ -14,7 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
'building TwiML, and generating Twilio JWT Capability Tokens'
|
15
15
|
spec.homepage = 'https://github.com/twilio/twilio-ruby'
|
16
16
|
spec.license = 'MIT'
|
17
|
-
spec.metadata = { '
|
17
|
+
spec.metadata = { 'documentation_uri' => 'https://www.twilio.com/docs/libraries/reference/twilio-ruby/',
|
18
|
+
'yard.run' => 'yri' } # use "yard" to build full HTML docs
|
18
19
|
|
19
20
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match?(%r{^(spec)/}) }
|
20
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
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: 7.
|
4
|
+
version: 7.3.1
|
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: 2024-
|
11
|
+
date: 2024-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -301,6 +301,7 @@ files:
|
|
301
301
|
- lib/twilio-ruby/rest/api/v2010/account/recording.rb
|
302
302
|
- lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result.rb
|
303
303
|
- lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload.rb
|
304
|
+
- lib/twilio-ruby/rest/api/v2010/account/recording/add_on_result/payload/data.rb
|
304
305
|
- lib/twilio-ruby/rest/api/v2010/account/recording/transcription.rb
|
305
306
|
- lib/twilio-ruby/rest/api/v2010/account/short_code.rb
|
306
307
|
- lib/twilio-ruby/rest/api/v2010/account/signing_key.rb
|
@@ -333,6 +334,17 @@ files:
|
|
333
334
|
- lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb
|
334
335
|
- lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
|
335
336
|
- lib/twilio-ruby/rest/api_base.rb
|
337
|
+
- lib/twilio-ruby/rest/assistants.rb
|
338
|
+
- lib/twilio-ruby/rest/assistants/v1.rb
|
339
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant.rb
|
340
|
+
- lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
|
341
|
+
- lib/twilio-ruby/rest/assistants/v1/knowledge.rb
|
342
|
+
- lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb
|
343
|
+
- lib/twilio-ruby/rest/assistants/v1/policy.rb
|
344
|
+
- lib/twilio-ruby/rest/assistants/v1/session.rb
|
345
|
+
- lib/twilio-ruby/rest/assistants/v1/session/message.rb
|
346
|
+
- lib/twilio-ruby/rest/assistants/v1/tool.rb
|
347
|
+
- lib/twilio-ruby/rest/assistants_base.rb
|
336
348
|
- lib/twilio-ruby/rest/bulkexports.rb
|
337
349
|
- lib/twilio-ruby/rest/bulkexports/v1.rb
|
338
350
|
- lib/twilio-ruby/rest/bulkexports/v1/export.rb
|
@@ -459,6 +471,12 @@ files:
|
|
459
471
|
- lib/twilio-ruby/rest/frontline_api/v1.rb
|
460
472
|
- lib/twilio-ruby/rest/frontline_api/v1/user.rb
|
461
473
|
- lib/twilio-ruby/rest/frontline_api_base.rb
|
474
|
+
- lib/twilio-ruby/rest/iam.rb
|
475
|
+
- lib/twilio-ruby/rest/iam/v1.rb
|
476
|
+
- lib/twilio-ruby/rest/iam/v1/api_key.rb
|
477
|
+
- lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
|
478
|
+
- lib/twilio-ruby/rest/iam/v1/new_api_key.rb
|
479
|
+
- lib/twilio-ruby/rest/iam_base.rb
|
462
480
|
- lib/twilio-ruby/rest/insights.rb
|
463
481
|
- lib/twilio-ruby/rest/insights/v1.rb
|
464
482
|
- lib/twilio-ruby/rest/insights/v1/call.rb
|
@@ -526,6 +544,7 @@ files:
|
|
526
544
|
- lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb
|
527
545
|
- lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb
|
528
546
|
- lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb
|
547
|
+
- lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb
|
529
548
|
- lib/twilio-ruby/rest/marketplace_base.rb
|
530
549
|
- lib/twilio-ruby/rest/messaging.rb
|
531
550
|
- lib/twilio-ruby/rest/messaging/v1.rb
|
@@ -586,6 +605,7 @@ files:
|
|
586
605
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
587
606
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|
588
607
|
- lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb
|
608
|
+
- lib/twilio-ruby/rest/numbers/v2/bundle_clone.rb
|
589
609
|
- lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb
|
590
610
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
591
611
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
@@ -636,8 +656,6 @@ files:
|
|
636
656
|
- lib/twilio-ruby/rest/preview/wireless/sim.rb
|
637
657
|
- lib/twilio-ruby/rest/preview/wireless/sim/usage.rb
|
638
658
|
- lib/twilio-ruby/rest/preview_base.rb
|
639
|
-
- lib/twilio-ruby/rest/preview_iam.rb
|
640
|
-
- lib/twilio-ruby/rest/preview_iam_base.rb
|
641
659
|
- lib/twilio-ruby/rest/pricing.rb
|
642
660
|
- lib/twilio-ruby/rest/pricing/v1.rb
|
643
661
|
- lib/twilio-ruby/rest/pricing/v1/messaging.rb
|
@@ -866,6 +884,7 @@ homepage: https://github.com/twilio/twilio-ruby
|
|
866
884
|
licenses:
|
867
885
|
- MIT
|
868
886
|
metadata:
|
887
|
+
documentation_uri: https://www.twilio.com/docs/libraries/reference/twilio-ruby/
|
869
888
|
yard.run: yri
|
870
889
|
post_install_message:
|
871
890
|
rdoc_options:
|