twilio-ruby 5.56.0 → 5.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +24 -7
- data/CHANGES.md +51 -0
- data/Gemfile +1 -0
- data/README.md +2 -2
- data/examples/examples.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +12 -3
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +4 -1
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
- data/lib/twilio-ruby/rest/conversations.rb +6 -0
- data/lib/twilio-ruby/rest/conversations/v1.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
- data/lib/twilio-ruby/rest/conversations/v1/service.rb +23 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +44 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -0
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
- data/lib/twilio-ruby/rest/insights.rb +6 -0
- data/lib/twilio-ruby/rest/insights/v1.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +428 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +19 -1
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -1
- data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +24 -5
- data/lib/twilio-ruby/version.rb +1 -1
- data/sonar-project.properties +13 -0
- metadata +8 -2
@@ -109,11 +109,15 @@ module Twilio
|
|
109
109
|
# Create the BrandRegistrationInstance
|
110
110
|
# @param [String] customer_profile_bundle_sid Customer Profile Bundle Sid.
|
111
111
|
# @param [String] a2p_profile_bundle_sid A2P Messaging Profile Bundle Sid.
|
112
|
+
# @param [String] brand_type Type of brand being created. One of: "STANDARD",
|
113
|
+
# "STARTER". STARTER is for low volume, starter use cases. STANDARD is for all
|
114
|
+
# other use cases.
|
112
115
|
# @return [BrandRegistrationInstance] Created BrandRegistrationInstance
|
113
|
-
def create(customer_profile_bundle_sid: nil, a2p_profile_bundle_sid: nil)
|
116
|
+
def create(customer_profile_bundle_sid: nil, a2p_profile_bundle_sid: nil, brand_type: :unset)
|
114
117
|
data = Twilio::Values.of({
|
115
118
|
'CustomerProfileBundleSid' => customer_profile_bundle_sid,
|
116
119
|
'A2PProfileBundleSid' => a2p_profile_bundle_sid,
|
120
|
+
'BrandType' => brand_type,
|
117
121
|
})
|
118
122
|
|
119
123
|
payload = @version.create('POST', @uri, data: data)
|
@@ -219,10 +223,12 @@ module Twilio
|
|
219
223
|
'a2p_profile_bundle_sid' => payload['a2p_profile_bundle_sid'],
|
220
224
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
221
225
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
226
|
+
'brand_type' => payload['brand_type'],
|
222
227
|
'status' => payload['status'],
|
223
228
|
'tcr_id' => payload['tcr_id'],
|
224
229
|
'failure_reason' => payload['failure_reason'],
|
225
230
|
'url' => payload['url'],
|
231
|
+
'brand_score' => payload['brand_score'] == nil ? payload['brand_score'] : payload['brand_score'].to_i,
|
226
232
|
}
|
227
233
|
|
228
234
|
# Context
|
@@ -277,6 +283,12 @@ module Twilio
|
|
277
283
|
@properties['date_updated']
|
278
284
|
end
|
279
285
|
|
286
|
+
##
|
287
|
+
# @return [String] Type of brand. One of: "STANDARD", "STARTER".
|
288
|
+
def brand_type
|
289
|
+
@properties['brand_type']
|
290
|
+
end
|
291
|
+
|
280
292
|
##
|
281
293
|
# @return [brand_registration.Status] Brand Registration status
|
282
294
|
def status
|
@@ -301,6 +313,12 @@ module Twilio
|
|
301
313
|
@properties['url']
|
302
314
|
end
|
303
315
|
|
316
|
+
##
|
317
|
+
# @return [String] Brand score
|
318
|
+
def brand_score
|
319
|
+
@properties['brand_score']
|
320
|
+
end
|
321
|
+
|
304
322
|
##
|
305
323
|
# Fetch the BrandRegistrationInstance
|
306
324
|
# @return [BrandRegistrationInstance] Fetched BrandRegistrationInstance
|
@@ -282,6 +282,7 @@ module Twilio
|
|
282
282
|
'sid' => payload['sid'],
|
283
283
|
'workspace_sid' => payload['workspace_sid'],
|
284
284
|
'url' => payload['url'],
|
285
|
+
'links' => payload['links'],
|
285
286
|
}
|
286
287
|
|
287
288
|
# Context
|
@@ -348,6 +349,12 @@ module Twilio
|
|
348
349
|
@properties['url']
|
349
350
|
end
|
350
351
|
|
352
|
+
##
|
353
|
+
# @return [String] The links
|
354
|
+
def links
|
355
|
+
@properties['links']
|
356
|
+
end
|
357
|
+
|
351
358
|
##
|
352
359
|
# Fetch the ActivityInstance
|
353
360
|
# @return [ActivityInstance] Fetched ActivityInstance
|
@@ -64,8 +64,9 @@ module Twilio
|
|
64
64
|
# Hash}[https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string]
|
65
65
|
# to be appended at the end of your verification SMS body. Applies only to SMS.
|
66
66
|
# Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
|
67
|
+
# @param [String] template_sid The SID of the custom template to be used.
|
67
68
|
# @return [VerificationInstance] Created VerificationInstance
|
68
|
-
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
|
69
|
+
def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset, template_sid: :unset)
|
69
70
|
data = Twilio::Values.of({
|
70
71
|
'To' => to,
|
71
72
|
'Channel' => channel,
|
@@ -79,6 +80,7 @@ module Twilio
|
|
79
80
|
'RateLimits' => Twilio.serialize_object(rate_limits),
|
80
81
|
'ChannelConfiguration' => Twilio.serialize_object(channel_configuration),
|
81
82
|
'AppHash' => app_hash,
|
83
|
+
'TemplateSid' => template_sid,
|
82
84
|
})
|
83
85
|
|
84
86
|
payload = @version.create('POST', @uri, data: data)
|
@@ -37,13 +37,17 @@ module Twilio
|
|
37
37
|
# @param [String] webhook_url The URL associated with this Webhook.
|
38
38
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
39
39
|
# One of: `enabled` or `disabled`
|
40
|
+
# @param [webhook.Version] version The webhook version. Default value is `v2`
|
41
|
+
# which includes all the latest fields. Version `v1` is legacy and may be removed
|
42
|
+
# in the future.
|
40
43
|
# @return [WebhookInstance] Created WebhookInstance
|
41
|
-
def create(friendly_name: nil, event_types: nil, webhook_url: nil, status: :unset)
|
44
|
+
def create(friendly_name: nil, event_types: nil, webhook_url: nil, status: :unset, version: :unset)
|
42
45
|
data = Twilio::Values.of({
|
43
46
|
'FriendlyName' => friendly_name,
|
44
47
|
'EventTypes' => Twilio.serialize_list(event_types) { |e| e },
|
45
48
|
'WebhookUrl' => webhook_url,
|
46
49
|
'Status' => status,
|
50
|
+
'Version' => version,
|
47
51
|
})
|
48
52
|
|
49
53
|
payload = @version.create('POST', @uri, data: data)
|
@@ -197,13 +201,17 @@ module Twilio
|
|
197
201
|
# @param [String] webhook_url The URL associated with this Webhook.
|
198
202
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
199
203
|
# One of: `enabled` or `disabled`
|
204
|
+
# @param [webhook.Version] version The webhook version. Default value is `v2`
|
205
|
+
# which includes all the latest fields. Version `v1` is legacy and may be removed
|
206
|
+
# in the future.
|
200
207
|
# @return [WebhookInstance] Updated WebhookInstance
|
201
|
-
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset)
|
208
|
+
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset, version: :unset)
|
202
209
|
data = Twilio::Values.of({
|
203
210
|
'FriendlyName' => friendly_name,
|
204
211
|
'EventTypes' => Twilio.serialize_list(event_types) { |e| e },
|
205
212
|
'WebhookUrl' => webhook_url,
|
206
213
|
'Status' => status,
|
214
|
+
'Version' => version,
|
207
215
|
})
|
208
216
|
|
209
217
|
payload = @version.update('POST', @uri, data: data)
|
@@ -264,6 +272,7 @@ module Twilio
|
|
264
272
|
'friendly_name' => payload['friendly_name'],
|
265
273
|
'event_types' => payload['event_types'],
|
266
274
|
'status' => payload['status'],
|
275
|
+
'version' => payload['version'],
|
267
276
|
'webhook_url' => payload['webhook_url'],
|
268
277
|
'webhook_method' => payload['webhook_method'],
|
269
278
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
@@ -323,6 +332,12 @@ module Twilio
|
|
323
332
|
@properties['status']
|
324
333
|
end
|
325
334
|
|
335
|
+
##
|
336
|
+
# @return [webhook.Version] The webhook version
|
337
|
+
def version
|
338
|
+
@properties['version']
|
339
|
+
end
|
340
|
+
|
326
341
|
##
|
327
342
|
# @return [String] The URL associated with this Webhook.
|
328
343
|
def webhook_url
|
@@ -336,13 +351,13 @@ module Twilio
|
|
336
351
|
end
|
337
352
|
|
338
353
|
##
|
339
|
-
# @return [Time] The
|
354
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was created
|
340
355
|
def date_created
|
341
356
|
@properties['date_created']
|
342
357
|
end
|
343
358
|
|
344
359
|
##
|
345
|
-
# @return [Time] The
|
360
|
+
# @return [Time] The ISO 8601 date and time in GMT when the resource was last updated
|
346
361
|
def date_updated
|
347
362
|
@properties['date_updated']
|
348
363
|
end
|
@@ -363,13 +378,17 @@ module Twilio
|
|
363
378
|
# @param [String] webhook_url The URL associated with this Webhook.
|
364
379
|
# @param [webhook.Status] status The webhook status. Default value is `enabled`.
|
365
380
|
# One of: `enabled` or `disabled`
|
381
|
+
# @param [webhook.Version] version The webhook version. Default value is `v2`
|
382
|
+
# which includes all the latest fields. Version `v1` is legacy and may be removed
|
383
|
+
# in the future.
|
366
384
|
# @return [WebhookInstance] Updated WebhookInstance
|
367
|
-
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset)
|
385
|
+
def update(friendly_name: :unset, event_types: :unset, webhook_url: :unset, status: :unset, version: :unset)
|
368
386
|
context.update(
|
369
387
|
friendly_name: friendly_name,
|
370
388
|
event_types: event_types,
|
371
389
|
webhook_url: webhook_url,
|
372
390
|
status: status,
|
391
|
+
version: version,
|
373
392
|
)
|
374
393
|
end
|
375
394
|
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
sonar.projectKey=twilio_twilio-ruby
|
2
|
+
sonar.projectName=twilio-ruby
|
3
|
+
sonar.organization=twilio
|
4
|
+
|
5
|
+
sonar.sources=lib/twilio-ruby
|
6
|
+
# Exclude any auto-generated source code
|
7
|
+
sonar.exclusions=lib/twilio-ruby/rest/**/*
|
8
|
+
sonar.tests=spec/
|
9
|
+
# Exclude any auto-generated integration tests
|
10
|
+
sonar.test.exclusions=spec/integration/**/*.spec.rb
|
11
|
+
|
12
|
+
# For Code Coverage analysis
|
13
|
+
sonar.ruby.coverage.reportPaths=coverage/.resultset.sonarqube.json
|
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.
|
4
|
+
version: 5.58.0
|
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: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -398,6 +398,7 @@ files:
|
|
398
398
|
- lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb
|
399
399
|
- lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb
|
400
400
|
- lib/twilio-ruby/rest/conversations/v1/credential.rb
|
401
|
+
- lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
|
401
402
|
- lib/twilio-ruby/rest/conversations/v1/role.rb
|
402
403
|
- lib/twilio-ruby/rest/conversations/v1/service.rb
|
403
404
|
- lib/twilio-ruby/rest/conversations/v1/service/binding.rb
|
@@ -408,9 +409,12 @@ files:
|
|
408
409
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/message/delivery_receipt.rb
|
409
410
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/participant.rb
|
410
411
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb
|
412
|
+
- lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb
|
411
413
|
- lib/twilio-ruby/rest/conversations/v1/service/role.rb
|
412
414
|
- lib/twilio-ruby/rest/conversations/v1/service/user.rb
|
415
|
+
- lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb
|
413
416
|
- lib/twilio-ruby/rest/conversations/v1/user.rb
|
417
|
+
- lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb
|
414
418
|
- lib/twilio-ruby/rest/events.rb
|
415
419
|
- lib/twilio-ruby/rest/events/v1.rb
|
416
420
|
- lib/twilio-ruby/rest/events/v1/event_type.rb
|
@@ -440,6 +444,7 @@ files:
|
|
440
444
|
- lib/twilio-ruby/rest/insights/v1/call/event.rb
|
441
445
|
- lib/twilio-ruby/rest/insights/v1/call/metric.rb
|
442
446
|
- lib/twilio-ruby/rest/insights/v1/call/summary.rb
|
447
|
+
- lib/twilio-ruby/rest/insights/v1/call_summaries.rb
|
443
448
|
- lib/twilio-ruby/rest/insights/v1/room.rb
|
444
449
|
- lib/twilio-ruby/rest/insights/v1/room/participant.rb
|
445
450
|
- lib/twilio-ruby/rest/ip_messaging.rb
|
@@ -749,6 +754,7 @@ files:
|
|
749
754
|
- lib/twilio-ruby/util.rb
|
750
755
|
- lib/twilio-ruby/util/configuration.rb
|
751
756
|
- lib/twilio-ruby/version.rb
|
757
|
+
- sonar-project.properties
|
752
758
|
- twilio-ruby.gemspec
|
753
759
|
homepage: https://github.com/twilio/twilio-ruby
|
754
760
|
licenses:
|