twilio-ruby 7.8.1 → 7.8.3

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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +16 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/http/client_token_manager.rb +5 -2
  5. data/lib/twilio-ruby/http/org_token_manager.rb +5 -2
  6. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +5 -2
  7. data/lib/twilio-ruby/rest/client.rb +5 -0
  8. data/lib/twilio-ruby/rest/conversations/v1/service/binding.rb +3 -3
  9. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb +232 -0
  10. data/lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb +213 -0
  11. data/lib/twilio-ruby/rest/knowledge/v1/knowledge.rb +623 -0
  12. data/lib/twilio-ruby/rest/knowledge/v1.rb +49 -0
  13. data/lib/twilio-ruby/rest/knowledge.rb +6 -0
  14. data/lib/twilio-ruby/rest/knowledge_base.rb +38 -0
  15. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +13 -13
  16. data/lib/twilio-ruby/rest/lookups/v2/query.rb +15 -209
  17. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +91 -0
  18. data/lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb +140 -0
  19. data/lib/twilio-ruby/rest/messaging/v2.rb +6 -0
  20. data/lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb +270 -0
  21. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +100 -5
  22. data/lib/twilio-ruby/rest/numbers/v1.rb +6 -0
  23. data/lib/twilio-ruby/rest/oauth/v2/token.rb +2 -2
  24. data/lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb +312 -0
  25. data/lib/twilio-ruby/rest/verify/v2/{new_challenge.rb → service/new_challenge.rb} +9 -4
  26. data/lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb +267 -0
  27. data/lib/twilio-ruby/rest/verify/v2/service.rb +49 -12
  28. data/lib/twilio-ruby/rest/verify/v2.rb +0 -15
  29. data/lib/twilio-ruby/version.rb +1 -1
  30. metadata +13 -3
@@ -242,12 +242,14 @@ module Twilio
242
242
 
243
243
  # Dependents
244
244
  @verification_checks = nil
245
+ @new_verify_factors = nil
245
246
  @new_factors = nil
246
- @verify_factor = nil
247
+ @approve_challenge = nil
247
248
  @verifications = nil
248
249
  @access_tokens = nil
249
250
  @webhooks = nil
250
251
  @messaging_configurations = nil
252
+ @new_challenge = nil
251
253
  @entities = nil
252
254
  @rate_limits = nil
253
255
  end
@@ -395,6 +397,17 @@ module Twilio
395
397
  @verification_checks
396
398
  end
397
399
  ##
400
+ # Access the new_verify_factors
401
+ # @return [NewVerifyFactorList]
402
+ # @return [NewVerifyFactorContext]
403
+ def new_verify_factors
404
+ unless @new_verify_factors
405
+ @new_verify_factors = NewVerifyFactorList.new(
406
+ @version, )
407
+ end
408
+ @new_verify_factors
409
+ end
410
+ ##
398
411
  # Access the new_factors
399
412
  # @return [NewFactorList]
400
413
  # @return [NewFactorContext]
@@ -406,15 +419,15 @@ module Twilio
406
419
  @new_factors
407
420
  end
408
421
  ##
