cloudmersive-phishing-detection-api-client 2.2.0 → 2.2.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 (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -21
  3. data/cloudmersive-phishing-detection-api-client.gemspec +1 -1
  4. data/docs/AdvancedEmailDetectionRequest.md +14 -0
  5. data/docs/PhishingDetectionAdvancedRequest.md +9 -0
  6. data/docs/PhishingDetectionAdvancedResponse.md +10 -0
  7. data/docs/PhishingDetectionApi.md +228 -0
  8. data/docs/PhishingDetectionEmailAdvancedResponse.md +17 -0
  9. data/docs/PhishingDetectionResponse.md +8 -0
  10. data/lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb +223 -0
  11. data/lib/cloudmersive-phishing-detection-api-client/api_client.rb +1 -1
  12. data/lib/cloudmersive-phishing-detection-api-client/api_error.rb +1 -1
  13. data/lib/cloudmersive-phishing-detection-api-client/configuration.rb +1 -1
  14. data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_advanced_request.rb → advanced_email_detection_request.rb} +72 -46
  15. data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_advanced_response_batch.rb → phishing_detection_advanced_request.rb} +18 -20
  16. data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_response_batch.rb → phishing_detection_advanced_response.rb} +22 -14
  17. data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_response.rb → phishing_detection_email_advanced_response.rb} +80 -40
  18. data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_request.rb → phishing_detection_response.rb} +11 -16
  19. data/lib/cloudmersive-phishing-detection-api-client/version.rb +2 -2
  20. data/lib/cloudmersive-phishing-detection-api-client.rb +7 -10
  21. data/spec/api/phishing_detection_api_spec.rb +81 -0
  22. data/spec/api_client_spec.rb +1 -1
  23. data/spec/configuration_spec.rb +1 -1
  24. data/spec/models/{phishing_url_response_spec.rb → advanced_email_detection_request_spec.rb} +19 -13
  25. data/spec/models/{phishing_url_advanced_response_batch_spec.rb → phishing_detection_advanced_request_spec.rb} +9 -9
  26. data/spec/models/{phishing_url_advanced_request_spec.rb → phishing_detection_advanced_response_spec.rb} +10 -10
  27. data/spec/models/{phishing_url_advanced_response_spec.rb → phishing_detection_email_advanced_response_spec.rb} +16 -22
  28. data/spec/models/{phishing_url_request_spec.rb → phishing_detection_response_spec.rb} +8 -8
  29. data/spec/spec_helper.rb +1 -1
  30. metadata +20 -29
  31. data/docs/PhishingUrlAdvancedRequest.md +0 -10
  32. data/docs/PhishingUrlAdvancedRequestBatch.md +0 -10
  33. data/docs/PhishingUrlAdvancedResponse.md +0 -18
  34. data/docs/PhishingUrlAdvancedResponseBatch.md +0 -9
  35. data/docs/PhishingUrlApi.md +0 -120
  36. data/docs/PhishingUrlBatchApi.md +0 -120
  37. data/docs/PhishingUrlRequest.md +0 -8
  38. data/docs/PhishingUrlResponse.md +0 -13
  39. data/docs/PhishingUrlResponseBatch.md +0 -9
  40. data/lib/cloudmersive-phishing-detection-api-client/api/phishing_url_api.rb +0 -123
  41. data/lib/cloudmersive-phishing-detection-api-client/api/phishing_url_batch_api.rb +0 -123
  42. data/lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_request_batch.rb +0 -217
  43. data/lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_response.rb +0 -286
  44. data/spec/api/phishing_url_api_spec.rb +0 -59
  45. data/spec/api/phishing_url_batch_api_spec.rb +0 -59
  46. data/spec/models/phishing_url_advanced_request_batch_spec.rb +0 -53
  47. data/spec/models/phishing_url_response_batch_spec.rb +0 -47
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -17,17 +17,14 @@ require 'cloudmersive-phishing-detection-api-client/version'
17
17
  require 'cloudmersive-phishing-detection-api-client/configuration'
18
18
 
19
19
  # Models
