twilio-ruby 7.7.2 → 7.8.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +26 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/local.rb +3 -3
  5. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/machine_to_machine.rb +3 -3
  6. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/mobile.rb +3 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/national.rb +3 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/shared_cost.rb +3 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/toll_free.rb +3 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number_country/voip.rb +3 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +1 -1
  12. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +4 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +4 -4
  14. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +4 -4
  15. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +4 -4
  16. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +4 -4
  17. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +4 -4
  18. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +4 -4
  19. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +4 -4
  20. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +4 -4
  21. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +5 -5
  22. data/lib/twilio-ruby/rest/content/v1/content.rb +42 -2
  23. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +17 -1
  24. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb +217 -0
  25. data/lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb +217 -0
  26. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +43 -0
  27. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +29 -29
  28. data/lib/twilio-ruby/rest/messaging/v2.rb +1 -1
  29. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +3 -3
  30. data/lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb +339 -0
  31. data/lib/twilio-ruby/rest/numbers/v3.rb +40 -0
  32. data/lib/twilio-ruby/rest/numbers_base.rb +5 -0
  33. data/lib/twilio-ruby/rest/oauth/v2/token.rb +186 -0
  34. data/lib/twilio-ruby/rest/oauth/v2.rb +40 -0
  35. data/lib/twilio-ruby/rest/oauth_base.rb +6 -1
  36. data/lib/twilio-ruby/rest/verify/v2/new_challenge.rb +335 -0
  37. data/lib/twilio-ruby/rest/verify/v2/service/new_factor.rb +297 -0
  38. data/lib/twilio-ruby/rest/verify/v2/service.rb +38 -0
  39. data/lib/twilio-ruby/rest/verify/v2.rb +15 -0
  40. data/lib/twilio-ruby/rest/voice_base.rb +6 -1
  41. data/lib/twilio-ruby/twiml/voice_response.rb +20 -0
  42. data/lib/twilio-ruby/version.rb +1 -1
  43. data/twilio-ruby.gemspec +1 -1
  44. metadata +12 -4
@@ -22,6 +22,7 @@ module Twilio
22
22
  super
23
23
  @version = 'v2'
24
24
  @forms = nil
25
+ @new_challenge = nil
25
26
  @safelist = nil
26
27
  @services = nil
27
28
  @templates = nil
@@ -44,6 +45,20 @@ module Twilio
44
45
  end
45
46
  end
46
47
  ##
48
+ # @param [String] service_sid The unique SID identifier of the Service.
49
+ # @return [Twilio::REST::Verify::V2::NewChallengeContext] if serviceSid was passed.
50
+ # @return [Twilio::REST::Verify::V2::NewChallengeList]
51
+ def new_challenge(service_sid=:unset)
52
+ if service_sid.nil?
53
+ raise ArgumentError, 'service_sid cannot be nil'
54
+ end
55
+ if service_sid == :unset
56
+ @new_challenge ||= NewChallengeList.new self
57
+ else
58
+ NewChallengeContext.new(self, service_sid)
59
+ end
60
+ end
61
+ ##
47
62
  # @param [String] phone_number The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164).
48
63
  # @return [Twilio::REST::Verify::V2::SafelistContext] if phoneNumber was passed.
49
64
  # @return [Twilio::REST::Verify::V2::SafelistList]
@@ -21,12 +21,17 @@ module Twilio
21
21
  @base_url = "https://voice.twilio.com"
22
22
  @host = "voice.twilio.com"
23
23
  @port = 443
24
+ @v1 = nil
25
+ end
26
+
27
+ def v1
28
+ @v1 ||= Voice::V1.new self
24
29
  end
25
30
 
26
31
  ##
27
32
  # Provide a user friendly representation
28
33
  def to_s
29
- '<Twilio::REST::Voice>';
34
+ '<Twilio::REST::Voice::V1>';
30
35
  end
31
36
  end
32
37
  end
@@ -2049,6 +2049,26 @@ module Twilio
2049
2049
  yield(assistant) if block_given?
2050
2050
  append(assistant)
2051
2051
  end
