twilio-ruby 5.33.0 → 5.36.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +5 -26
- data/.travis.yml +9 -1
- data/CHANGES.md +110 -0
- data/README.md +17 -2
- data/lib/twilio-ruby.rb +4 -12
- data/lib/twilio-ruby/framework/error.rb +3 -3
- data/lib/twilio-ruby/jwt/jwt.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +90 -90
- data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +14 -0
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +75 -72
- data/lib/twilio-ruby/rest/api/v2010/account/queue.rb +29 -29
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +38 -3
- data/lib/twilio-ruby/rest/autopilot.rb +6 -0
- data/lib/twilio-ruby/rest/autopilot/v1.rb +7 -0
- data/lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb +198 -0
- data/lib/twilio-ruby/rest/client.rb +35 -8
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +19 -3
- data/lib/twilio-ruby/rest/conversations/v1/conversation/participant.rb +27 -4
- data/lib/twilio-ruby/rest/flex_api/v1/channel.rb +2 -1
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +20 -11
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +26 -0
- data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb +324 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business.rb +26 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb +239 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb +266 -0
- data/lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb +197 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +7 -0
- data/lib/twilio-ruby/rest/studio.rb +2 -2
- data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +26 -0
- data/lib/twilio-ruby/rest/studio/v2.rb +3 -3
- data/lib/twilio-ruby/rest/studio/v2/flow.rb +7 -0
- data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +71 -24
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_context.rb +12 -11
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +21 -20
- data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step/execution_step_context.rb +18 -15
- data/lib/twilio-ruby/rest/supersim.rb +18 -0
- data/lib/twilio-ruby/rest/supersim/v1.rb +30 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +53 -10
- data/lib/twilio-ruby/rest/supersim/v1/network.rb +315 -0
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +378 -0
- data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +352 -0
- data/lib/twilio-ruby/rest/verify.rb +9 -0
- data/lib/twilio-ruby/rest/verify/v2.rb +16 -0
- data/lib/twilio-ruby/rest/verify/v2/form.rb +197 -0
- data/lib/twilio-ruby/rest/verify/v2/service.rb +48 -3
- data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +379 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +500 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb +494 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -3
- data/lib/twilio-ruby/rest/video/v1/composition_settings.rb +8 -12
- data/lib/twilio-ruby/rest/video/v1/recording_settings.rb +8 -12
- data/lib/twilio-ruby/rest/voice.rb +36 -0
- data/lib/twilio-ruby/rest/voice/v1.rb +64 -0
- data/lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb +513 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy.rb +379 -0
- data/lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb +458 -0
- data/lib/twilio-ruby/rest/voice/v1/ip_record.rb +366 -0
- data/lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb +346 -0
- data/lib/twilio-ruby/twiml/twiml.rb +4 -0
- data/lib/twilio-ruby/twiml/voice_response.rb +3 -2
- data/lib/twilio-ruby/util/configuration.rb +9 -1
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/api/v2010/account/call_spec.rb +5 -5
- data/spec/integration/api/v2010/account/conference_spec.rb +42 -14
- data/spec/integration/api/v2010/account/sip/domain_spec.rb +12 -4
- data/spec/integration/api/v2010/account/token_spec.rb +23 -11
- data/spec/integration/autopilot/v1/restore_assistant_spec.rb +53 -0
- data/spec/integration/bulkexports/v1/export/day_spec.rb +1 -1
- data/spec/integration/conversations/v1/conversation/participant_spec.rb +7 -0
- data/spec/integration/conversations/v1/conversation_spec.rb +4 -0
- data/spec/integration/flex_api/v1/configuration_spec.rb +3 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb +623 -0
- data/spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb +4 -0
- data/spec/integration/preview/bulk_exports/export/day_spec.rb +1 -1
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb +54 -0
- data/spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb +52 -0
- data/spec/integration/preview/trusted_comms/business/brand_spec.rb +49 -0
- data/spec/integration/preview/trusted_comms/business_spec.rb +1 -0
- data/spec/integration/serverless/v1/service/asset/asset_version_spec.rb +1 -1
- data/spec/integration/serverless/v1/service/build_spec.rb +4 -4
- data/spec/integration/serverless/v1/service/environment/log_spec.rb +1 -0
- data/spec/integration/serverless/v1/service/function/function_version_spec.rb +1 -1
- data/spec/integration/studio/v1/flow/execution_spec.rb +46 -0
- data/spec/integration/studio/v2/flow/execution_spec.rb +45 -0
- data/spec/integration/studio/v2/flow_spec.rb +4 -0
- data/spec/integration/studio/v2/flow_validate_spec.rb +2 -2
- data/spec/integration/supersim/v1/fleet_spec.rb +12 -4
- data/spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb +179 -0
- data/spec/integration/supersim/v1/network_access_profile_spec.rb +223 -0
- data/spec/integration/supersim/v1/network_spec.rb +139 -0
- data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +13 -13
- data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +23 -23
- data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +28 -28
- data/spec/integration/trunking/v1/trunk/phone_number_spec.rb +17 -17
- data/spec/integration/trunking/v1/trunk_spec.rb +33 -33
- data/spec/integration/verify/v2/form_spec.rb +48 -0
- data/spec/integration/verify/v2/service/entity/factor/challenge_spec.rb +353 -0
- data/spec/integration/verify/v2/service/entity/factor_spec.rb +298 -0
- data/spec/integration/verify/v2/service/entity_spec.rb +201 -0
- data/spec/integration/verify/v2/service_spec.rb +28 -4
- data/spec/integration/video/v1/composition_settings_spec.rb +2 -2
- data/spec/integration/video/v1/recording_settings_spec.rb +2 -2
- data/spec/integration/video/v1/recording_spec.rb +2 -2
- data/spec/integration/video/v1/room/recording_spec.rb +2 -2
- data/spec/integration/voice/v1/byoc_trunk_spec.rb +250 -0
- data/spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb +246 -0
- data/spec/integration/voice/v1/connection_policy_spec.rb +226 -0
- data/spec/integration/voice/v1/ip_record_spec.rb +223 -0
- data/spec/integration/voice/v1/source_ip_mapping_spec.rb +219 -0
- data/spec/rest/client_spec.rb +173 -23
- data/spec/util/configuration_spec.rb +12 -0
- data/twilio-ruby.gemspec +4 -4
- metadata +67 -10
data/spec/rest/client_spec.rb
CHANGED
@@ -49,35 +49,185 @@ describe Twilio::REST::TrunkingClient do
|
|
49
49
|
end
|
50
50
|
|
51
51
|
describe Twilio::REST::Client do
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
52
|
+
context 'configuration' do
|
53
|
+
before do
|
54
|
+
Twilio.configure do |config|
|
55
|
+
config.account_sid = 'someSid'
|
56
|
+
config.auth_token = 'someToken'
|
57
|
+
config.http_client = 'someClient'
|
58
|
+
config.region = 'someRegion'
|
59
|
+
config.edge = 'someEdge'
|
60
|
+
end
|
57
61
|
end
|
58
|
-
end
|
59
62
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
63
|
+
it 'uses the global configuration by default' do
|
64
|
+
@client = Twilio::REST::Client.new
|
65
|
+
expect(@client.account_sid).to eq('someSid')
|
66
|
+
expect(@client.auth_token).to eq('someToken')
|
67
|
+
expect(@client.http_client).to eq('someClient')
|
68
|
+
expect(@client.region).to eq('someRegion')
|
69
|
+
expect(@client.edge).to eq('someEdge')
|
70
|
+
end
|
71
|
+
|
72
|
+
it 'uses the arguments over global configuration' do
|
73
|
+
@client = Twilio::REST::Client.new('myUser', 'myPassword', nil, 'myRegion', 'myClient')
|
74
|
+
@client.edge = 'myEdge'
|
75
|
+
expect(@client.account_sid).to eq('myUser')
|
76
|
+
expect(@client.auth_token).to eq('myPassword')
|
77
|
+
expect(@client.http_client).to eq('myClient')
|
78
|
+
expect(@client.region).to eq('myRegion')
|
79
|
+
expect(@client.edge).to eq('myEdge')
|
80
|
+
end
|
81
|
+
|
82
|
+
class MyVersion < Twilio::REST::Version
|
83
|
+
def initialize(domain)
|
84
|
+
super
|
85
|
+
@version = 'v1'
|
86
|
+
end
|
87
|
+
end
|
66
88
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
89
|
+
class MyDomain < Twilio::REST::Domain
|
90
|
+
def initialize(client)
|
91
|
+
super
|
92
|
+
@host = 'twilio.com'
|
93
|
+
@base_url = 'https://twilio.com'
|
94
|
+
@port = 443
|
95
|
+
end
|
96
|
+
end
|
72
97
|
end
|
73
98
|
|
74
|
-
|
75
|
-
|
76
|
-
|
99
|
+
context 'validation' do
|
100
|
+
before do
|
101
|
+
Twilio.configure do |config|
|
102
|
+
config.account_sid = 'someSid'
|
103
|
+
config.auth_token = 'someToken'
|
104
|
+
config.http_client = 'someClient'
|
105
|
+
config.region = nil
|
106
|
+
config.edge = nil
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
it 'successfully validates the working SSL certificate' do
|
111
|
+
@holodeck.mock Twilio::Response.new(200, '')
|
112
|
+
expect { @client.validate_ssl_certificate }.not_to raise_error
|
113
|
+
end
|
114
|
+
|
115
|
+
it 'fails to validate broken SSL certificates' do
|
116
|
+
@holodeck.mock Twilio::Response.new(504, '')
|
117
|
+
expect { @client.validate_ssl_certificate }.to raise_error(Twilio::REST::RestError)
|
118
|
+
end
|
119
|
+
|
120
|
+
it 'translates bad request error params' do
|
121
|
+
@domain = MyDomain.new(@client)
|
122
|
+
@version = MyVersion.new(@domain)
|
123
|
+
@error_message = '{
|
124
|
+
"code": 20001,
|
125
|
+
"message": "Bad request",
|
126
|
+
"more_info": "https://www.twilio.com/docs/errors/20001",
|
127
|
+
"status": 400,
|
128
|
+
"details": {
|
129
|
+
"foo":"bar"
|
130
|
+
}}'
|
131
|
+
@holodeck.mock Twilio::Response.new(400, @error_message)
|
132
|
+
expect {
|
133
|
+
@version.fetch('GET', 'http://foobar.com')
|
134
|
+
}.to raise_error { |error|
|
135
|
+
expect(error).to be_a(Twilio::REST::RestError)
|
136
|
+
expect(error.status_code).to eq(400)
|
137
|
+
expect(error.code).to eq(20_001)
|
138
|
+
expect(error.details).to eq({ 'foo' => 'bar' })
|
139
|
+
expect(error.error_message).to eq('Bad request')
|
140
|
+
expect(error.more_info).to eq('https://www.twilio.com/docs/errors/20001')
|
141
|
+
}
|
142
|
+
end
|
77
143
|
end
|
78
144
|
|
79
|
-
|
80
|
-
|
81
|
-
|
145
|
+
describe '#build_uri' do
|
146
|
+
before(:all) do
|
147
|
+
Twilio.configure do |config|
|
148
|
+
config.account_sid = 'username'
|
149
|
+
config.auth_token = 'password'
|
150
|
+
config.region = nil
|
151
|
+
config.edge = nil
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
context 'no region or edge in url' do
|
156
|
+
it "doesn't set region or edge" do
|
157
|
+
@client = Twilio::REST::Client.new
|
158
|
+
expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.twilio.com')
|
159
|
+
end
|
160
|
+
|
161
|
+
it 'uses the default region if edge set' do
|
162
|
+
@client = Twilio::REST::Client.new
|
163
|
+
@client.edge = 'edge'
|
164
|
+
expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.edge.us1.twilio.com')
|
165
|
+
end
|
166
|
+
|
167
|
+
it 'sets region' do
|
168
|
+
@client = Twilio::REST::Client.new
|
169
|
+
@client.region = 'region'
|
170
|
+
expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.region.twilio.com')
|
171
|
+
end
|
172
|
+
|
173
|
+
it 'sets region and edge' do
|
174
|
+
@client = Twilio::REST::Client.new
|
175
|
+
@client.region = 'region'
|
176
|
+
@client.edge = 'edge'
|
177
|
+
expect(@client.build_uri('https://api.twilio.com')).to eq('https://api.edge.region.twilio.com')
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
context 'region in url' do
|
182
|
+
it 'uses url region' do
|
183
|
+
@client = Twilio::REST::Client.new
|
184
|
+
expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.urlRegion.twilio.com')
|
185
|
+
end
|
186
|
+
|
187
|
+
it 'uses client edge and url region' do
|
188
|
+
@client = Twilio::REST::Client.new
|
189
|
+
@client.edge = 'edge'
|
190
|
+
expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.edge.urlRegion.twilio.com')
|
191
|
+
end
|
192
|
+
|
193
|
+
it 'prefers client region' do
|
194
|
+
@client = Twilio::REST::Client.new
|
195
|
+
@client.region = 'region'
|
196
|
+
expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.region.twilio.com')
|
197
|
+
end
|
198
|
+
|
199
|
+
it 'uses client edge and prefers client region' do
|
200
|
+
@client = Twilio::REST::Client.new
|
201
|
+
@client.region = 'region'
|
202
|
+
@client.edge = 'edge'
|
203
|
+
expect(@client.build_uri('https://api.urlRegion.twilio.com')).to eq('https://api.edge.region.twilio.com')
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
context 'region and edge in url' do
|
208
|
+
it 'uses url region and edge' do
|
209
|
+
@client = Twilio::REST::Client.new
|
210
|
+
expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.urlEdge.urlRegion.twilio.com')
|
211
|
+
end
|
212
|
+
|
213
|
+
it 'prefers client edge' do
|
214
|
+
@client = Twilio::REST::Client.new
|
215
|
+
@client.edge = 'edge'
|
216
|
+
expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.edge.urlRegion.twilio.com')
|
217
|
+
end
|
218
|
+
|
219
|
+
it 'prefers client region' do
|
220
|
+
@client = Twilio::REST::Client.new
|
221
|
+
@client.region = 'region'
|
222
|
+
expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.urlEdge.region.twilio.com')
|
223
|
+
end
|
224
|
+
|
225
|
+
it 'prefers client region and edge' do
|
226
|
+
@client = Twilio::REST::Client.new
|
227
|
+
@client.region = 'region'
|
228
|
+
@client.edge = 'edge'
|
229
|
+
expect(@client.build_uri('https://api.urlEdge.urlRegion.twilio.com')).to eq('https://api.edge.region.twilio.com')
|
230
|
+
end
|
231
|
+
end
|
82
232
|
end
|
83
233
|
end
|
@@ -18,4 +18,16 @@ describe Twilio::Util::Configuration do
|
|
18
18
|
config.http_client = 'someClient'
|
19
19
|
expect(config.http_client).to eq('someClient')
|
20
20
|
end
|
21
|
+
|
22
|
+
it 'should have a region attribute' do
|
23
|
+
config = Twilio::Util::Configuration.new
|
24
|
+
config.region = 'someRegion'
|
25
|
+
expect(config.region).to eq('someRegion')
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'should have an edge attribute' do
|
29
|
+
config = Twilio::Util::Configuration.new
|
30
|
+
config.edge = 'someEdge'
|
31
|
+
expect(config.edge).to eq('someEdge')
|
32
|
+
end
|
21
33
|
end
|
data/twilio-ruby.gemspec
CHANGED
@@ -7,12 +7,12 @@ require 'twilio-ruby/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'twilio-ruby'
|
9
9
|
spec.version = Twilio::VERSION
|
10
|
-
spec.authors
|
10
|
+
spec.authors = ['Twilio API Team']
|
11
11
|
spec.summary = 'The official library for communicating with the Twilio REST API, '\
|
12
12
|
'building TwiML, and generating Twilio JWT Capability Tokens'
|
13
13
|
spec.description = 'The official library for communicating with the Twilio REST API, '\
|
14
14
|
'building TwiML, and generating Twilio JWT Capability Tokens'
|
15
|
-
spec.homepage = '
|
15
|
+
spec.homepage = 'https://github.com/twilio/twilio-ruby'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
spec.metadata = { 'yard.run' => 'yri' } # use "yard" to build full HTML docs
|
18
18
|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
26
26
|
|
27
27
|
spec.add_dependency('jwt', '>= 1.5', '<= 2.5')
|
28
28
|
spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
|
29
|
-
spec.add_dependency('faraday', '
|
29
|
+
spec.add_dependency('faraday', '>= 0.9', '< 2.0')
|
30
30
|
# Workaround for RBX <= 2.2.1, should be fixed in next version
|
31
31
|
spec.add_dependency('rubysl') if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
32
32
|
|
@@ -36,6 +36,6 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'rack', '~> 2.0'
|
37
37
|
spec.add_development_dependency 'rake', '~> 13.0'
|
38
38
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
39
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
39
|
+
spec.add_development_dependency 'rubocop', '~> 0.82.0'
|
40
40
|
spec.add_development_dependency 'yard', '~> 0.9.9'
|
41
41
|
end
|
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.36.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: 2020-
|
11
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -54,16 +54,22 @@ dependencies:
|
|
54
54
|
name: faraday
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- - "
|
57
|
+
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: '0.9'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2.0'
|
60
63
|
type: :runtime
|
61
64
|
prerelease: false
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
|
-
- - "
|
67
|
+
- - ">="
|
65
68
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
69
|
+
version: '0.9'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '2.0'
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
74
|
name: bundler
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,14 +166,14 @@ dependencies:
|
|
160
166
|
requirements:
|
161
167
|
- - "~>"
|
162
168
|
- !ruby/object:Gem::Version
|
163
|
-
version: 0.
|
169
|
+
version: 0.82.0
|
164
170
|
type: :development
|
165
171
|
prerelease: false
|
166
172
|
version_requirements: !ruby/object:Gem::Requirement
|
167
173
|
requirements:
|
168
174
|
- - "~>"
|
169
175
|
- !ruby/object:Gem::Version
|
170
|
-
version: 0.
|
176
|
+
version: 0.82.0
|
171
177
|
- !ruby/object:Gem::Dependency
|
172
178
|
name: yard
|
173
179
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,6 +344,7 @@ files:
|
|
338
344
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_actions.rb
|
339
345
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/task/task_statistics.rb
|
340
346
|
- lib/twilio-ruby/rest/autopilot/v1/assistant/webhook.rb
|
347
|
+
- lib/twilio-ruby/rest/autopilot/v1/restore_assistant.rb
|
341
348
|
- lib/twilio-ruby/rest/bulkexports.rb
|
342
349
|
- lib/twilio-ruby/rest/bulkexports/v1.rb
|
343
350
|
- lib/twilio-ruby/rest/bulkexports/v1/export.rb
|
@@ -440,6 +447,7 @@ files:
|
|
440
447
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
441
448
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb
|
442
449
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb
|
450
|
+
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/evaluation.rb
|
443
451
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/item_assignment.rb
|
444
452
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb
|
445
453
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user_type.rb
|
@@ -481,6 +489,9 @@ files:
|
|
481
489
|
- lib/twilio-ruby/rest/preview/trusted_comms.rb
|
482
490
|
- lib/twilio-ruby/rest/preview/trusted_comms/branded_call.rb
|
483
491
|
- lib/twilio-ruby/rest/preview/trusted_comms/business.rb
|
492
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand.rb
|
493
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel.rb
|
494
|
+
- lib/twilio-ruby/rest/preview/trusted_comms/business/brand/branded_channel/channel.rb
|
484
495
|
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights.rb
|
485
496
|
- lib/twilio-ruby/rest/preview/trusted_comms/business/insights/impressions_rate.rb
|
486
497
|
- lib/twilio-ruby/rest/preview/trusted_comms/cps.rb
|
@@ -565,6 +576,9 @@ files:
|
|
565
576
|
- lib/twilio-ruby/rest/supersim/v1.rb
|
566
577
|
- lib/twilio-ruby/rest/supersim/v1/command.rb
|
567
578
|
- lib/twilio-ruby/rest/supersim/v1/fleet.rb
|
579
|
+
- lib/twilio-ruby/rest/supersim/v1/network.rb
|
580
|
+
- lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb
|
581
|
+
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
|
568
582
|
- lib/twilio-ruby/rest/supersim/v1/sim.rb
|
569
583
|
- lib/twilio-ruby/rest/supersim/v1/usage_record.rb
|
570
584
|
- lib/twilio-ruby/rest/sync.rb
|
@@ -616,7 +630,11 @@ files:
|
|
616
630
|
- lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb
|
617
631
|
- lib/twilio-ruby/rest/verify.rb
|
618
632
|
- lib/twilio-ruby/rest/verify/v2.rb
|
633
|
+
- lib/twilio-ruby/rest/verify/v2/form.rb
|
619
634
|
- lib/twilio-ruby/rest/verify/v2/service.rb
|
635
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity.rb
|
636
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
|
637
|
+
- lib/twilio-ruby/rest/verify/v2/service/entity/factor/challenge.rb
|
620
638
|
- lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
|
621
639
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb
|
622
640
|
- lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb
|
@@ -637,11 +655,16 @@ files:
|
|
637
655
|
- lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_subscribed_track.rb
|
638
656
|
- lib/twilio-ruby/rest/voice.rb
|
639
657
|
- lib/twilio-ruby/rest/voice/v1.rb
|
658
|
+
- lib/twilio-ruby/rest/voice/v1/byoc_trunk.rb
|
659
|
+
- lib/twilio-ruby/rest/voice/v1/connection_policy.rb
|
660
|
+
- lib/twilio-ruby/rest/voice/v1/connection_policy/connection_policy_target.rb
|
640
661
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions.rb
|
641
662
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/bulk_country_update.rb
|
642
663
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb
|
643
664
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
|
644
665
|
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb
|
666
|
+
- lib/twilio-ruby/rest/voice/v1/ip_record.rb
|
667
|
+
- lib/twilio-ruby/rest/voice/v1/source_ip_mapping.rb
|
645
668
|
- lib/twilio-ruby/rest/wireless.rb
|
646
669
|
- lib/twilio-ruby/rest/wireless/v1.rb
|
647
670
|
- lib/twilio-ruby/rest/wireless/v1/command.rb
|
@@ -760,6 +783,7 @@ files:
|
|
760
783
|
- spec/integration/autopilot/v1/assistant/task_spec.rb
|
761
784
|
- spec/integration/autopilot/v1/assistant/webhook_spec.rb
|
762
785
|
- spec/integration/autopilot/v1/assistant_spec.rb
|
786
|
+
- spec/integration/autopilot/v1/restore_assistant_spec.rb
|
763
787
|
- spec/integration/bulkexports/v1/export/day_spec.rb
|
764
788
|
- spec/integration/bulkexports/v1/export/export_custom_job_spec.rb
|
765
789
|
- spec/integration/bulkexports/v1/export/job_spec.rb
|
@@ -833,6 +857,7 @@ files:
|
|
833
857
|
- spec/integration/notify/v1/service/binding_spec.rb
|
834
858
|
- spec/integration/notify/v1/service/notification_spec.rb
|
835
859
|
- spec/integration/notify/v1/service_spec.rb
|
860
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb
|
836
861
|
- spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb
|
837
862
|
- spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb
|
838
863
|
- spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb
|
@@ -868,6 +893,9 @@ files:
|
|
868
893
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
869
894
|
- spec/integration/preview/sync/service_spec.rb
|
870
895
|
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
896
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
|
897
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
|
898
|
+
- spec/integration/preview/trusted_comms/business/brand_spec.rb
|
871
899
|
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
872
900
|
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
873
901
|
- spec/integration/preview/trusted_comms/business_spec.rb
|
@@ -939,6 +967,9 @@ files:
|
|
939
967
|
- spec/integration/studio/v2/flow_validate_spec.rb
|
940
968
|
- spec/integration/supersim/v1/command_spec.rb
|
941
969
|
- spec/integration/supersim/v1/fleet_spec.rb
|
970
|
+
- spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb
|
971
|
+
- spec/integration/supersim/v1/network_access_profile_spec.rb
|
972
|
+
- spec/integration/supersim/v1/network_spec.rb
|
942
973
|
- spec/integration/supersim/v1/sim_spec.rb
|
943
974
|
- spec/integration/supersim/v1/usage_record_spec.rb
|
944
975
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
@@ -982,6 +1013,10 @@ files:
|
|
982
1013
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
983
1014
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
984
1015
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1016
|
+
- spec/integration/verify/v2/form_spec.rb
|
1017
|
+
- spec/integration/verify/v2/service/entity/factor/challenge_spec.rb
|
1018
|
+
- spec/integration/verify/v2/service/entity/factor_spec.rb
|
1019
|
+
- spec/integration/verify/v2/service/entity_spec.rb
|
985
1020
|
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
986
1021
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
987
1022
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
@@ -999,11 +1034,16 @@ files:
|
|
999
1034
|
- spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
|
1000
1035
|
- spec/integration/video/v1/room/room_participant_spec.rb
|
1001
1036
|
- spec/integration/video/v1/room_spec.rb
|
1037
|
+
- spec/integration/voice/v1/byoc_trunk_spec.rb
|
1038
|
+
- spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb
|
1039
|
+
- spec/integration/voice/v1/connection_policy_spec.rb
|
1002
1040
|
- spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb
|
1003
1041
|
- spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb
|
1004
1042
|
- spec/integration/voice/v1/dialing_permissions/country_spec.rb
|
1005
1043
|
- spec/integration/voice/v1/dialing_permissions/settings_spec.rb
|
1006
1044
|
- spec/integration/voice/v1/dialing_permissions_spec.rb
|
1045
|
+
- spec/integration/voice/v1/ip_record_spec.rb
|
1046
|
+
- spec/integration/voice/v1/source_ip_mapping_spec.rb
|
1007
1047
|
- spec/integration/wireless/v1/command_spec.rb
|
1008
1048
|
- spec/integration/wireless/v1/rate_plan_spec.rb
|
1009
1049
|
- spec/integration/wireless/v1/sim/data_session_spec.rb
|
@@ -1024,7 +1064,7 @@ files:
|
|
1024
1064
|
- spec/util/configuration_spec.rb
|
1025
1065
|
- spec/util/url_encode_spec.rb
|
1026
1066
|
- twilio-ruby.gemspec
|
1027
|
-
homepage:
|
1067
|
+
homepage: https://github.com/twilio/twilio-ruby
|
1028
1068
|
licenses:
|
1029
1069
|
- MIT
|
1030
1070
|
metadata:
|
@@ -1050,7 +1090,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1050
1090
|
- !ruby/object:Gem::Version
|
1051
1091
|
version: '0'
|
1052
1092
|
requirements: []
|
1053
|
-
rubygems_version: 3.0.
|
1093
|
+
rubygems_version: 3.0.8
|
1054
1094
|
signing_key:
|
1055
1095
|
specification_version: 4
|
1056
1096
|
summary: The official library for communicating with the Twilio REST API, building
|
@@ -1158,6 +1198,7 @@ test_files:
|
|
1158
1198
|
- spec/integration/autopilot/v1/assistant/task_spec.rb
|
1159
1199
|
- spec/integration/autopilot/v1/assistant/webhook_spec.rb
|
1160
1200
|
- spec/integration/autopilot/v1/assistant_spec.rb
|
1201
|
+
- spec/integration/autopilot/v1/restore_assistant_spec.rb
|
1161
1202
|
- spec/integration/bulkexports/v1/export/day_spec.rb
|
1162
1203
|
- spec/integration/bulkexports/v1/export/export_custom_job_spec.rb
|
1163
1204
|
- spec/integration/bulkexports/v1/export/job_spec.rb
|
@@ -1231,6 +1272,7 @@ test_files:
|
|
1231
1272
|
- spec/integration/notify/v1/service/binding_spec.rb
|
1232
1273
|
- spec/integration/notify/v1/service/notification_spec.rb
|
1233
1274
|
- spec/integration/notify/v1/service_spec.rb
|
1275
|
+
- spec/integration/numbers/v2/regulatory_compliance/bundle/evaluation_spec.rb
|
1234
1276
|
- spec/integration/numbers/v2/regulatory_compliance/bundle/item_assignment_spec.rb
|
1235
1277
|
- spec/integration/numbers/v2/regulatory_compliance/bundle_spec.rb
|
1236
1278
|
- spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb
|
@@ -1266,6 +1308,9 @@ test_files:
|
|
1266
1308
|
- spec/integration/preview/sync/service/sync_map_spec.rb
|
1267
1309
|
- spec/integration/preview/sync/service_spec.rb
|
1268
1310
|
- spec/integration/preview/trusted_comms/branded_call_spec.rb
|
1311
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel/channel_spec.rb
|
1312
|
+
- spec/integration/preview/trusted_comms/business/brand/branded_channel_spec.rb
|
1313
|
+
- spec/integration/preview/trusted_comms/business/brand_spec.rb
|
1269
1314
|
- spec/integration/preview/trusted_comms/business/insights/impressions_rate_spec.rb
|
1270
1315
|
- spec/integration/preview/trusted_comms/business/insights_spec.rb
|
1271
1316
|
- spec/integration/preview/trusted_comms/business_spec.rb
|
@@ -1337,6 +1382,9 @@ test_files:
|
|
1337
1382
|
- spec/integration/studio/v2/flow_validate_spec.rb
|
1338
1383
|
- spec/integration/supersim/v1/command_spec.rb
|
1339
1384
|
- spec/integration/supersim/v1/fleet_spec.rb
|
1385
|
+
- spec/integration/supersim/v1/network_access_profile/network_access_profile_network_spec.rb
|
1386
|
+
- spec/integration/supersim/v1/network_access_profile_spec.rb
|
1387
|
+
- spec/integration/supersim/v1/network_spec.rb
|
1340
1388
|
- spec/integration/supersim/v1/sim_spec.rb
|
1341
1389
|
- spec/integration/supersim/v1/usage_record_spec.rb
|
1342
1390
|
- spec/integration/sync/v1/service/document/document_permission_spec.rb
|
@@ -1380,6 +1428,10 @@ test_files:
|
|
1380
1428
|
- spec/integration/trunking/v1/trunk/origination_url_spec.rb
|
1381
1429
|
- spec/integration/trunking/v1/trunk/phone_number_spec.rb
|
1382
1430
|
- spec/integration/trunking/v1/trunk_spec.rb
|
1431
|
+
- spec/integration/verify/v2/form_spec.rb
|
1432
|
+
- spec/integration/verify/v2/service/entity/factor/challenge_spec.rb
|
1433
|
+
- spec/integration/verify/v2/service/entity/factor_spec.rb
|
1434
|
+
- spec/integration/verify/v2/service/entity_spec.rb
|
1383
1435
|
- spec/integration/verify/v2/service/messaging_configuration_spec.rb
|
1384
1436
|
- spec/integration/verify/v2/service/rate_limit/bucket_spec.rb
|
1385
1437
|
- spec/integration/verify/v2/service/rate_limit_spec.rb
|
@@ -1397,11 +1449,16 @@ test_files:
|
|
1397
1449
|
- spec/integration/video/v1/room/room_participant/room_participant_subscribed_track_spec.rb
|
1398
1450
|
- spec/integration/video/v1/room/room_participant_spec.rb
|
1399
1451
|
- spec/integration/video/v1/room_spec.rb
|
1452
|
+
- spec/integration/voice/v1/byoc_trunk_spec.rb
|
1453
|
+
- spec/integration/voice/v1/connection_policy/connection_policy_target_spec.rb
|
1454
|
+
- spec/integration/voice/v1/connection_policy_spec.rb
|
1400
1455
|
- spec/integration/voice/v1/dialing_permissions/bulk_country_update_spec.rb
|
1401
1456
|
- spec/integration/voice/v1/dialing_permissions/country/highrisk_special_prefix_spec.rb
|
1402
1457
|
- spec/integration/voice/v1/dialing_permissions/country_spec.rb
|
1403
1458
|
- spec/integration/voice/v1/dialing_permissions/settings_spec.rb
|
1404
1459
|
- spec/integration/voice/v1/dialing_permissions_spec.rb
|
1460
|
+
- spec/integration/voice/v1/ip_record_spec.rb
|
1461
|
+
- spec/integration/voice/v1/source_ip_mapping_spec.rb
|
1405
1462
|
- spec/integration/wireless/v1/command_spec.rb
|
1406
1463
|
- spec/integration/wireless/v1/rate_plan_spec.rb
|
1407
1464
|
- spec/integration/wireless/v1/sim/data_session_spec.rb
|