409
- # Access the verify_factor
410
- # @return [VerifyFactorList]
411
- # @return [VerifyFactorContext]
412
- def verify_factor
413
- unless @verify_factor
414
- @verify_factor = VerifyFactorList.new(
422
+ # Access the approve_challenge
423
+ # @return [ApproveChallengeList]
424
+ # @return [ApproveChallengeContext]
425
+ def approve_challenge
426
+ unless @approve_challenge
427
+ @approve_challenge = ApproveChallengeList.new(
415
428
  @version, )
416
429
  end
417
- @verify_factor
430
+ @approve_challenge
418
431
  end
419
432
  ##
420
433
  # Access the verifications
@@ -493,6 +506,16 @@ module Twilio
493
506
  @messaging_configurations
494
507
  end
495
508
  ##
509
+ # Access the new_challenge
510
+ # @return [NewChallengeList]
511
+ # @return [NewChallengeContext]
512
+ def new_challenge
513
+ NewChallengeContext.new(
514
+ @version,
515
+ @solution[:sid]
516
+ )
517
+ end
518
+ ##
496
519
  # Access the entities
497
520
  # @return [EntityList]
498
521
  # @return [EntityContext] if sid was passed.
@@ -865,6 +888,13 @@ module Twilio
865
888
  context.verification_checks
866
889
  end
867
890
 
891
+ ##
892
+ # Access the new_verify_factors
893
+ # @return [new_verify_factors] new_verify_factors
894
+ def new_verify_factors
895
+ context.new_verify_factors
896
+ end
897
+
868
898
  ##
869
899
  # Access the new_factors
870
900
  # @return [new_factors] new_factors
@@ -873,10 +903,10 @@ module Twilio
873
903
  end
874
904
 
875
905
  ##
876
- # Access the verify_factor
877
- # @return [verify_factor] verify_factor
878
- def verify_factor
879
- context.verify_factor
906
+ # Access the approve_challenge
907
+ # @return [approve_challenge] approve_challenge
908
+ def approve_challenge
909
+ context.approve_challenge
880
910
  end
881
911
 
882
912
  ##
@@ -907,6 +937,13 @@ module Twilio
907
937
  context.messaging_configurations
908
938
  end
909
939
 
940
+ ##
941
+ # Access the new_challenge
942
+ # @return [new_challenge] new_challenge
943
+ def new_challenge
944
+ context.new_challenge
945
+ end
946
+
910
947
  ##
911
948
  # Access the entities
912
949
  # @return [entities] entities
@@ -22,7 +22,6 @@ module Twilio
22
22
  super
23
23
  @version = 'v2'
24
24
  @forms = nil
25
- @new_challenge = nil
26
25
  @safelist = nil
27
26
  @services = nil
28
27
  @templates = nil
@@ -45,20 +44,6 @@ module Twilio
45
44
  end
46
45
  end
47
46
  ##
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
- ##
62
47
  # @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).
63
48
  # @return [Twilio::REST::Verify::V2::SafelistContext] if phoneNumber was passed.
64
49
  # @return [Twilio::REST::Verify::V2::SafelistList]
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.8.1'
2
+ VERSION = '7.8.3'
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: 7.8.1
4
+ version: 7.8.3
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-09-18 00:00:00.000000000 Z
11
+ date: 2025-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -555,6 +555,12 @@ files:
555
555
  - lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_binding.rb
556
556
  - lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb
557
557
  - lib/twilio-ruby/rest/ip_messaging_base.rb
558
+ - lib/twilio-ruby/rest/knowledge.rb
559
+ - lib/twilio-ruby/rest/knowledge/v1.rb
560
+ - lib/twilio-ruby/rest/knowledge/v1/knowledge.rb
561
+ - lib/twilio-ruby/rest/knowledge/v1/knowledge/chunk.rb
562
+ - lib/twilio-ruby/rest/knowledge/v1/knowledge/knowledge_status.rb
563
+ - lib/twilio-ruby/rest/knowledge_base.rb
558
564
  - lib/twilio-ruby/rest/lookups.rb
559
565
  - lib/twilio-ruby/rest/lookups/v1.rb
560
566
  - lib/twilio-ruby/rest/lookups/v1/phone_number.rb
@@ -601,6 +607,7 @@ files:
601
607
  - lib/twilio-ruby/rest/messaging/v1/usecase.rb
602
608
  - lib/twilio-ruby/rest/messaging/v2.rb
603
609
  - lib/twilio-ruby/rest/messaging/v2/channels_sender.rb
610
+ - lib/twilio-ruby/rest/messaging/v2/typing_indicator.rb
604
611
  - lib/twilio-ruby/rest/messaging_base.rb
605
612
  - lib/twilio-ruby/rest/monitor.rb
606
613
  - lib/twilio-ruby/rest/monitor/v1.rb
@@ -618,6 +625,7 @@ files:
618
625
  - lib/twilio-ruby/rest/numbers/v1.rb
619
626
  - lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb
620
627
  - lib/twilio-ruby/rest/numbers/v1/eligibility.rb
628
+ - lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb
621
629
  - lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
622
630
  - lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb
623
631
  - lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
@@ -834,17 +842,19 @@ files:
834
842
  - lib/twilio-ruby/rest/verify.rb
835
843
  - lib/twilio-ruby/rest/verify/v2.rb
836
844
  - lib/twilio-ruby/rest/verify/v2/form.rb
837
- - lib/twilio-ruby/rest/verify/v2/new_challenge.rb
838
845
  - lib/twilio-ruby/rest/verify/v2/safelist.rb
839
846
  - lib/twilio-ruby/rest/verify/v2/service.rb
840
847
  - lib/twilio-ruby/rest/verify/v2/service/access_token.rb
848
+ - lib/twilio-ruby/rest/verify/v2/service/approve_challenge.rb
841
849
  - lib/twilio-ruby/rest/verify/v2/service/entity.rb
842
850
  - lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb
843
851
  - lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb
844
852
  - lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb
845
853
  - lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb
846
854
  - lib/twilio-ruby/rest/verify/v2/service/messaging_configuration.rb
855
+ - lib/twilio-ruby/rest/verify/v2/service/new_challenge.rb
847
856
  - lib/twilio-ruby/rest/verify/v2/service/new_factor.rb
857
+ - lib/twilio-ruby/rest/verify/v2/service/new_verify_factor.rb
848
858
  - lib/twilio-ruby/rest/verify/v2/service/rate_limit.rb
849
859
  - lib/twilio-ruby/rest/verify/v2/service/rate_limit/bucket.rb
850
860
  - lib/twilio-ruby/rest/verify/v2/service/verification.rb