twilio-ruby 5.58.2 → 5.61.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.
- checksums.yaml +5 -5
- data/.github/workflows/deploy.yml +63 -0
- data/.github/workflows/test.yml +51 -0
- data/.gitignore +2 -1
- data/.yardoc/checksums +532 -0
- data/.yardoc/complete +0 -0
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/CHANGES.md +87 -0
- data/Makefile +3 -4
- data/README.md +4 -4
- data/lib/twilio-ruby/jwt/access_token.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +667 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +27 -1
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +36 -36
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +384 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +390 -0
- data/lib/twilio-ruby/rest/media/v1.rb +60 -0
- data/lib/twilio-ruby/rest/media.rb +56 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +272 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +69 -2
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +29 -3
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +59 -14
- data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
- data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +8 -2
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +4 -4
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +16 -6
- data/lib/twilio-ruby/rest/verify/v2/service.rb +22 -3
- data/lib/twilio-ruby/rest/verify/v2/{verification_template.rb → template.rb} +25 -25
- data/lib/twilio-ruby/rest/verify/v2.rb +4 -4
- data/lib/twilio-ruby/rest/verify.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
- data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
- data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +21 -5
- 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:${
|
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
|
-
|
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
|
-
[][github-actions]
|
4
4
|
[](https://rubygems.org/gems/twilio-ruby)
|
5
5
|
[](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.
|
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.
|
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
|
-
[
|
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
|