20
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_request'
21
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_request_batch'
22
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_response'
23
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_response_batch'
24
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_request'
25
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_response'
26
- require 'cloudmersive-phishing-detection-api-client/models/phishing_url_response_batch'
20
+ require 'cloudmersive-phishing-detection-api-client/models/advanced_email_detection_request'
21
+ require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request'
22
+ require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response'
23
+ require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_email_advanced_response'
24
+ require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_response'
27
25
 
28
26
  # APIs
29
- require 'cloudmersive-phishing-detection-api-client/api/phishing_url_api'
30
- require 'cloudmersive-phishing-detection-api-client/api/phishing_url_batch_api'
27
+ require 'cloudmersive-phishing-detection-api-client/api/phishing_detection_api'
31
28
 
32
29
  module CloudmersivePhishingDetectionApiClient
33
30
  class << self
@@ -0,0 +1,81 @@
1
+ =begin
2
+ #phishingapi
3
+
4
+ #Easily and directly scan and block phishing security threats in input.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'PhishingDetectionApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PhishingDetectionApi' do
30
+ it 'should create an instance of PhishingDetectionApi' do
31
+ expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for phishing_detect_email_advanced_post
36
+ # Perform advanced AI phishing detection and classification against input email. Analyzes input email as well as embedded URLs with AI deep learning to detect phishing, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [AdvancedEmailDetectionRequest] :body Phishing detection request
39
+ # @return [PhishingDetectionEmailAdvancedResponse]
40
+ describe 'phishing_detect_email_advanced_post test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for phishing_detect_file_advanced_post
47
+ # Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learning to detect phishing, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
48
+ # @param [Hash] opts the optional parameters
49
+ # @option opts [String] :model
50
+ # @option opts [File] :input_file
51
+ # @return [PhishingDetectionAdvancedResponse]
52
+ describe 'phishing_detect_file_advanced_post test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for phishing_detect_file_post
59
+ # Perform AI phishing detection and classification on an input image or document (PDF or DOCX). Analyzes input content as well as embedded URLs with AI deep learnign to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
60
+ # @param [Hash] opts the optional parameters
61
+ # @option opts [String] :model Model to use; default setting is Advanced
62
+ # @option opts [File] :input_file
63
+ # @return [PhishingDetectionResponse]
64
+ describe 'phishing_detect_file_post test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for phishing_detect_text_string_advanced_post
71
+ # Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
72
+ # @param [Hash] opts the optional parameters
73
+ # @option opts [PhishingDetectionAdvancedRequest] :body Phishing detection request
74
+ # @return [PhishingDetectionAdvancedResponse]
75
+ describe 'phishing_detect_text_string_advanced_post test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
78
+ end
79
+ end
80
+
81
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -14,55 +14,61 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingUrlResponse
17
+ # Unit tests for CloudmersivePhishingDetectionApiClient::AdvancedEmailDetectionRequest
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'PhishingUrlResponse' do
20
+ describe 'AdvancedEmailDetectionRequest' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudmersivePhishingDetectionApiClient::PhishingUrlResponse.new
23
+ @instance = CloudmersivePhishingDetectionApiClient::AdvancedEmailDetectionRequest.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of PhishingUrlResponse' do
31
- it 'should create an instance of PhishingUrlResponse' do
32
- expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingUrlResponse)
30
+ describe 'test an instance of AdvancedEmailDetectionRequest' do
31
+ it 'should create an instance of AdvancedEmailDetectionRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::AdvancedEmailDetectionRequest)
33
33
  end
34
34
  end
35
- describe 'test attribute "clean_result"' do
35
+ describe 'test attribute "from_email_address"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "risk"' do
41
+ describe 'test attribute "to_email_address"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "contains_threat_url"' do
47
+ describe 'test attribute "subject"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "contains_threat_host"' do
53
+ describe 'test attribute "html_body"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "contains_threat_domain"' do
59
+ describe 'test attribute "allow_low_reputation_senders"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "input_url"' do
65
+ describe 'test attribute "allow_sanctioned"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "input_email_file"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
74
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -14,31 +14,31 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponseBatch
17
+ # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedRequest
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'PhishingUrlAdvancedResponseBatch' do
20
+ describe 'PhishingDetectionAdvancedRequest' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponseBatch.new
23
+ @instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedRequest.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of PhishingUrlAdvancedResponseBatch' do
31
- it 'should create an instance of PhishingUrlAdvancedResponseBatch' do
32
- expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponseBatch)
30
+ describe 'test an instance of PhishingDetectionAdvancedRequest' do
31
+ it 'should create an instance of PhishingDetectionAdvancedRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedRequest)
33
33
  end
