twilio-ruby 5.58.1 → 5.60.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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGES.md +83 -0
  4. data/README.md +3 -3
  5. data/lib/twilio-ruby/http/http_client.rb +1 -1
  6. data/lib/twilio-ruby/jwt/access_token.rb +13 -0
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
  9. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
  13. data/lib/twilio-ruby/rest/client.rb +7 -0
  14. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
  15. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  16. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +35 -35
  17. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
  18. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
  19. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
  20. data/lib/twilio-ruby/rest/media/v1.rb +60 -0
  21. data/lib/twilio-ruby/rest/media.rb +56 -0
  22. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
  23. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +79 -1
  24. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +9 -2
  25. data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
  26. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
  27. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
  28. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
  29. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  30. data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
  31. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
  32. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
  33. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
  34. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +30 -20
  35. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
  36. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +6 -2
  37. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -6
  38. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +11 -9
  39. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +8 -8
  40. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
  41. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -5
  42. data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
  43. data/lib/twilio-ruby/rest/verify/v2.rb +7 -0
  44. data/lib/twilio-ruby/rest/verify.rb +6 -0
  45. data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
  46. data/lib/twilio-ruby/version.rb +1 -1
  47. metadata +13 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22891108a10e24af4975960e154bc78ba330d7094eef18a7850db14d1b19f55c
4
- data.tar.gz: 84157f208866fec1713f624928ac607f29d69e69efb60fbe7778bddce4b0e768
3
+ metadata.gz: 449133db663db3b60cc607933b4783cb0aceaeae1d433b4ab0a49b3479a67e21
4
+ data.tar.gz: 9fb3a8f43bdcfa5fbe10924c2dcfd08c52ef5e81c65993c238987476e7743460
5
5
  SHA512:
6
- metadata.gz: c93a2f24c7a14a6f594fca8c3425510763a5ddf3d47edcda7bf24dc7d2a3bd8b39c8e8d5ca07fae9ef92194d44d36f93060f56022c83ecca6dbd91ef2d7688e8
7
- data.tar.gz: d3547e481e40e1802f78377797f44ff38401b0e4026c049590dfc9e94a611af79def1bdd5c1b130197e1057a78bccee386dc211f00af3f73bb7ce058bb7cfdfc
6
+ metadata.gz: 2378219ca67c2272011f66eff0327e903a99abe47b1cf770df03fe831d31e31efc39a6f84764a433b7159b0f2bb43ecf466665b58ca26507613c5037cc2bca2c
7
+ data.tar.gz: 439ea62d619c181d829a03e5f50e9d20c0271e479ef23abe8363478c09dfa1a25672627de7f3e5617570044af2f48e6250e8f3d87990bd2082a6460148ba2fd8
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,89 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2021-10-18] Version 5.60.0
5
+ ---------------------------
6
+ **Library - Feature**
7
+ - [PR #574](https://github.com/twilio/twilio-ruby/pull/574): Add PlaybackGrant. Thanks to [@sarahcstringer](https://github.com/sarahcstringer)!
8
+
9
+ **Api**
10
+ - Corrected enum values for `emergency_address_status` values in `/IncomingPhoneNumbers` response. **(breaking change)**
11
+ - Clarify `emergency_address_status` values in `/IncomingPhoneNumbers` response.
12
+
13
+ **Messaging**
14
+ - Add PUT and List brand vettings api
15
+ - Removes beta feature flag based visibility for us_app_to_person_registered and usecase field.Updates test cases to add POLITICAL usecase. **(breaking change)**
16
+ - Add brand_feedback as optional field to BrandRegistrations
17
+
18
+ **Video**
19
+ - Add `AudioOnly` to create room
20
+
21
+
22
+ [2021-10-06] Version 5.59.0
23
+ ---------------------------
24
+ **Library - Fix**
25
+ - [PR #571](https://github.com/twilio/twilio-ruby/pull/571): fix travis build for ruby 3.0. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
26
+
27
+ **Api**
28
+ - Add `emergency_address_status` attribute to `/IncomingPhoneNumbers` response.
29
+ - Add `siprec` resource
30
+
31
+ **Conversations**
32
+ - Added attachment parameters in configuration for `NewMessage` type of push notifications
33
+
34
+ **Flex**
35
+ - Adding `flex_insights_hr` object to Flex Configuration
36
+
37
+ **Numbers**
38
+ - Add API endpoint for Bundle ReplaceItems resource
39
+ - Add API endpoint for Bundle Copies resource
40
+
41
+ **Serverless**
42
+ - Add domain_base field to Service response
43
+
44
+ **Taskrouter**
45
+ - Add `If-Match` Header based on ETag for Worker Delete **(breaking change)**
46
+ - Add `If-Match` Header based on Etag for Reservation Update
47
+ - Add `If-Match` Header based on ETag for Worker Update
48
+ - Add `If-Match` Header based on ETag for Worker Delete
49
+ - Add `ETag` as Response Header to Worker
50
+
51
+ **Trunking**
52
+ - Added `transfer_caller_id` property on Trunks.
53
+
54
+ **Verify**
55
+ - Document new pilot `whatsapp` channel.
56
+
57
+
58
+ [2021-09-22] Version 5.58.3
59
+ ---------------------------
60
+ **Events**
61
+ - Add segment sink
62
+
63
+ **Messaging**
64
+ - Add post_approval_required attribute in GET us_app_to_person_usecase api response
65
+ - Add Identity Status, Russell 3000, Tax Exempt Status and Should Skip SecVet fields for Brand Registrations
66
+ - Add Should Skip Secondary Vetting optional flag parameter to create Brand API
67
+
68
+
69
+ [2021-09-08] Version 5.58.2
70
+ ---------------------------
71
+ **Library - Fix**
72
+ - [PR #568](https://github.com/twilio/twilio-ruby/pull/568): deprecation warning on Faraday. Thanks to [@ngouy](https://github.com/ngouy)!
73
+
74
+ **Api**
75
+ - Revert adding `siprec` resource
76
+ - Add `siprec` resource
77
+
78
+ **Messaging**
79
+ - Add 'mock' as an optional field to brand_registration api
80
+ - Add 'mock' as an optional field to us_app_to_person api
81
+ - Adds more Use Cases in us_app_to_person_usecase api transaction and updates us_app_to_person_usecase docs
82
+
83
+ **Verify**
84
+ - Verify List Templates API endpoint added.
85
+
86
+
4
87
  [2021-08-25] Version 5.58.1
5
88
  ---------------------------
6
89
  **Api**
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.1'
38
+ gem 'twilio-ruby', '~> 5.60.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.1
44
+ gem install twilio-ruby -v 5.60.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
@@ -267,6 +267,19 @@ module Twilio
267
267
  payload
268
268
  end
269
269
  end
270
+
271
+ class PlaybackGrant
272
+ include AccessTokenGrant
273
+ attr_accessor :grant
274
+
275
+ def _key
276
+ 'player'
277
+ end
278
+
279
+ def _generate_payload
280
+ grant
281
+ end
282
+ end
270
283
  end
271
284
  end
272
285
  end