twilio-ruby 5.51.0 → 5.53.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.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +22 -28
  3. data/CHANGES.md +50 -0
  4. data/README.md +3 -2
  5. data/lib/twilio-ruby/http/http_client.rb +3 -1
  6. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +23 -23
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  8. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -8
  9. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -8
  10. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +1 -7
  11. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +1 -9
  12. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -8
  13. data/lib/twilio-ruby/rest/events/v1/schema.rb +12 -12
  14. data/lib/twilio-ruby/rest/events/v1/schema/{schema_version.rb → version.rb} +37 -37
  15. data/lib/twilio-ruby/rest/events/v1/sink.rb +22 -0
  16. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +15 -12
  17. data/lib/twilio-ruby/rest/messaging/v1/service.rb +69 -26
  18. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +3 -3
  19. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  20. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  21. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +6 -6
  22. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +16 -4
  23. data/lib/twilio-ruby/rest/verify/v2/service.rb +61 -3
  24. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +39 -1
  25. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +202 -0
  26. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +45 -15
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. metadata +4 -3
@@ -34,38 +34,68 @@ module Twilio
34
34
 
35
35
  ##
36
36
  # Create the NewFactorInstance
37
- # @param [String] friendly_name The friendly name of this Factor. It can be up to
38
- # 64 characters.
37
+ # @param [String] friendly_name The friendly name of this Factor. This can be any
38
+ # string up to 64 characters, meant for humans to distinguish between Factors.
39
+ # For `factor_type` `push`, this could be a device name.
40
+ # For `factor_type` `totp`, this value is used as the “account name” in
41
+ # constructing the `binding.uri` property.
42
+ # At the same time, we recommend avoiding providing PII.
39
43
  # @param [new_factor.FactorTypes] factor_type The Type of this Factor. Currently
40
- # only `push` is supported
44
+ # `push` and `totp` are supported. For `totp` to work, you need to contact {Twilio
45
+ # sales}[https://www.twilio.com/help/sales] first to have the Verify TOTP feature
46
+ # enabled for your Twilio account.
41
47
  # @param [String] binding_alg The algorithm used when `factor_type` is `push`.
42
48
  # Algorithm supported: `ES256`
43
49
  # @param [String] binding_public_key The Ecdsa public key in PKIX, ASN.1 DER
44
- # format encoded in Base64
50
+ # format encoded in Base64.
51
+ #
52
+ # Required when `factor_type` is `push`
45
53
  # @param [String] config_app_id The ID that uniquely identifies your app in the
46
- # Google or Apple store, such as `com.example.myapp`. Required when `factor_type`
47
- # is `push`. If specified, it can be up to 100 characters long.
54
+ # Google or Apple store, such as `com.example.myapp`.
55
+ #
56
+ # Required when `factor_type` is `push`. If specified, it can be up to 100
57
+ # characters long.
48
58
  # @param [new_factor.NotificationPlatforms] config_notification_platform The
49
59
  # transport technology used to generate the Notification Token. Can be `apn` or
50
- # `fcm`. Required when `factor_type` is `push`
60
+ # `fcm`.
61
+ #
62
+ # Required when `factor_type` is `push`
51
63
  # @param [String] config_notification_token For APN, the device token. For FCM the
52
- # registration token. It used to send the push notifications. Required when
53
- # `factor_type` is `push`. If specified, this value must be between 32 and 255
64
+ # registration token. It used to send the push notifications.
65
+ #
66
+ # Used when `factor_type` is `push`. If specified, must be between 32 and 255
54
67
  # characters long.
55
68
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
56
69
  # the factor
70
+ #
71
+ # Used when `factor_type` is `push`
57
72
  # @param [String] binding_secret The shared secret for TOTP factors encoded in
58
- # Base32
73
+ # Base32. This can be provided when creating the Factor, otherwise it will be
74
+ # generated.
75
+ #
76
+ # Used when `factor_type` is `totp`
59
77
  # @param [String] config_time_step Defines how often, in seconds, are TOTP codes
60
78
  # generated. i.e, a new TOTP code is generated every time_step seconds. Must be
61
- # between 20 and 60 seconds, inclusive. Defaults to 30 seconds
79
+ # between 20 and 60 seconds, inclusive. The default value is defined at the
80
+ # service level in the property `totp.time_step`. Defaults to 30 seconds if not
81
+ # configured.
82
+ #
83
+ # Used when `factor_type` is `totp`
62
84
  # @param [String] config_skew The number of time-steps, past and future, that are
63
- # valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults
64
- # to 1
85
+ # valid for validation of TOTP codes. Must be between 0 and 2, inclusive. The
86
+ # default value is defined at the service level in the property `totp.skew`. If
87
+ # not configured defaults to 1.
88
+ #
89
+ # Used when `factor_type` is `totp`
65
90
  # @param [String] config_code_length Number of digits for generated TOTP codes.
66
- # Must be between 3 and 8, inclusive. Defaults to 6
91
+ # Must be between 3 and 8, inclusive. The default value is defined at the service
92
+ # level in the property `totp.code_length`. If not configured defaults to 6.
93
+ #
94
+ # Used when `factor_type` is `totp`
67
95
  # @param [new_factor.TotpAlgorithms] config_alg The algorithm used to derive the
68
- # TOTP codes. Can be `sha1`, `sha256` or `sha512`. Defaults to `sha1`
96
+ # TOTP codes. Can be `sha1`, `sha256` or `sha512`. Defaults to `sha1`.
97
+ #
98
+ # Used when `factor_type` is `totp`
69
99
  # @return [NewFactorInstance] Created NewFactorInstance
70
100
  def create(friendly_name: nil, factor_type: nil, binding_alg: :unset, binding_public_key: :unset, config_app_id: :unset, config_notification_platform: :unset, config_notification_token: :unset, config_sdk_version: :unset, binding_secret: :unset, config_time_step: :unset, config_skew: :unset, config_code_length: :unset, config_alg: :unset)
71
101
  data = Twilio::Values.of({
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.51.0'
2
+ VERSION = '5.53.0'
3
3
  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.51.0
4
+ version: 5.53.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-04-07 00:00:00.000000000 Z
11
+ date: 2021-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -413,7 +413,7 @@ files:
413
413
  - lib/twilio-ruby/rest/events/v1.rb
414
414
  - lib/twilio-ruby/rest/events/v1/event_type.rb
415
415
  - lib/twilio-ruby/rest/events/v1/schema.rb
416
- - lib/twilio-ruby/rest/events/v1/schema/schema_version.rb
416
+ - lib/twilio-ruby/rest/events/v1/schema/version.rb
417
417
  - lib/twilio-ruby/rest/events/v1/sink.rb
418
418
  - lib/twilio-ruby/rest/events/v1/sink/sink_test.rb
419
419
  - lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb
@@ -691,6 +691,7 @@ files:
691
691
  - lib/twilio-ruby/rest/verify/v2/service/access_token.rb
692
692
  - lib/twilio-ruby/rest/verify/v2/service/entity.rb
693
693
  - lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb
694
+ - lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
694
695
  - lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
695
696
  - lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
696
697
  - lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb