twilio-ruby 5.58.2 → 5.61.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/deploy.yml +63 -0
  3. data/.github/workflows/test.yml +51 -0
  4. data/.gitignore +2 -1
  5. data/.yardoc/checksums +532 -0
  6. data/.yardoc/complete +0 -0
  7. data/.yardoc/object_types +0 -0
  8. data/.yardoc/objects/root.dat +0 -0
  9. data/.yardoc/proxy_types +0 -0
  10. data/CHANGES.md +87 -0
  11. data/Makefile +3 -4
  12. data/README.md +4 -4
  13. data/lib/twilio-ruby/jwt/access_token.rb +13 -0
  14. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
  15. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
  16. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
  18. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
  19. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
  20. data/lib/twilio-ruby/rest/client.rb +7 -0
  21. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
  22. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
  23. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +36 -36
  24. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
  25. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
  26. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
  27. data/lib/twilio-ruby/rest/media/v1.rb +60 -0
  28. data/lib/twilio-ruby/rest/media.rb +56 -0
  29. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
  30. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +69 -2
  31. data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
  32. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
  33. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
  34. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
  35. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  36. data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
  37. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
  38. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
  39. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
  40. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -2
  41. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
  42. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +4 -4
  43. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +3 -3
  44. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +16 -6
  45. data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -3
  46. data/lib/twilio-ruby/rest/verify/v2/{verification_template.rb → template.rb} +25 -25
  47. data/lib/twilio-ruby/rest/verify/v2.rb +4 -4
  48. data/lib/twilio-ruby/rest/verify.rb +3 -3
  49. data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
  50. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  51. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
  52. data/lib/twilio-ruby/version.rb +1 -1
  53. metadata +21 -5
  54. data/.travis.yml +0 -56
