twilio-ruby 5.54.0 → 5.57.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/.rubocop_todo.yml +7 -7
- data/.travis.yml +2 -2
- data/CHANGES.md +52 -0
- data/README.md +10 -2
- data/lib/twilio-ruby.rb +5 -15
- data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
- data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
- data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
- data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
- data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
- data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
- data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +0 -0
- data/lib/twilio-ruby/http.rb +5 -0
- data/lib/twilio-ruby/http/http_client.rb +11 -1
- data/lib/twilio-ruby/rest.rb +13 -0
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +8 -7
- data/lib/twilio-ruby/rest/api/v2010/account/message.rb +2 -2
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +7 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +44 -0
- data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
- data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -0
- data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
- data/lib/twilio-ruby/rest/frontline_api.rb +47 -0
- data/lib/twilio-ruby/rest/frontline_api/v1.rb +45 -0
- data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +233 -0
- data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +7 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim.rb +29 -0
- data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +15 -6
- data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +6 -7
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +17 -9
@@ -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.
|
4
|
+
version: 5.57.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-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -236,23 +236,25 @@ files:
|
|
236
236
|
- githooks/pre-commit
|
237
237
|
- lib/rack/twilio_webhook_authentication.rb
|
238
238
|
- lib/twilio-ruby.rb
|
239
|
-
- lib/twilio-ruby/framework/domain.rb
|
240
|
-
- lib/twilio-ruby/framework/error.rb
|
241
|
-
- lib/twilio-ruby/framework/helper.rb
|
242
|
-
- lib/twilio-ruby/framework/obsolete_client.rb
|
243
|
-
- lib/twilio-ruby/framework/page.rb
|
244
239
|
- lib/twilio-ruby/framework/request.rb
|
245
|
-
- lib/twilio-ruby/framework/resource.rb
|
246
240
|
- lib/twilio-ruby/framework/response.rb
|
241
|
+
- lib/twilio-ruby/framework/rest/domain.rb
|
242
|
+
- lib/twilio-ruby/framework/rest/error.rb
|
243
|
+
- lib/twilio-ruby/framework/rest/helper.rb
|
244
|
+
- lib/twilio-ruby/framework/rest/obsolete_client.rb
|
245
|
+
- lib/twilio-ruby/framework/rest/page.rb
|
246
|
+
- lib/twilio-ruby/framework/rest/resource.rb
|
247
|
+
- lib/twilio-ruby/framework/rest/version.rb
|
247
248
|
- lib/twilio-ruby/framework/serialize.rb
|
248
249
|
- lib/twilio-ruby/framework/twilio_response.rb
|
249
250
|
- lib/twilio-ruby/framework/values.rb
|
250
|
-
- lib/twilio-ruby/
|
251
|
+
- lib/twilio-ruby/http.rb
|
251
252
|
- lib/twilio-ruby/http/http_client.rb
|
252
253
|
- lib/twilio-ruby/jwt/access_token.rb
|
253
254
|
- lib/twilio-ruby/jwt/client_capability.rb
|
254
255
|
- lib/twilio-ruby/jwt/jwt.rb
|
255
256
|
- lib/twilio-ruby/jwt/task_router.rb
|
257
|
+
- lib/twilio-ruby/rest.rb
|
256
258
|
- lib/twilio-ruby/rest/accounts.rb
|
257
259
|
- lib/twilio-ruby/rest/accounts/v1.rb
|
258
260
|
- lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
|
@@ -408,7 +410,9 @@ files:
|
|
408
410
|
- lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb
|
409
411
|
- lib/twilio-ruby/rest/conversations/v1/service/role.rb
|
410
412
|
- lib/twilio-ruby/rest/conversations/v1/service/user.rb
|
413
|
+
- lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb
|
411
414
|
- lib/twilio-ruby/rest/conversations/v1/user.rb
|
415
|
+
- lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb
|
412
416
|
- lib/twilio-ruby/rest/events.rb
|
413
417
|
- lib/twilio-ruby/rest/events/v1.rb
|
414
418
|
- lib/twilio-ruby/rest/events/v1/event_type.rb
|
@@ -429,6 +433,9 @@ files:
|
|
429
433
|
- lib/twilio-ruby/rest/flex_api/v1/configuration.rb
|
430
434
|
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
|
431
435
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
436
|
+
- lib/twilio-ruby/rest/frontline_api.rb
|
437
|
+
- lib/twilio-ruby/rest/frontline_api/v1.rb
|
438
|
+
- lib/twilio-ruby/rest/frontline_api/v1/user.rb
|
432
439
|
- lib/twilio-ruby/rest/insights.rb
|
433
440
|
- lib/twilio-ruby/rest/insights/v1.rb
|
434
441
|
- lib/twilio-ruby/rest/insights/v1/call.rb
|
@@ -619,6 +626,7 @@ files:
|
|
619
626
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb
|
620
627
|
- lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb
|
621
628
|
- lib/twilio-ruby/rest/supersim/v1/sim.rb
|
629
|
+
- lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb
|
622
630
|
- lib/twilio-ruby/rest/supersim/v1/sms_command.rb
|
623
631
|
- lib/twilio-ruby/rest/supersim/v1/usage_record.rb
|
624
632
|
- lib/twilio-ruby/rest/sync.rb
|