34
34
  end
35
- describe 'test attribute "clean_result"' do
35
+ describe 'test attribute "input_string"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "url_responses"' do
41
+ describe 'test attribute "model"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -14,37 +14,37 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequest
17
+ # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedResponse
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'PhishingUrlAdvancedRequest' do
20
+ describe 'PhishingDetectionAdvancedResponse' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequest.new
23
+ @instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedResponse.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of PhishingUrlAdvancedRequest' do
31
- it 'should create an instance of PhishingUrlAdvancedRequest' do
32
- expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequest)
30
+ describe 'test an instance of PhishingDetectionAdvancedResponse' do
31
+ it 'should create an instance of PhishingDetectionAdvancedResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "url"' do
35
+ describe 'test attribute "clean_result"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "allow_list"' do
41
+ describe 'test attribute "phishing_risk_level"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "block_list"' do
47
+ describe 'test attribute "analysis_rationale"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -14,22 +14,22 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponse
17
+ # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionEmailAdvancedResponse
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'PhishingUrlAdvancedResponse' do
20
+ describe 'PhishingDetectionEmailAdvancedResponse' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponse.new
23
+ @instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionEmailAdvancedResponse.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of PhishingUrlAdvancedResponse' do
31
- it 'should create an instance of PhishingUrlAdvancedResponse' do
32
- expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponse)
30
+ describe 'test an instance of PhishingDetectionEmailAdvancedResponse' do
31
+ it 'should create an instance of PhishingDetectionEmailAdvancedResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionEmailAdvancedResponse)
33
33
  end
34
34
  end
35
35
  describe 'test attribute "clean_result"' do
@@ -38,61 +38,55 @@ describe 'PhishingUrlAdvancedResponse' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "risk"' do
41
+ describe 'test attribute "phishing_risk_level"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "contains_threat_url"' do
47
+ describe 'test attribute "spam_risk_level"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "contains_threat_host"' do
53
+ describe 'test attribute "contains_low_reputation_sender"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "contains_threat_domain"' do
59
+ describe 'test attribute "contains_phishing"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "contains_threat_ssrf"' do
65
+ describe 'test attribute "contains_spam"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "contains_threat_url_format"' do
71
+ describe 'test attribute "contains_unsolicited_sales"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "contains_threat_domain_quality"' do
77
+ describe 'test attribute "contains_promotional_content"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
81
81
  end
82
82
 
83
- describe 'test attribute "contains_threat_domain_age"' do
83
+ describe 'test attribute "contains_phishing_attempt"' do
84
84
  it 'should work' do
85
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
86
  end
87
87
  end
88
88
 
89
- describe 'test attribute "url_is_invalid_syntax"' do
90
- it 'should work' do
91
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
- end
93
- end
94
-
95
- describe 'test attribute "input_url"' do
89
+ describe 'test attribute "analysis_rationale"' do
96
90
  it 'should work' do
97
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
92
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -14,25 +14,25 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingUrlRequest
17
+ # Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionResponse
18
18
  # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
19
  # Please update as you see appropriate
20
- describe 'PhishingUrlRequest' do
20
+ describe 'PhishingDetectionResponse' do
21
21
  before do
22
22
  # run before each test
23
- @instance = CloudmersivePhishingDetectionApiClient::PhishingUrlRequest.new
23
+ @instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionResponse.new
24
24
  end
25
25
 
26
26
  after do
27
27
  # run after each test
28
28
  end
29
29
 
