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
@@ -249,15 +249,10 @@ module Twilio
|
|
249
249
|
# @param [String] sms_url The URL we should call using the `sms_method` when the
|
250
250
|
# SIM-connected device sends an SMS message that is not a
|
251
251
|
# {Command}[https://www.twilio.com/docs/wireless/api/command-resource].
|
252
|
-
# @param [String] voice_fallback_method
|
253
|
-
#
|
254
|
-
# @param [String]
|
255
|
-
#
|
256
|
-
# TwiML requested from `voice_url`.
|
257
|
-
# @param [String] voice_method The HTTP method we should use when we call
|
258
|
-
# `voice_url`. Can be: `GET` or `POST`.
|
259
|
-
# @param [String] voice_url The URL we should call using the `voice_method` when
|
260
|
-
# the SIM-connected device makes a voice call.
|
252
|
+
# @param [String] voice_fallback_method Deprecated.
|
253
|
+
# @param [String] voice_fallback_url Deprecated.
|
254
|
+
# @param [String] voice_method Deprecated.
|
255
|
+
# @param [String] voice_url Deprecated.
|
261
256
|
# @param [sim.ResetStatus] reset_status Initiate a connectivity reset on the SIM.
|
262
257
|
# Set to `resetting` to initiate a connectivity reset on the SIM. No other value
|
263
258
|
# is valid.
|
@@ -463,49 +458,49 @@ module Twilio
|
|
463
458
|
end
|
464
459
|
|
465
460
|
##
|
466
|
-
# @return [String] The HTTP method we use to call sms_fallback_url
|
461
|
+
# @return [String] Deprecated. The HTTP method we use to call sms_fallback_url
|
467
462
|
def sms_fallback_method
|
468
463
|
@properties['sms_fallback_method']
|
469
464
|
end
|
470
465
|
|
471
466
|
##
|
472
|
-
# @return [String] The URL we call when an error occurs while retrieving or executing the TwiML requested from the sms_url
|
467
|
+
# @return [String] Deprecated. The URL we call when an error occurs while retrieving or executing the TwiML requested from the sms_url
|
473
468
|
def sms_fallback_url
|
474
469
|
@properties['sms_fallback_url']
|
475
470
|
end
|
476
471
|
|
477
472
|
##
|
478
|
-
# @return [String] The HTTP method we use to call sms_url
|
473
|
+
# @return [String] Deprecated. The HTTP method we use to call sms_url
|
479
474
|
def sms_method
|
480
475
|
@properties['sms_method']
|
481
476
|
end
|
482
477
|
|
483
478
|
##
|
484
|
-
# @return [String] The URL we call when the SIM-connected device sends an SMS message that is not a Command
|
479
|
+
# @return [String] Deprecated. The URL we call when the SIM-connected device sends an SMS message that is not a Command
|
485
480
|
def sms_url
|
486
481
|
@properties['sms_url']
|
487
482
|
end
|
488
483
|
|
489
484
|
##
|
490
|
-
# @return [String] The HTTP method we use to call voice_fallback_url
|
485
|
+
# @return [String] Deprecated. The HTTP method we use to call voice_fallback_url
|
491
486
|
def voice_fallback_method
|
492
487
|
@properties['voice_fallback_method']
|
493
488
|
end
|
494
489
|
|
495
490
|
##
|
496
|
-
# @return [String] The URL we call when an error occurs while retrieving or executing the TwiML requested from voice_url
|
491
|
+
# @return [String] Deprecated. The URL we call when an error occurs while retrieving or executing the TwiML requested from voice_url
|
497
492
|
def voice_fallback_url
|
498
493
|
@properties['voice_fallback_url']
|
499
494
|
end
|
500
495
|
|
501
496
|
##
|
502
|
-
# @return [String] The HTTP method we use to call voice_url
|
497
|
+
# @return [String] Deprecated. The HTTP method we use to call voice_url
|
503
498
|
def voice_method
|
504
499
|
@properties['voice_method']
|
505
500
|
end
|
506
501
|
|
507
502
|
##
|
508
|
-
# @return [String] The URL we call when the SIM-connected device makes a voice call
|
503
|
+
# @return [String] Deprecated. The URL we call when the SIM-connected device makes a voice call
|
509
504
|
def voice_url
|
510
505
|
@properties['voice_url']
|
511
506
|
end
|
@@ -583,15 +578,10 @@ module Twilio
|
|
583
578
|
# @param [String] sms_url The URL we should call using the `sms_method` when the
|
584
579
|
# SIM-connected device sends an SMS message that is not a
|
585
580
|
# {Command}[https://www.twilio.com/docs/wireless/api/command-resource].
|
586
|
-
# @param [String] voice_fallback_method
|
587
|
-
#
|
588
|
-
# @param [String]
|
589
|
-
#
|
590
|
-
# TwiML requested from `voice_url`.
|
591
|
-
# @param [String] voice_method The HTTP method we should use when we call
|
592
|
-
# `voice_url`. Can be: `GET` or `POST`.
|
593
|
-
# @param [String] voice_url The URL we should call using the `voice_method` when
|
594
|
-
# the SIM-connected device makes a voice call.
|
581
|
+
# @param [String] voice_fallback_method Deprecated.
|
582
|
+
# @param [String] voice_fallback_url Deprecated.
|
583
|
+
# @param [String] voice_method Deprecated.
|
584
|
+
# @param [String] voice_url Deprecated.
|
595
585
|
# @param [sim.ResetStatus] reset_status Initiate a connectivity reset on the SIM.
|
596
586
|
# Set to `resetting` to initiate a connectivity reset on the SIM. No other value
|
597
587
|
# is valid.
|
data/lib/twilio-ruby/version.rb
CHANGED
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.61.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-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -212,10 +212,16 @@ extra_rdoc_files:
|
|
212
212
|
- LICENSE
|
213
213
|
files:
|
214
214
|
- ".dockerignore"
|
215
|
+
- ".github/workflows/deploy.yml"
|
216
|
+
- ".github/workflows/test.yml"
|
215
217
|
- ".gitignore"
|
216
218
|
- ".rubocop.yml"
|
217
219
|
- ".rubocop_todo.yml"
|
218
|
-
- ".
|
220
|
+
- ".yardoc/checksums"
|
221
|
+
- ".yardoc/complete"
|
222
|
+
- ".yardoc/object_types"
|
223
|
+
- ".yardoc/objects/root.dat"
|
224
|
+
- ".yardoc/proxy_types"
|
219
225
|
- AUTHORS.md
|
220
226
|
- CHANGES.md
|
221
227
|
- CODE_OF_CONDUCT.md
|
@@ -285,6 +291,7 @@ files:
|
|
285
291
|
- lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
|
286
292
|
- lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
|
287
293
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
294
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb
|
288
295
|
- lib/twilio-ruby/rest/api/v2010/account/conference.rb
|
289
296
|
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
|
290
297
|
- lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb
|
@@ -474,9 +481,15 @@ files:
|
|
474
481
|
- lib/twilio-ruby/rest/lookups.rb
|
475
482
|
- lib/twilio-ruby/rest/lookups/v1.rb
|
476
483
|
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb
|
484
|
+
- lib/twilio-ruby/rest/media.rb
|
485
|
+
- lib/twilio-ruby/rest/media/v1.rb
|
486
|
+
- lib/twilio-ruby/rest/media/v1/media_processor.rb
|
487
|
+
- lib/twilio-ruby/rest/media/v1/player_streamer.rb
|
488
|
+
- lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb
|
477
489
|
- lib/twilio-ruby/rest/messaging.rb
|
478
490
|
- lib/twilio-ruby/rest/messaging/v1.rb
|
479
491
|
- lib/twilio-ruby/rest/messaging/v1/brand_registration.rb
|
492
|
+
- lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb
|
480
493
|
- lib/twilio-ruby/rest/messaging/v1/deactivation.rb
|
481
494
|
- lib/twilio-ruby/rest/messaging/v1/external_campaign.rb
|
482
495
|
- lib/twilio-ruby/rest/messaging/v1/service.rb
|
@@ -500,8 +513,10 @@ files:
|
|
500
513
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
501
514
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
502
515
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
516
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb
|
503
517
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb
|
504
518
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
|
519
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb
|
505
520
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb
|
506
521
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb
|
507
522
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb
|
@@ -713,8 +728,8 @@ files:
|
|
713
728
|
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
|
714
729
|
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
|
715
730
|
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb
|
731
|
+
- lib/twilio-ruby/rest/verify/v2/template.rb
|
716
732
|
- lib/twilio-ruby/rest/verify/v2/verification_attempt.rb
|
717
|
-
- lib/twilio-ruby/rest/verify/v2/verification_template.rb
|
718
733
|
- lib/twilio-ruby/rest/video.rb
|
719
734
|
- lib/twilio-ruby/rest/video/v1.rb
|
720
735
|
- lib/twilio-ruby/rest/video/v1/composition.rb
|
@@ -785,7 +800,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
785
800
|
- !ruby/object:Gem::Version
|
786
801
|
version: '0'
|
787
802
|
requirements: []
|
788
|
-
|
803
|
+
rubyforge_project:
|
804
|
+
rubygems_version: 2.6.14.4
|
789
805
|
signing_key:
|
790
806
|
specification_version: 4
|
791
807
|
summary: The official library for communicating with the Twilio REST API, building
|
data/.travis.yml
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
bundler_args: "--without development"
|
4
|
-
rvm:
|
5
|
-
- ruby-head
|
6
|
-
- jruby-9.2
|
7
|
-
- 2.4
|
8
|
-
- 2.5
|
9
|
-
- 2.6
|
10
|
-
- 2.7
|
11
|
-
- 3.0
|
12
|
-
services:
|
13
|
-
- docker
|
14
|
-
install: make install
|
15
|
-
script:
|
16
|
-
- make test
|
17
|
-
- if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST"
|
18
|
-
== "false" ]; then echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}"
|
19
|
-
--password-stdin; fi
|
20
|
-
matrix:
|
21
|
-
include:
|
22
|
-
- language: ruby
|
23
|
-
rvm: '3.0'
|
24
|
-
# The below workaround is necessary because of the branch coverage inclusion in simplecov 0.18+
|
25
|
-
# more discussion here - https://community.sonarsource.com/t/ruby-coverage-simplecov-json-file-does-not-work/20909/7
|
26
|
-
after_success:
|
27
|
-
- ruby -rjson -e 'sqube = JSON.load(File.read("coverage/.resultset.json"))["RSpec"]["coverage"].transform_values {|lines| lines["lines"]}; total = { "RSpec" => { "coverage" => sqube, "timestamp" => Time.now.to_i }}; puts JSON.dump(total)' > coverage/.resultset.sonarqube.json
|
28
|
-
- sonar-scanner
|
29
|
-
allow_failures:
|
30
|
-
- rvm: ruby-head
|
31
|
-
fast_finish: true
|
32
|
-
deploy:
|
33
|
-
- provider: script
|
34
|
-
script: make docker-build && make docker-push
|
35
|
-
skip_cleanup: true
|
36
|
-
on:
|
37
|
-
tags: true
|
38
|
-
rvm: '2.4'
|
39
|
-
- provider: rubygems
|
40
|
-
api_key: "$RUBYGEMS_APIKEY"
|
41
|
-
on:
|
42
|
-
tags: true
|
43
|
-
rvm: '2.4'
|
44
|
-
notifications:
|
45
|
-
slack:
|
46
|
-
if: branch = main
|
47
|
-
on_pull_requests: false
|
48
|
-
on_success: never
|
49
|
-
on_failure: change
|
50
|
-
rooms:
|
51
|
-
secure: HG7rC5VSDOZiLCkpTsC4ZImh1k59OPi6YEjYKhdGXItybLHa6Yh5C42WvSx3kVW3SeyLOm1CiaMv+pbBZUXStXYsl8eH69MbEZimhDWsPs/m+bh+gEISov22WNUs3ZfUqIXMIb6v18oXPp2Qa1gX5LUEAGoSxHWNmCAcHayWl7M=
|
52
|
-
addons:
|
53
|
-
sonarcloud:
|
54
|
-
organization: twilio
|
55
|
-
token:
|
56
|
-
secure: OSEahx/yO/r9PdjXbASwJt+ogphxkDDpnlajWNCBTc+hoiEurGP/12CN0oQi7+iishIgIowqo5J9/+m1BQfsAv4fKST+t6mSazx27udiiM9am03lhviW8QSG6STADvtq6uJRqTXMk3WehoSidNRYXamVdCoBbqxCSaMX8MbMsN8=
|