twilio-ruby 5.58.0 → 5.59.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +90 -0
  4. data/README.md +3 -3
  5. data/lib/twilio-ruby/http/http_client.rb +1 -1
  6. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
  7. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
  8. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +4 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +4 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +4 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +10 -10
  12. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
  13. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
  14. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
  15. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  16. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +44 -38
  17. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +43 -1
  18. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +9 -2
  19. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +6 -2
  20. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
  21. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
  22. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
  23. data/lib/twilio-ruby/rest/pricing/v2/country.rb +280 -0
  24. data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
  25. data/lib/twilio-ruby/rest/pricing/v2.rb +37 -0
  26. data/lib/twilio-ruby/rest/pricing.rb +19 -0
  27. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  28. data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
  29. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
  30. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
  31. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
  32. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +30 -20
  33. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
  34. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +6 -2
  35. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +36 -11
  36. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +11 -9
  37. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +8 -8
  38. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
  39. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +8 -8
  40. data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
  41. data/lib/twilio-ruby/rest/verify/v2.rb +7 -0
  42. data/lib/twilio-ruby/rest/verify.rb +6 -0
  43. data/lib/twilio-ruby/version.rb +1 -1
  44. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90245670a85b148807ee4a2be28da950b65530413eef56cf403e16708222a5d4
4
- data.tar.gz: e279a65d127e4b629c904a9de0081c03effd7fa76ec73aa945bb52a8f4d32806
3
+ metadata.gz: 416d1c29fdeda590addf0bc8929befb23540a3cf775993f2ab89ed27b340dae3
4
+ data.tar.gz: e779a8b50ef32067bdc24360a332e7a55e321012676504073901fcd44fd16ebb
5
5
  SHA512:
6
- metadata.gz: f4cf12efd6b9c6b1a8dd4d3239c369e1592cb920e1c2c68451e5e835dcb43a1aa2d914b2fc6eaadd4daa65c09c980278d2fa6fd09723db8ecede21023bc38108
7
- data.tar.gz: f92a04a5901154ccdb52b8a79dce167019b61177e90cc050774a2f1bfcb6a3b466b73fe92639363bdc43a697845423fd9d4d00e9ff1cad9fe34c9ae27329c831
6
+ metadata.gz: d3a8c48365975f47830c676157d8b6ef8c8140727816f84c670985d604e5528562f4300ccbdf4b07c76191e2c14ceea3cce9707b5812c1904df10bea2d5a0c7e
7
+ data.tar.gz: b58105471c3e9affa6df43a40047c6fa698e1121b2a568883ac2e4c038d1c21ce715b8c51a00ba013eb7c2a90249784308706e2266f49d07fef7186a664325f4
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ dist: focal
2
3
  cache: bundler
3
4
  bundler_args: "--without development"
4
5
  rvm:
data/CHANGES.md CHANGED
@@ -1,6 +1,96 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2021-10-06] Version 5.59.0
5
+ ---------------------------
6
+ **Library - Fix**
7
+ - [PR #571](https://github.com/twilio/twilio-ruby/pull/571): fix travis build for ruby 3.0. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
8
+
9
+ **Api**
10
+ - Add `emergency_address_status` attribute to `/IncomingPhoneNumbers` response.
11
+ - Add `siprec` resource
12
+
13
+ **Conversations**
14
+ - Added attachment parameters in configuration for `NewMessage` type of push notifications
15
+
16
+ **Flex**
17
+ - Adding `flex_insights_hr` object to Flex Configuration
18
+
19
+ **Numbers**
20
+ - Add API endpoint for Bundle ReplaceItems resource
21
+ - Add API endpoint for Bundle Copies resource
22
+
23
+ **Serverless**
24
+ - Add domain_base field to Service response
25
+
26
+ **Taskrouter**
27
+ - Add `If-Match` Header based on ETag for Worker Delete **(breaking change)**
28
+ - Add `If-Match` Header based on Etag for Reservation Update
29
+ - Add `If-Match` Header based on ETag for Worker Update
30
+ - Add `If-Match` Header based on ETag for Worker Delete
31
+ - Add `ETag` as Response Header to Worker
32
+
33
+ **Trunking**
34
+ - Added `transfer_caller_id` property on Trunks.
35
+
36
+ **Verify**
37
+ - Document new pilot `whatsapp` channel.
38
+
39
+
40
+ [2021-09-22] Version 5.58.3
41
+ ---------------------------
42
+ **Events**
43
+ - Add segment sink
44
+
45
+ **Messaging**
46
+ - Add post_approval_required attribute in GET us_app_to_person_usecase api response
47
+ - Add Identity Status, Russell 3000, Tax Exempt Status and Should Skip SecVet fields for Brand Registrations
48
+ - Add Should Skip Secondary Vetting optional flag parameter to create Brand API
49
+
50
+
51
+ [2021-09-08] Version 5.58.2
52
+ ---------------------------
53
+ **Library - Fix**
54
+ - [PR #568](https://github.com/twilio/twilio-ruby/pull/568): deprecation warning on Faraday. Thanks to [@ngouy](https://github.com/ngouy)!
55
+
56
+ **Api**
57
+ - Revert adding `siprec` resource
58
+ - Add `siprec` resource
59
+
60
+ **Messaging**
61
+ - Add 'mock' as an optional field to brand_registration api
62
+ - Add 'mock' as an optional field to us_app_to_person api
63
+ - Adds more Use Cases in us_app_to_person_usecase api transaction and updates us_app_to_person_usecase docs
64
+
65
+ **Verify**
66
+ - Verify List Templates API endpoint added.
67
+
68
+
69
+ [2021-08-25] Version 5.58.1
70
+ ---------------------------
71
+ **Api**
72
+ - Add Programmabled Voice SIP Refer call transfers (`calls-transfers`) to usage records
73
+ - Add Flex Voice Usage category (`flex-usage`) to usage records
74
+
75
+ **Conversations**
76
+ - Add `Order` query parameter to Message resource read operation
77
+
78
+ **Insights**
79
+ - Added `partial` to enum processing_state_request
80
+ - Added abnormal session filter in Call Summaries
81
+
82
+ **Messaging**
83
+ - Add brand_registration_sid as an optional query param for us_app_to_person_usecase api
84
+
85
+ **Pricing**
86
+ - add trunking_numbers resource (v2)
87
+ - add trunking_country resource (v2)
88
+
89
+ **Verify**
90
+ - Changed to private beta the `TemplateSid` optional parameter on Verification creation.
91
+ - Added the optional parameter `Order` to the list Challenges endpoint to define the list order.
92
+
93
+
4
94
  [2021-08-11] Version 5.58.0
5
95
  ---------------------------
6
96
  **Library - Chore**
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # twilio-ruby
2
2
 
3
- [![Build Status](https://img.shields.io/travis/com/twilio/twilio-ruby.svg)][travis]
3
+ [![Build Status](https://app.travis-ci.com/twilio/twilio-ruby.svg?branch=main)][travis]
4
4
  [![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
5
5
  [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
6
6
 
@@ -35,13 +35,13 @@ This library supports the following Ruby implementations:
35
35
  To install using [Bundler][bundler] grab the latest stable version:
36
36
 
37
37
  ```ruby
38
- gem 'twilio-ruby', '~> 5.58.0'
38
+ gem 'twilio-ruby', '~> 5.59.0'
39
39
  ```
40
40
 
41
41
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
42
42
 
43
43
  ```bash
44
- gem install twilio-ruby -v 5.58.0
44
+ gem install twilio-ruby -v 5.59.0
45
45
  ```
46
46
 
47
47
  To build and install the development branch yourself from the latest source:
@@ -31,7 +31,7 @@ module Twilio
31
31
  f.options.params_encoder = Faraday::FlatParamsEncoder
32
32
  f.request :url_encoded
33
33
  f.headers = request.headers
34
- f.basic_auth(request.auth[0], request.auth[1])
34
+ f.request(:basic_auth, request.auth[0], request.auth[1])
35
35
  f.proxy = "#{@proxy_prot}://#{@proxy_auth}#{@proxy_path}" if @proxy_prot && @proxy_path
36
36
  f.options.open_timeout = request.timeout || @timeout
37
37
  f.options.timeout = request.timeout || @timeout