twilio-ruby 5.58.1 → 5.60.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGES.md +83 -0
- data/README.md +3 -3
- data/lib/twilio-ruby/http/http_client.rb +1 -1
- 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 +35 -35
- 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 +79 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +9 -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 +30 -20
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +6 -2
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +10 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +11 -9
- data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +8 -8
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -5
- data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +7 -0
- data/lib/twilio-ruby/rest/verify.rb +6 -0
- data/lib/twilio-ruby/rest/video/v1/room.rb +12 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +13 -3
@@ -18,6 +18,7 @@ module Twilio
|
|
18
18
|
@forms = nil
|
19
19
|
@services = nil
|
20
20
|
@verification_attempts = nil
|
21
|
+
@templates = nil
|
21
22
|
end
|
22
23
|
|
23
24
|
##
|
@@ -67,6 +68,12 @@ module Twilio
|
|
67
68
|
end
|
68
69
|
end
|
69
70
|
|
71
|
+
##
|
72
|
+
# @return [Twilio::REST::Verify::V2::TemplateContext]
|
73
|
+
def templates
|
74
|
+
@templates ||= TemplateList.new self
|
75
|
+
end
|
76
|
+
|
70
77
|
##
|
71
78
|
# Provide a user friendly representation
|
72
79
|
def to_s
|
@@ -57,8 +57,11 @@ module Twilio
|
|
57
57
|
# ***This feature is not available in `peer-to-peer` rooms.***
|
58
58
|
# @param [Hash] recording_rules A collection of Recording Rules that describe how
|
59
59
|
# to include or exclude matching tracks for recording
|
60
|
+
# @param [Boolean] audio_only When set to true, indicates that the participants in
|
61
|
+
# the room will only publish audio. No video tracks will be allowed. Group rooms
|
62
|
+
# only.
|
60
63
|
# @return [RoomInstance] Created RoomInstance
|
61
|
-
def create(enable_turn: :unset, type: :unset, unique_name: :unset, status_callback: :unset, status_callback_method: :unset, max_participants: :unset, record_participants_on_connect: :unset, video_codecs: :unset, media_region: :unset, recording_rules: :unset)
|
64
|
+
def create(enable_turn: :unset, type: :unset, unique_name: :unset, status_callback: :unset, status_callback_method: :unset, max_participants: :unset, record_participants_on_connect: :unset, video_codecs: :unset, media_region: :unset, recording_rules: :unset, audio_only: :unset)
|
62
65
|
data = Twilio::Values.of({
|
63
66
|
'EnableTurn' => enable_turn,
|
64
67
|
'Type' => type,
|
@@ -70,6 +73,7 @@ module Twilio
|
|
70
73
|
'VideoCodecs' => Twilio.serialize_list(video_codecs) { |e| e },
|
71
74
|
'MediaRegion' => media_region,
|
72
75
|
'RecordingRules' => Twilio.serialize_object(recording_rules),
|
76
|
+
'AudioOnly' => audio_only,
|
73
77
|
})
|
74
78
|
|
75
79
|
payload = @version.create('POST', @uri, data: data)
|
@@ -364,6 +368,7 @@ module Twilio
|
|
364
368
|
'record_participants_on_connect' => payload['record_participants_on_connect'],
|
365
369
|
'video_codecs' => payload['video_codecs'],
|
366
370
|
'media_region' => payload['media_region'],
|
371
|
+
'audio_only' => payload['audio_only'],
|
367
372
|
'url' => payload['url'],
|
368
373
|
'links' => payload['links'],
|
369
374
|
}
|
@@ -486,6 +491,12 @@ module Twilio
|
|
486
491
|
@properties['media_region']
|
487
492
|
end
|
488
493
|
|
494
|
+
##
|
495
|
+
# @return [Boolean] Indicates whether the room will only contain audio track participants for group rooms.
|
496
|
+
def audio_only
|
497
|
+
@properties['audio_only']
|
498
|
+
end
|
499
|
+
|
489
500
|
##
|
490
501
|
# @return [String] The absolute URL of the resource
|
491
502
|
def url
|
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.60.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-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -285,6 +285,7 @@ files:
|
|
285
285
|
- lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
|
286
286
|
- lib/twilio-ruby/rest/api/v2010/account/call/payment.rb
|
287
287
|
- lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
|
288
|
+
- lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb
|
288
289
|
- lib/twilio-ruby/rest/api/v2010/account/conference.rb
|
289
290
|
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
|
290
291
|
- lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb
|
@@ -474,9 +475,15 @@ files:
|
|
474
475
|
- lib/twilio-ruby/rest/lookups.rb
|
475
476
|
- lib/twilio-ruby/rest/lookups/v1.rb
|
476
477
|
- lib/twilio-ruby/rest/lookups/v1/phone_number.rb
|
478
|
+
- lib/twilio-ruby/rest/media.rb
|
479
|
+
- lib/twilio-ruby/rest/media/v1.rb
|
480
|
+
- lib/twilio-ruby/rest/media/v1/media_processor.rb
|
481
|
+
- lib/twilio-ruby/rest/media/v1/player_streamer.rb
|
482
|
+
- lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb
|
477
483
|
- lib/twilio-ruby/rest/messaging.rb
|
478
484
|
- lib/twilio-ruby/rest/messaging/v1.rb
|
479
485
|
- lib/twilio-ruby/rest/messaging/v1/brand_registration.rb
|
486
|
+
- lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb
|
480
487
|
- lib/twilio-ruby/rest/messaging/v1/deactivation.rb
|
481
488
|
- lib/twilio-ruby/rest/messaging/v1/external_campaign.rb
|
482
489
|
- lib/twilio-ruby/rest/messaging/v1/service.rb
|
@@ -500,8 +507,10 @@ files:
|
|
500
507
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
501
508
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
502
509
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
510
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb
|
503
511
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb
|
504
512
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
|
513
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb
|
505
514
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb
|
506
515
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb
|
507
516
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb
|
@@ -713,6 +722,7 @@ files:
|
|
713
722
|
- lib/twilio-ruby/rest/verify/v2/service/verification.rb
|
714
723
|
- lib/twilio-ruby/rest/verify/v2/service/verification_check.rb
|
715
724
|
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb
|
725
|
+
- lib/twilio-ruby/rest/verify/v2/template.rb
|
716
726
|
- lib/twilio-ruby/rest/verify/v2/verification_attempt.rb
|
717
727
|
- lib/twilio-ruby/rest/video.rb
|
718
728
|
- lib/twilio-ruby/rest/video/v1.rb
|
@@ -784,7 +794,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
784
794
|
- !ruby/object:Gem::Version
|
785
795
|
version: '0'
|
786
796
|
requirements: []
|
787
|
-
rubygems_version: 3.0.
|
797
|
+
rubygems_version: 3.0.9
|
788
798
|
signing_key:
|
789
799
|
specification_version: 4
|
790
800
|
summary: The official library for communicating with the Twilio REST API, building
|