30
- describe 'test an instance of PhishingUrlRequest' do
31
- it 'should create an instance of PhishingUrlRequest' do
32
- expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingUrlRequest)
30
+ describe 'test an instance of PhishingDetectionResponse' do
31
+ it 'should create an instance of PhishingDetectionResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "url"' do
35
+ describe 'test attribute "clean_result"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #phishingapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block phishing security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudmersive-phishing-detection-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloudmersive
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-23 00:00:00.000000000 Z
11
+ date: 2025-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -202,41 +202,32 @@ files:
202
202
  - "./README.md"
203
203
  - "./Rakefile"
204
204
  - "./cloudmersive-phishing-detection-api-client.gemspec"
205
- - "./docs/PhishingUrlAdvancedRequest.md"
206
- - "./docs/PhishingUrlAdvancedRequestBatch.md"
207
- - "./docs/PhishingUrlAdvancedResponse.md"
208
- - "./docs/PhishingUrlAdvancedResponseBatch.md"
209
- - "./docs/PhishingUrlApi.md"
210
- - "./docs/PhishingUrlBatchApi.md"
211
- - "./docs/PhishingUrlRequest.md"
212
- - "./docs/PhishingUrlResponse.md"
213
- - "./docs/PhishingUrlResponseBatch.md"
205
+ - "./docs/AdvancedEmailDetectionRequest.md"
206
+ - "./docs/PhishingDetectionAdvancedRequest.md"
207
+ - "./docs/PhishingDetectionAdvancedResponse.md"
208
+ - "./docs/PhishingDetectionApi.md"
209
+ - "./docs/PhishingDetectionEmailAdvancedResponse.md"
210
+ - "./docs/PhishingDetectionResponse.md"
214
211
  - "./git_push.sh"
215
212
  - "./lib/cloudmersive-phishing-detection-api-client.rb"
216
- - "./lib/cloudmersive-phishing-detection-api-client/api/phishing_url_api.rb"
217
- - "./lib/cloudmersive-phishing-detection-api-client/api/phishing_url_batch_api.rb"
213
+ - "./lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb"
218
214
  - "./lib/cloudmersive-phishing-detection-api-client/api_client.rb"
219
215
  - "./lib/cloudmersive-phishing-detection-api-client/api_error.rb"
220
216
  - "./lib/cloudmersive-phishing-detection-api-client/configuration.rb"
221
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_request.rb"
222
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_request_batch.rb"
223
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_response.rb"
224
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_response_batch.rb"
225
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_request.rb"
226
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_response.rb"
227
- - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_response_batch.rb"
217
+ - "./lib/cloudmersive-phishing-detection-api-client/models/advanced_email_detection_request.rb"
218
+ - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb"
219
+ - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response.rb"
220
+ - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_email_advanced_response.rb"
221
+ - "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_response.rb"
228
222
  - "./lib/cloudmersive-phishing-detection-api-client/version.rb"
229
- - "./spec/api/phishing_url_api_spec.rb"
230
- - "./spec/api/phishing_url_batch_api_spec.rb"
223
+ - "./spec/api/phishing_detection_api_spec.rb"
231
224
  - "./spec/api_client_spec.rb"
232
225
  - "./spec/configuration_spec.rb"
233
- - "./spec/models/phishing_url_advanced_request_batch_spec.rb"
234
- - "./spec/models/phishing_url_advanced_request_spec.rb"
235
- - "./spec/models/phishing_url_advanced_response_batch_spec.rb"
236
- - "./spec/models/phishing_url_advanced_response_spec.rb"
237
- - "./spec/models/phishing_url_request_spec.rb"
238
- - "./spec/models/phishing_url_response_batch_spec.rb"
239
- - "./spec/models/phishing_url_response_spec.rb"
226
+ - "./spec/models/advanced_email_detection_request_spec.rb"
227
+ - "./spec/models/phishing_detection_advanced_request_spec.rb"
228
+ - "./spec/models/phishing_detection_advanced_response_spec.rb"
229
+ - "./spec/models/phishing_detection_email_advanced_response_spec.rb"
230
+ - "./spec/models/phishing_detection_response_spec.rb"
240
231
  - "./spec/spec_helper.rb"
