twilio-ruby 5.70.0 → 5.72.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 +4 -4
- data/CHANGES.md +47 -0
- data/Makefile +6 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list/ip_address.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -3
- data/lib/twilio-ruby/rest/client.rb +14 -0
- data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +14 -0
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +4 -5
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +559 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +16 -0
- data/lib/twilio-ruby/rest/messaging.rb +8 -0
- data/lib/twilio-ruby/rest/microvisor/v1/app.rb +305 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +332 -0
- data/lib/twilio-ruby/rest/microvisor/v1.rb +60 -0
- data/lib/twilio-ruby/rest/microvisor.rb +54 -0
- data/lib/twilio-ruby/rest/preview.rb +0 -25
- data/lib/twilio-ruby/rest/routes/v2/phone_number.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2/sip_domain.rb +231 -0
- data/lib/twilio-ruby/rest/routes/v2/trunk.rb +235 -0
- data/lib/twilio-ruby/rest/routes/v2.rb +76 -0
- data/lib/twilio-ruby/rest/routes.rb +62 -0
- data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +16 -6
- data/lib/twilio-ruby/rest/verify/v2/safelist.rb +215 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +7 -8
- data/lib/twilio-ruby/rest/verify/v2.rb +18 -0
- data/lib/twilio-ruby/rest/verify.rb +8 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_anonymize.rb +240 -0
- data/lib/twilio-ruby/rest/video/v1/room/room_participant.rb +16 -0
- data/lib/twilio-ruby/security/request_validator.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +14 -8
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/day.rb +0 -294
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/export_custom_job.rb +0 -275
- data/lib/twilio-ruby/rest/preview/bulk_exports/export/job.rb +0 -249
- data/lib/twilio-ruby/rest/preview/bulk_exports/export.rb +0 -251
- data/lib/twilio-ruby/rest/preview/bulk_exports/export_configuration.rb +0 -234
- data/lib/twilio-ruby/rest/preview/bulk_exports.rb +0 -62
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f39c64decfb1c150e5fd70c820f4355efb4517ec
|
4
|
+
data.tar.gz: cf1c9cd3f5c7b5974f05db919c3e03b155037e81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a451b15d66f86d78688b38fe8de87d9a6783a0dbdf6fe2e7aa98952193d90035b87401cb61ae099be49af3d476eb2c4395681e49300f7bfc33cc949c23540c27
|
7
|
+
data.tar.gz: 17cb4efb42d41d2a5ffc741c508037d574c3a98a3761d45f5e58f3b4f8e1db954398815edbc8b680fd059e5567c9c8ac5c18994f5b387e8f7c06a70e5401a09a
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,53 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2022-09-07] Version 5.72.0
|
5
|
+
---------------------------
|
6
|
+
**Flex**
|
7
|
+
- Removed redundant `close` status from Flex Interactions flow **(breaking change)**
|
8
|
+
- Adding `debugger_integration` and `flex_ui_status_report` to Flex Configuration
|
9
|
+
|
10
|
+
**Messaging**
|
11
|
+
- Add create, list and get tollfree verification API
|
12
|
+
|
13
|
+
**Verify**
|
14
|
+
- Verify SafeList API endpoints added.
|
15
|
+
|
16
|
+
**Video**
|
17
|
+
- Add `Anonymize` API
|
18
|
+
|
19
|
+
**Twiml**
|
20
|
+
- Update `event` value `call-in-progress` to `call-answered`
|
21
|
+
|
22
|
+
|
23
|
+
[2022-08-24] Version 5.71.0
|
24
|
+
---------------------------
|
25
|
+
**Library - Test**
|
26
|
+
- [PR #615](https://github.com/twilio/twilio-ruby/pull/615): add test-docker rule. Thanks to [@beebzz](https://github.com/beebzz)!
|
27
|
+
|
28
|
+
**Api**
|
29
|
+
- Remove `beta feature` from scheduling params and remove optimize parameters. **(breaking change)**
|
30
|
+
|
31
|
+
**Routes**
|
32
|
+
- Remove Duplicate Create Method - Update Method will work even if Inbound Processing Region is currently empty/404. **(breaking change)**
|
33
|
+
|
34
|
+
**Twiml**
|
35
|
+
- Add new Polly Neural voices
|
36
|
+
- Add new languages to SSML `<lang>`.
|
37
|
+
|
38
|
+
|
39
|
+
[2022-08-10] Version 5.70.1
|
40
|
+
---------------------------
|
41
|
+
**Library - Fix**
|
42
|
+
- [PR #614](https://github.com/twilio/twilio-ruby/pull/614): Make RequestValidator#validate fail if URL has no query params. Thanks to [@haffla](https://github.com/haffla)!
|
43
|
+
|
44
|
+
**Routes**
|
45
|
+
- Inbound Proccessing Region API - Public GA
|
46
|
+
|
47
|
+
**Supersim**
|
48
|
+
- Allow updating `DataLimit` on a Fleet
|
49
|
+
|
50
|
+
|
4
51
|
[2022-07-21] Version 5.70.0
|
5
52
|
---------------------------
|
6
53
|
**Flex**
|
data/Makefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
.PHONY: githooks install test lint docs docker-build docker-push
|
1
|
+
.PHONY: githooks install test test-docker lint docs docker-build docker-push
|
2
2
|
|
3
3
|
githooks:
|
4
4
|
ln -sf ../../githooks/pre-commit .git/hooks/pre-commit
|
@@ -9,6 +9,10 @@ install:
|
|
9
9
|
test:
|
10
10
|
bundle exec rake spec
|
11
11
|
|
12
|
+
test-docker:
|
13
|
+
docker build -t twilio/twilio-ruby .
|
14
|
+
docker run twilio/twilio-ruby bundle exec rake spec
|
15
|
+
|
12
16
|
docs:
|
13
17
|
bundle exec yard doc --output-dir ./doc
|
14
18
|
|
@@ -17,7 +21,7 @@ authors:
|
|
17
21
|
git log --raw | grep "^Author: " | cut -d ' ' -f2- | cut -d '<' -f1 | sed 's/^/- /' | sort | uniq >> AUTHORS.md
|
18
22
|
|
19
23
|
API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
|
20
|
-
CURRENT_TAG=$(shell
|
24
|
+
CURRENT_TAG=$(shell expr "${GITHUB_TAG}" : ".*-rc.*" >/dev/null && echo "rc" || echo "latest")
|
21
25
|
docker-build:
|
22
26
|
docker build -t twilio/twilio-ruby .
|
23
27
|
docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.
|
37
|
+
gem 'twilio-ruby', '~> 5.72.0'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.
|
43
|
+
gem install twilio-ruby -v 5.72.0
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -113,7 +113,7 @@ module Twilio
|
|
113
113
|
##
|
114
114
|
# Create the IpAddressInstance
|
115
115
|
# @param [String] friendly_name A human readable descriptive text for this
|
116
|
-
# resource, up to
|
116
|
+
# resource, up to 255 characters long.
|
117
117
|
# @param [String] ip_address An IP address in dotted decimal notation from which
|
118
118
|
# you want to accept traffic. Any SIP requests from this IP address will be
|
119
119
|
# allowed by Twilio. IPv4 only supported today.
|
@@ -224,7 +224,7 @@ module Twilio
|
|
224
224
|
# you want to accept traffic. Any SIP requests from this IP address will be
|
225
225
|
# allowed by Twilio. IPv4 only supported today.
|
226
226
|
# @param [String] friendly_name A human readable descriptive text for this
|
227
|
-
# resource, up to
|
227
|
+
# resource, up to 255 characters long.
|
228
228
|
# @param [String] cidr_prefix_length An integer representing the length of the
|
229
229
|
# CIDR prefix to use with this IP address when accepting traffic. By default the
|
230
230
|
# entire IP address is used.
|
@@ -335,7 +335,7 @@ module Twilio
|
|
335
335
|
end
|
336
336
|
|
337
337
|
##
|
338
|
-
# @return [String] A human readable descriptive text for this resource, up to
|
338
|
+
# @return [String] A human readable descriptive text for this resource, up to 255 characters long.
|
339
339
|
def friendly_name
|
340
340
|
@properties['friendly_name']
|
341
341
|
end
|
@@ -389,7 +389,7 @@ module Twilio
|
|
389
389
|
# you want to accept traffic. Any SIP requests from this IP address will be
|
390
390
|
# allowed by Twilio. IPv4 only supported today.
|
391
391
|
# @param [String] friendly_name A human readable descriptive text for this
|
392
|
-
# resource, up to
|
392
|
+
# resource, up to 255 characters long.
|
393
393
|
# @param [String] cidr_prefix_length An integer representing the length of the
|
394
394
|
# CIDR prefix to use with this IP address when accepting traffic. By default the
|
395
395
|
# entire IP address is used.
|
@@ -110,7 +110,7 @@ module Twilio
|
|
110
110
|
##
|
111
111
|
# Create the IpAccessControlListInstance
|
112
112
|
# @param [String] friendly_name A human readable descriptive text that describes
|
113
|
-
# the IpAccessControlList, up to
|
113
|
+
# the IpAccessControlList, up to 255 characters long.
|
114
114
|
# @return [IpAccessControlListInstance] Created IpAccessControlListInstance
|
115
115
|
def create(friendly_name: nil)
|
116
116
|
data = Twilio::Values.of({'FriendlyName' => friendly_name, })
|
@@ -193,7 +193,7 @@ module Twilio
|
|
193
193
|
|
194
194
|
##
|
195
195
|
# Update the IpAccessControlListInstance
|
196
|
-
# @param [String] friendly_name A human readable descriptive text, up to
|
196
|
+
# @param [String] friendly_name A human readable descriptive text, up to 255
|
197
197
|
# characters long.
|
198
198
|
# @return [IpAccessControlListInstance] Updated IpAccessControlListInstance
|
199
199
|
def update(friendly_name: nil)
|
@@ -344,7 +344,7 @@ module Twilio
|
|
344
344
|
|
345
345
|
##
|
346
346
|
# Update the IpAccessControlListInstance
|
347
|
-
# @param [String] friendly_name A human readable descriptive text, up to
|
347
|
+
# @param [String] friendly_name A human readable descriptive text, up to 255
|
348
348
|
# characters long.
|
349
349
|
# @return [IpAccessControlListInstance] Updated IpAccessControlListInstance
|
350
350
|
def update(friendly_name: nil)
|
@@ -49,6 +49,7 @@ module Twilio
|
|
49
49
|
@preview = nil
|
50
50
|
@pricing = nil
|
51
51
|
@proxy = nil
|
52
|
+
@routes = nil
|
52
53
|
@serverless = nil
|
53
54
|
@studio = nil
|
54
55
|
@sync = nil
|
@@ -61,6 +62,7 @@ module Twilio
|
|
61
62
|
@wireless = nil
|
62
63
|
@supersim = nil
|
63
64
|
@bulkexports = nil
|
65
|
+
@microvisor = nil
|
64
66
|
end
|
65
67
|
|
66
68
|
##
|
@@ -275,6 +277,12 @@ module Twilio
|
|
275
277
|
@proxy ||= Proxy.new self
|
276
278
|
end
|
277
279
|
|
280
|
+
##
|
281
|
+
# Access the Routes Twilio Domain
|
282
|
+
def routes
|
283
|
+
@routes ||= Routes.new self
|
284
|
+
end
|
285
|
+
|
278
286
|
##
|
279
287
|
# Access the Serverless Twilio Domain
|
280
288
|
def serverless
|
@@ -347,6 +355,12 @@ module Twilio
|
|
347
355
|
@bulkexports ||= Bulkexports.new self
|
348
356
|
end
|
349
357
|
|
358
|
+
##
|
359
|
+
# Access the Microvisor Twilio Domain
|
360
|
+
def microvisor
|
361
|
+
@microvisor ||= Microvisor.new self
|
362
|
+
end
|
363
|
+
|
350
364
|
##
|
351
365
|
# @param [String] sid The unique string that that we created to identify the
|
352
366
|
# Address resource.
|
@@ -171,6 +171,8 @@ module Twilio
|
|
171
171
|
'flex_insights_drilldown' => payload['flex_insights_drilldown'],
|
172
172
|
'flex_url' => payload['flex_url'],
|
173
173
|
'channel_configs' => payload['channel_configs'],
|
174
|
+
'debugger_integration' => payload['debugger_integration'],
|
175
|
+
'flex_ui_status_report' => payload['flex_ui_status_report'],
|
174
176
|
}
|
175
177
|
|
176
178
|
# Context
|
@@ -447,6 +449,18 @@ module Twilio
|
|
447
449
|
@properties['channel_configs']
|
448
450
|
end
|
449
451
|
|
452
|
+
##
|
453
|
+
# @return [Hash] Configurable parameters for Debugger Integration
|
454
|
+
def debugger_integration
|
455
|
+
@properties['debugger_integration']
|
456
|
+
end
|
457
|
+
|
458
|
+
##
|
459
|
+
# @return [Hash] Configurable parameters for Flex UI Status report
|
460
|
+
def flex_ui_status_report
|
461
|
+
@properties['flex_ui_status_report']
|
462
|
+
end
|
463
|
+
|
450
464
|
##
|
451
465
|
# Fetch the ConfigurationInstance
|
452
466
|
# @param [String] ui_version The Pinned UI version of the Configuration resource
|
@@ -33,11 +33,10 @@ module Twilio
|
|
33
33
|
# @param [String] status_callback_method The HTTP method Twilio should use to call
|
34
34
|
# the `status_callback` URL. Can be `POST` or `GET` and the default is `POST`.
|
35
35
|
# @param [String] max_duration The maximum time, in seconds, that the
|
36
|
-
# PlayerStreamer
|
37
|
-
# seconds, and the maximum value is 90000 seconds. Once this
|
38
|
-
# reached, Twilio will end the PlayerStreamer, regardless of
|
39
|
-
# still streaming.
|
40
|
-
# advised to explicitly set it on all their new PlayerStreamer resources.**
|
36
|
+
# PlayerStreamer is active (`created` or `started`) before automatically ends. The
|
37
|
+
# default value is 300 seconds, and the maximum value is 90000 seconds. Once this
|
38
|
+
# maximum duration is reached, Twilio will end the PlayerStreamer, regardless of
|
39
|
+
# whether media is still streaming.
|
41
40
|
# @return [PlayerStreamerInstance] Created PlayerStreamerInstance
|
42
41
|
def create(video: :unset, status_callback: :unset, status_callback_method: :unset, max_duration: :unset)
|
43
42
|
data = Twilio::Values.of({
|