data/CHANGES.md CHANGED
@@ -1,6 +1,93 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2021-11-03] Version 5.61.0
5
+ ---------------------------
6
+ **Library - Chore**
7
+ - [PR #575](https://github.com/twilio/twilio-ruby/pull/575): migrate from TravisCI to GitHub Actions. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
8
+
9
+ **Api**
10
+ - Updated `media_url` property to be treated as PII
11
+
12
+ **Messaging**
13
+ - Added a new enum for brand registration status named DELETED **(breaking change)**
14
+ - Add a new K12_EDUCATION use case in us_app_to_person_usecase api transaction
15
+ - Added a new enum for brand registration status named IN_REVIEW
16
+
17
+ **Serverless**
18
+ - Add node14 as a valid Build runtime
19
+
20
+ **Verify**
21
+ - Fix typos in Verify Push Factor documentation for the `config.notification_token` parameter.
22
+ - Added `TemplateCustomSubstitutions` on verification creation
23
+ - Make `TemplateSid` parameter public for Verification resource and `DefaultTemplateSid` parameter public for Service resource. **(breaking change)**
24
+
25
+
26
+ [2021-10-18] Version 5.60.0
27
+ ---------------------------
28
+ **Library - Feature**
29
+ - [PR #574](https://github.com/twilio/twilio-ruby/pull/574): Add PlaybackGrant. Thanks to [@sarahcstringer](https://github.com/sarahcstringer)!
30
+
31
+ **Api**
32
+ - Corrected enum values for `emergency_address_status` values in `/IncomingPhoneNumbers` response. **(breaking change)**
33
+ - Clarify `emergency_address_status` values in `/IncomingPhoneNumbers` response.
34
+
35
+ **Messaging**
36
+ - Add PUT and List brand vettings api
37
+ - Removes beta feature flag based visibility for us_app_to_person_registered and usecase field.Updates test cases to add POLITICAL usecase. **(breaking change)**
38
+ - Add brand_feedback as optional field to BrandRegistrations
39
+
40
+ **Video**
41
+ - Add `AudioOnly` to create room
42
+
43
+
44
+ [2021-10-06] Version 5.59.0
45
+ ---------------------------
46
+ **Library - Fix**
47
+ - [PR #571](https://github.com/twilio/twilio-ruby/pull/571): fix travis build for ruby 3.0. Thanks to [@JenniferMah](https://github.com/JenniferMah)!
48
+
49
+ **Api**
50
+ - Add `emergency_address_status` attribute to `/IncomingPhoneNumbers` response.
51
+ - Add `siprec` resource
52
+
53
+ **Conversations**
54
+ - Added attachment parameters in configuration for `NewMessage` type of push notifications
55
+
56
+ **Flex**
57
+ - Adding `flex_insights_hr` object to Flex Configuration
58
+
59
+ **Numbers**
60
+ - Add API endpoint for Bundle ReplaceItems resource
61
+ - Add API endpoint for Bundle Copies resource
62
+
63
+ **Serverless**
64
+ - Add domain_base field to Service response
65
+
66
+ **Taskrouter**
67
+ - Add `If-Match` Header based on ETag for Worker Delete **(breaking change)**
68
+ - Add `If-Match` Header based on Etag for Reservation Update
69
+ - Add `If-Match` Header based on ETag for Worker Update
70
+ - Add `If-Match` Header based on ETag for Worker Delete
71
+ - Add `ETag` as Response Header to Worker
72
+
73
+ **Trunking**
74
+ - Added `transfer_caller_id` property on Trunks.
75
+
76
+ **Verify**
77
+ - Document new pilot `whatsapp` channel.
78
+
79
+
80
+ [2021-09-22] Version 5.58.3
81
+ ---------------------------
82
+ **Events**
83
+ - Add segment sink
84
+
85
+ **Messaging**
86
+ - Add post_approval_required attribute in GET us_app_to_person_usecase api response
87
+ - Add Identity Status, Russell 3000, Tax Exempt Status and Should Skip SecVet fields for Brand Registrations
88
+ - Add Should Skip Secondary Vetting optional flag parameter to create Brand API
89
+
90
+
4
91
  [2021-09-08] Version 5.58.2
5
92
  ---------------------------
6
93
  **Library - Fix**
data/Makefile CHANGED
@@ -10,7 +10,7 @@ test: lint
10
10
  bundle exec rake spec
11
11
 
12
12
  lint:
13
- rubocop --cache true --parallel
13
+ bundle exec rubocop --cache true --parallel
14
14
 
15
15
  docs:
16
16
  yard doc --output-dir ./doc
@@ -22,12 +22,11 @@ authors:
22
22
  API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
23
23
  docker-build:
24
24
  docker build -t twilio/twilio-ruby .
25
- docker tag twilio/twilio-ruby twilio/twilio-ruby:${TRAVIS_TAG}
25
+ docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
26
26
  docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
27
27
  docker tag twilio/twilio-ruby twilio/twilio-ruby:latest
28
28
 
29
29
  docker-push:
30
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
31
- docker push twilio/twilio-ruby:${TRAVIS_TAG}
30
+ docker push twilio/twilio-ruby:${GITHUB_TAG}
32
31
  docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
33
32
  docker push twilio/twilio-ruby:latest
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
+ [![Tests](https://github.com/twilio/twilio-ruby/actions/workflows/test.yml/badge.svg)][github-actions]
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.2'
38
+ gem 'twilio-ruby', '~> 5.61.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.2
44
+ gem install twilio-ruby -v 5.61.0
45
45
  ```
46
46
 
47
47
  To build and install the development branch yourself from the latest source:
@@ -257,7 +257,7 @@ If you've instead found a bug in the library or would like new features added, g
257
257
  [bundler]: https://bundler.io
258
258
  [rubygems]: https://rubygems.org
259
259
  [gem]: https://rubygems.org/gems/twilio
260
- [travis]: https://travis-ci.com/twilio/twilio-ruby
260
+ [github-actions]: https://github.com/twilio/twilio-ruby/actions/workflows/test.yml
261
261
  [upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
262
262
  [issues]: https://github.com/twilio/twilio-ruby/issues
263
263
  [faraday]: https://github.com/lostisland/faraday
@@ -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