241
232
  homepage: https://www.cloudmersive.com/phishing-api
242
233
  licenses:
@@ -1,10 +0,0 @@
1
- # CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequest
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **url** | **String** | Full url data to be evaluated |
7
- **allow_list** | **Array&lt;String&gt;** | The caller may specify a collection of hosts or domains which are always considered safe.&lt;br /&gt; This is to allow internal sites to be marked as safe | [optional]
8
- **block_list** | **Array&lt;String&gt;** | The caller may specify a collection of hosts or domains which are always considered unsafe.&lt;br /&gt; This is to allow internal sites to be marked as safe | [optional]
9
-
10
-
@@ -1,10 +0,0 @@
1
- # CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequestBatch
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **urls** | **Array&lt;String&gt;** | Collection of all urls to check |
7
- **allow_list** | **Array&lt;String&gt;** | The caller may specify a collection of hosts or domains which are always considered safe.&lt;br /&gt; This is to allow internal sites to be marked as safe | [optional]
8
- **block_list** | **Array&lt;String&gt;** | The caller may specify a collection of hosts or domains which are always considered unsafe.&lt;br /&gt; This is to allow internal sites to be marked as safe | [optional]
9
-
10
-
@@ -1,18 +0,0 @@
1
- # CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponse
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **clean_result** | **BOOLEAN** | Specifies if the url (or its host or domain) passed all the checks or not. | [optional]
7
- **risk** | **Float** | Risk value from 0.0 - 1.0. Higher numbers are a higher risk &lt;br /&gt;Anything below 0.3 should be considered safe. Anything above 0.7 should be considered a significant risk. &lt;br /&gt; A score of 1.0 indicates the url, host, or domain failed significant safety checks.&lt;br /&gt; If a url passes all the tests for the basic api, the risk will be 0.7. If a url passes all the tests for the advanced api, the risk will be 0.2. | [optional]
8
- **contains_threat_url** | **BOOLEAN** | Specifies if the full url with query parameters and fragment is a phishing threat &lt;br /&gt;The advanced api performs more checks on the full url. | [optional]
9
- **contains_threat_host** | **BOOLEAN** | Specifies if the host of the url (i.e. &#x60;&#x60;&#x60;mysite.hostingsite.com&#x60;&#x60;&#x60; for a url of &#x60;&#x60;&#x60;https://mysite.hostingsite.com/index.html&#x60;&#x60;&#x60;) is a phishing threat &lt;br /&gt;The advanced api performs more checks on the host | [optional]
10
- **contains_threat_domain** | **BOOLEAN** | Specifies if the registerable domain of the url (i.e. &#x60;&#x60;&#x60;hostingsite.com&#x60;&#x60;&#x60; for a url of &#x60;&#x60;&#x60;https://mysite.hostingsite.com/index.html&#x60;&#x60;&#x60;) is a phishing threat &lt;br /&gt;The advanced api performs more checks on the domain | [optional]
11
- **contains_threat_ssrf** | **BOOLEAN** | The url that was provided or the destination url after redirection contains an SSRF threat | [optional]
12
- **contains_threat_url_format** | **BOOLEAN** | The url that was provided or the destination url after redirection is an unsafe format | [optional]
13
- **contains_threat_domain_quality** | **BOOLEAN** | The domain of the destination url is low quality. | [optional]
14
- **contains_threat_domain_age** | **BOOLEAN** | The domain of the destination url has been registered too recently. | [optional]
15
- **url_is_invalid_syntax** | **BOOLEAN** | Specifies if the url was malformed or not | [optional]
16
- **input_url** | **String** | Input URL that was scanned | [optional]
17
-
18
-
@@ -1,9 +0,0 @@
1
- # CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponseBatch
2
-
3
- ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **clean_result** | **BOOLEAN** | Specifies if all the urls (or its hosts or domains) in this batch call passed all the checks or not. | [optional]
7
- **url_responses** | [**Array&lt;PhishingUrlAdvancedResponse&gt;**](PhishingUrlAdvancedResponse.md) | Resulting URL validations | [optional]
8
-
9
-