twilio-ruby 5.54.0 → 5.54.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32e36d2240839f716f54c9d7071521c1cfc50f6325477e7fe093b220cc373789
|
4
|
+
data.tar.gz: 3b9e9209db5ddd89b78b1f504e5609d66c5a85aa83f20f55cb133a5d9e54e852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98cf8aaa6597b9948f8bc5e1f2d4093284ee71344bd5a104553324a851a50255b97b57b5333e3aeb7dcfbbee5f74d5d8185b943d052a482f7eab431e1bbf084c
|
7
|
+
data.tar.gz: 6ae58a103714ee0150afd19e134488b41f5f0f8ef96d7a0a01c851da749a548654e2c61e0c847227a7d76cf3c7ab5042a4591dcb9eeeaa7d075063307cffbec6
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2021-06-02] Version 5.54.1
|
5
|
+
---------------------------
|
6
|
+
**Events**
|
7
|
+
- join Sinks and Subscriptions service
|
8
|
+
|
9
|
+
**Verify**
|
10
|
+
- Improved the documentation of `challenge` adding the maximum and minimum expected lengths of some fields.
|
11
|
+
- Improve documentation regarding `notification` by updating the documentation of the field `ttl`.
|
12
|
+
|
13
|
+
|
4
14
|
[2021-05-19] Version 5.54.0
|
5
15
|
---------------------------
|
6
16
|
**Events**
|
data/README.md
CHANGED
@@ -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.54.
|
38
|
+
gem 'twilio-ruby', '~> 5.54.1'
|
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.54.
|
44
|
+
gem install twilio-ruby -v 5.54.1
|
45
45
|
```
|
46
46
|
|
47
47
|
To build and install the development branch yourself from the latest source:
|
@@ -38,16 +38,21 @@ module Twilio
|
|
38
38
|
# is five (5) minutes after Challenge creation. The max value is sixty (60)
|
39
39
|
# minutes after creation.
|
40
40
|
# @param [String] details_message Shown to the user when the push notification
|
41
|
-
# arrives. Required when `factor_type` is `push
|
41
|
+
# arrives. Required when `factor_type` is `push`. Can be up to 256 characters in
|
42
|
+
# length
|
42
43
|
# @param [Array[Hash]] details_fields A list of objects that describe the Fields
|
43
44
|
# included in the Challenge. Each object contains the label and value of the
|
44
|
-
# field
|
45
|
+
# field, the label can be up to 36 characters in length and the value can be up to
|
46
|
+
# 128 characters in length. Used when `factor_type` is `push`. There can be up to
|
47
|
+
# 20 details fields.
|
45
48
|
# @param [Hash] hidden_details Details provided to give context about the
|
46
49
|
# Challenge. Not shown to the end user. It must be a stringified JSON with only
|
47
|
-
# strings values eg. `{"ip": "172.168.1.234"}
|
50
|
+
# strings values eg. `{"ip": "172.168.1.234"}`. Can be up to 1024 characters in
|
51
|
+
# length
|
48
52
|
# @param [String] auth_payload Optional payload used to verify the Challenge upon
|
49
53
|
# creation. Only used with a Factor of type `totp` to carry the TOTP code that
|
50
|
-
# needs to be verified.
|
54
|
+
# needs to be verified. For `TOTP` this value must be between 3 and 8 characters
|
55
|
+
# long.
|
51
56
|
# @return [ChallengeInstance] Created ChallengeInstance
|
52
57
|
def create(factor_sid: nil, expiration_date: :unset, details_message: :unset, details_fields: :unset, hidden_details: :unset, auth_payload: :unset)
|
53
58
|
data = Twilio::Values.of({
|
@@ -246,7 +251,9 @@ module Twilio
|
|
246
251
|
##
|
247
252
|
# Update the ChallengeInstance
|
248
253
|
# @param [String] auth_payload The optional payload needed to verify the
|
249
|
-
# Challenge. E.g., a TOTP would use the numeric code.
|
254
|
+
# Challenge. E.g., a TOTP would use the numeric code. For `TOTP` this value must
|
255
|
+
# be between 3 and 8 characters long. For `Push` this value can be up to 5456
|
256
|
+
# characters in length
|
250
257
|
# @return [ChallengeInstance] Updated ChallengeInstance
|
251
258
|
def update(auth_payload: :unset)
|
252
259
|
data = Twilio::Values.of({'AuthPayload' => auth_payload, })
|
@@ -464,7 +471,9 @@ module Twilio
|
|
464
471
|
##
|
465
472
|
# Update the ChallengeInstance
|
466
473
|
# @param [String] auth_payload The optional payload needed to verify the
|
467
|
-
# Challenge. E.g., a TOTP would use the numeric code.
|
474
|
+
# Challenge. E.g., a TOTP would use the numeric code. For `TOTP` this value must
|
475
|
+
# be between 3 and 8 characters long. For `Push` this value can be up to 5456
|
476
|
+
# characters in length
|
468
477
|
# @return [ChallengeInstance] Updated ChallengeInstance
|
469
478
|
def update(auth_payload: :unset)
|
470
479
|
context.update(auth_payload: auth_payload, )
|
@@ -34,11 +34,10 @@ module Twilio
|
|
34
34
|
|
35
35
|
##
|
36
36
|
# Create the NotificationInstance
|
37
|
-
# @param [String] ttl How long, in seconds, the
|
38
|
-
#
|
39
|
-
# the
|
40
|
-
#
|
41
|
-
# Defaults to 300 seconds.
|
37
|
+
# @param [String] ttl How long, in seconds, the notification is valid. Can be an
|
38
|
+
# integer between 0 and 300. Default is 300. Delivery is attempted until the TTL
|
39
|
+
# elapses, even if the device is offline. 0 means that the notification delivery
|
40
|
+
# is attempted immediately, only once, and is not stored for future delivery.
|
42
41
|
# @return [NotificationInstance] Created NotificationInstance
|
43
42
|
def create(ttl: :unset)
|
44
43
|
data = Twilio::Values.of({'Ttl' => ttl, })
|
@@ -164,13 +163,13 @@ module Twilio
|
|
164
163
|
end
|
165
164
|
|
166
165
|
##
|
167
|
-
# @return [String] The priority of the
|
166
|
+
# @return [String] The priority of the notification.
|
168
167
|
def priority
|
169
168
|
@properties['priority']
|
170
169
|
end
|
171
170
|
|
172
171
|
##
|
173
|
-
# @return [String] How long, in seconds, the
|
172
|
+
# @return [String] How long, in seconds, the notification is valid.
|
174
173
|
def ttl
|
175
174
|
@properties['ttl']
|
176
175
|
end
|
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.54.
|
4
|
+
version: 5.54.1
|
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-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|