2052
+
2053
+ ##
2054
+ # Create a new <AiSession> element
2055
+ # ai_connector:: The unique name or installed add-on sid that identifies the installed addon resource for the AI Connector
2056
+ # ai_session_configuration:: The unique name or id of the AiSession Configuration resource.
2057
+ # keyword_args:: additional attributes
2058
+ def ai_session(ai_connector: nil, ai_session_configuration: nil, **keyword_args)
2059
+ append(AiSession.new(ai_connector: ai_connector, ai_session_configuration: ai_session_configuration, **keyword_args))
2060
+ end
2061
+ end
2062
+
2063
+ ##
2064
+ # <AiSession> TwiML Noun
2065
+ class AiSession < TwiML
2066
+ def initialize(**keyword_args)
2067
+ super(**keyword_args)
2068
+ @name = 'AiSession'
2069
+
2070
+ yield(self) if block_given?
2071
+ end
2052
2072
  end
2053
2073
 
2054
2074
  ##
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.7.2'
2
+ VERSION = '7.8.1'
3
3
  end
data/twilio-ruby.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.extra_rdoc_files = ['README.md', 'LICENSE']
26
26
  spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'twilio-ruby', '--main', 'README.md']
27
27
 
28
- spec.add_dependency('jwt', '>= 1.5', '< 3.0')
28
+ spec.add_dependency('jwt', '>= 1.5', '< 4.0')
29
29
  spec.add_dependency('nokogiri', '>= 1.6', '< 2.0')
30
30
  spec.add_dependency('faraday', '>= 0.9', '< 3.0')
31
31
  # Workaround for RBX <= 2.2.1, should be fixed in next version
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: 7.7.2
4
+ version: 7.8.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: 2025-08-28 00:00:00.000000000 Z
11
+ date: 2025-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '3.0'
22
+ version: '4.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '3.0'
32
+ version: '4.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: nokogiri
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -524,6 +524,8 @@ files:
524
524
  - lib/twilio-ruby/rest/intelligence/v2/prebuilt_operator.rb
525
525
  - lib/twilio-ruby/rest/intelligence/v2/service.rb
526
526
  - lib/twilio-ruby/rest/intelligence/v2/transcript.rb
527
+ - lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_operator_results.rb
528
+ - lib/twilio-ruby/rest/intelligence/v2/transcript/encrypted_sentences.rb
527
529
  - lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb
528
530
  - lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb
529
531
  - lib/twilio-ruby/rest/intelligence/v2/transcript/sentence.rb
@@ -640,11 +642,15 @@ files:
640
642
  - lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/regulation.rb
641
643
  - lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
642
644
  - lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
645
+ - lib/twilio-ruby/rest/numbers/v3.rb
646
+ - lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb
643
647
  - lib/twilio-ruby/rest/numbers_base.rb
644
648
  - lib/twilio-ruby/rest/oauth.rb
645
649
  - lib/twilio-ruby/rest/oauth/v1.rb
646
650
  - lib/twilio-ruby/rest/oauth/v1/authorize.rb
647
651
  - lib/twilio-ruby/rest/oauth/v1/token.rb
652
+ - lib/twilio-ruby/rest/oauth/v2.rb
653
+ - lib/twilio-ruby/rest/oauth/v2/token.rb
648
654
  - lib/twilio-ruby/rest/oauth_base.rb
649
655
  - lib/twilio-ruby/rest/preview.rb
650
656
  - lib/twilio-ruby/rest/preview/hosted_numbers.rb
@@ -828,6 +834,7 @@ files:
828
834
  - lib/twilio-ruby/rest/verify.rb
829
835
  - lib/twilio-ruby/rest/verify/v2.rb
830
836
  - lib/twilio-ruby/rest/verify/v2/form.rb
837
+ - lib/twilio-ruby/rest/verify/v2/new_challenge.rb
831
838
  - lib/twilio-ruby/rest/verify/v2/safelist.rb
832
839
  - lib/twilio-ruby/rest/verify/v2/service.rb
833
840
  - lib/twilio-ruby/rest/verify/v2/service/access_token.rb
@@ -837,6 +844,7 @@ files:
837
844
  - lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
838
845
  - lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
839
846
  - lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
847
+ - lib/twilio-ruby/rest/verify/v2/service/new_factor.rb
840
848
  - lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb
841
849
  - lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb
842
850
  - lib/twilio-ruby/rest/verify/v2/service/verification.rb