cloudmersive-phishing-detection-api-client 2.2.3 → 2.2.4
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/README.md +10 -9
- data/docs/PhishingDetectionAdvancedRequest.md +1 -0
- data/docs/PhishingDetectionApi.md +12 -12
- data/docs/PriorHistoryItem.md +15 -0
- data/lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb +8 -8
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb +16 -4
- data/lib/cloudmersive-phishing-detection-api-client/models/prior_history_item.rb +256 -0
- data/lib/cloudmersive-phishing-detection-api-client/version.rb +1 -1
- data/lib/cloudmersive-phishing-detection-api-client.rb +1 -0
- data/spec/api/phishing_detection_api_spec.rb +4 -4
- data/spec/models/phishing_detection_advanced_request_spec.rb +6 -0
- data/spec/models/prior_history_item_spec.rb +83 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a31d43c558e46df6cf108f28aaab9955c8c39214e4d18223fbb3b21856812b45
|
|
4
|
+
data.tar.gz: 9ba607d136ca12c8c2930fd98fd46e9581488636f8c111a4936c3aac94cca813
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b81a646b72e840f9c7cb74d758e23ff765f80bd75ba8b95bf52e50973824679243046e0abfcb6761e760c276ff0f7a0e25cca4833946a8b6beee0f301957a142
|
|
7
|
+
data.tar.gz: 60fb0ce8eb023273dbad3a7f3e51ce4026aa41ed1fe00683fcee841e25c93f67a709937cc1c0c5e0b845915d5966a4c89b2bb2842f3404d3e8c51060def07c41
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Easily and directly scan and block phishing security threats in input.
|
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
|
8
8
|
|
|
9
9
|
- API version: v1
|
|
10
|
-
- Package version: 2.2.
|
|
10
|
+
- Package version: 2.2.4
|
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
@@ -23,15 +23,15 @@ gem build cloudmersive-phishing-detection-api-client.gemspec
|
|
|
23
23
|
Then either install the gem locally:
|
|
24
24
|
|
|
25
25
|
```shell
|
|
26
|
-
gem install ./cloudmersive-phishing-detection-api-client-2.2.
|
|
26
|
+
gem install ./cloudmersive-phishing-detection-api-client-2.2.4.gem
|
|
27
27
|
```
|
|
28
|
-
(for development, run `gem install --dev ./cloudmersive-phishing-detection-api-client-2.2.
|
|
28
|
+
(for development, run `gem install --dev ./cloudmersive-phishing-detection-api-client-2.2.4.gem` to install the development dependencies)
|
|
29
29
|
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
31
31
|
|
|
32
32
|
Finally add this to the Gemfile:
|
|
33
33
|
|
|
34
|
-
gem 'cloudmersive-phishing-detection-api-client', '~> 2.2.
|
|
34
|
+
gem 'cloudmersive-phishing-detection-api-client', '~> 2.2.4'
|
|
35
35
|
|
|
36
36
|
### Install from Git
|
|
37
37
|
|
|
@@ -69,7 +69,7 @@ opts = {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
begin
|
|
72
|
-
#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.
|
|
72
|
+
#Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
73
73
|
result = api_instance.phishing_detect_email_advanced_post(opts)
|
|
74
74
|
p result
|
|
75
75
|
rescue CloudmersivePhishingDetectionApiClient::ApiError => e
|
|
@@ -84,10 +84,10 @@ All URIs are relative to *https://localhost*
|
|
|
84
84
|
|
|
85
85
|
Class | Method | HTTP request | Description
|
|
86
86
|
------------ | ------------- | ------------- | -------------
|
|
87
|
-
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_email_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_email_advanced_post) | **POST** /phishing/detect/email/advanced | 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.
|
|
88
|
-
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_file_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_file_advanced_post) | **POST** /phishing/detect/file/advanced | Perform advanced AI phishing detection and classification
|
|
89
|
-
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_file_post**](docs/PhishingDetectionApi.md#phishing_detect_file_post) | **POST** /phishing/detect/file | Perform AI phishing detection and classification on an input image or document (PDF
|
|
90
|
-
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_text_string_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_text_string_advanced_post) | **POST** /phishing/detect/text-string/advanced | Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
87
|
+
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_email_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_email_advanced_post) | **POST** /phishing/detect/email/advanced | Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
88
|
+
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_file_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_file_advanced_post) | **POST** /phishing/detect/file/advanced | Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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.
|
|
89
|
+
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_file_post**](docs/PhishingDetectionApi.md#phishing_detect_file_post) | **POST** /phishing/detect/file | Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
90
|
+
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_text_string_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_text_string_advanced_post) | **POST** /phishing/detect/text-string/advanced | 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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
91
91
|
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_text_string_post**](docs/PhishingDetectionApi.md#phishing_detect_text_string_post) | **POST** /phishing/detect/text-string | Perform AI phishing detection against input text string. Returns a clean/not-clean result with confidence level and optional rationale.
|
|
92
92
|
*CloudmersivePhishingDetectionApiClient::PhishingDetectionApi* | [**phishing_detect_url_advanced_post**](docs/PhishingDetectionApi.md#phishing_detect_url_advanced_post) | **POST** /phishing/detect/url/advanced | Perform advanced AI phishing detection and classification against an input URL. Retrieves the URL content, checks for SSRF threats, and analyzes the page with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls.
|
|
93
93
|
|
|
@@ -103,6 +103,7 @@ Class | Method | HTTP request | Description
|
|
|
103
103
|
- [CloudmersivePhishingDetectionApiClient::PhishingDetectionTextStringRequest](docs/PhishingDetectionTextStringRequest.md)
|
|
104
104
|
- [CloudmersivePhishingDetectionApiClient::PhishingDetectionTextStringResponse](docs/PhishingDetectionTextStringResponse.md)
|
|
105
105
|
- [CloudmersivePhishingDetectionApiClient::PhishingDetectionUrlAdvancedResponse](docs/PhishingDetectionUrlAdvancedResponse.md)
|
|
106
|
+
- [CloudmersivePhishingDetectionApiClient::PriorHistoryItem](docs/PriorHistoryItem.md)
|
|
106
107
|
- [CloudmersivePhishingDetectionApiClient::UnsafeUrlResult](docs/UnsafeUrlResult.md)
|
|
107
108
|
|
|
108
109
|
|
|
@@ -20,5 +20,6 @@ Name | Type | Description | Notes
|
|
|
20
20
|
**to_phone_number** | **String** | Optional: Phone number of the recipient | [optional]
|
|
21
21
|
**from_email_address** | **String** | Optional: Email address of the sender | [optional]
|
|
22
22
|
**to_email_address** | **String** | Optional: Email address of the recipient | [optional]
|
|
23
|
+
**prior_history** | [**Array<PriorHistoryItem>**](PriorHistoryItem.md) | Optional: Prior context history (e.g. message history) leading up to the current input string. If provided, the AI will take this history into account as context when evaluating the current input. | [optional]
|
|
23
24
|
|
|
24
25
|
|
|
@@ -4,10 +4,10 @@ All URIs are relative to *https://localhost*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
-
[**phishing_detect_email_advanced_post**](PhishingDetectionApi.md#phishing_detect_email_advanced_post) | **POST** /phishing/detect/email/advanced | 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.
|
|
8
|
-
[**phishing_detect_file_advanced_post**](PhishingDetectionApi.md#phishing_detect_file_advanced_post) | **POST** /phishing/detect/file/advanced | Perform advanced AI phishing detection and classification
|
|
9
|
-
[**phishing_detect_file_post**](PhishingDetectionApi.md#phishing_detect_file_post) | **POST** /phishing/detect/file | Perform AI phishing detection and classification on an input image or document (PDF
|
|
10
|
-
[**phishing_detect_text_string_advanced_post**](PhishingDetectionApi.md#phishing_detect_text_string_advanced_post) | **POST** /phishing/detect/text-string/advanced | Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
7
|
+
[**phishing_detect_email_advanced_post**](PhishingDetectionApi.md#phishing_detect_email_advanced_post) | **POST** /phishing/detect/email/advanced | Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
8
|
+
[**phishing_detect_file_advanced_post**](PhishingDetectionApi.md#phishing_detect_file_advanced_post) | **POST** /phishing/detect/file/advanced | Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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.
|
|
9
|
+
[**phishing_detect_file_post**](PhishingDetectionApi.md#phishing_detect_file_post) | **POST** /phishing/detect/file | Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
10
|
+
[**phishing_detect_text_string_advanced_post**](PhishingDetectionApi.md#phishing_detect_text_string_advanced_post) | **POST** /phishing/detect/text-string/advanced | 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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
11
11
|
[**phishing_detect_text_string_post**](PhishingDetectionApi.md#phishing_detect_text_string_post) | **POST** /phishing/detect/text-string | Perform AI phishing detection against input text string. Returns a clean/not-clean result with confidence level and optional rationale.
|
|
12
12
|
[**phishing_detect_url_advanced_post**](PhishingDetectionApi.md#phishing_detect_url_advanced_post) | **POST** /phishing/detect/url/advanced | Perform advanced AI phishing detection and classification against an input URL. Retrieves the URL content, checks for SSRF threats, and analyzes the page with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls.
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ Method | HTTP request | Description
|
|
|
15
15
|
# **phishing_detect_email_advanced_post**
|
|
16
16
|
> PhishingDetectionEmailAdvancedResponse phishing_detect_email_advanced_post(opts)
|
|
17
17
|
|
|
18
|
-
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.
|
|
18
|
+
Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
19
19
|
|
|
20
20
|
### Example
|
|
21
21
|
```ruby
|
|
@@ -36,7 +36,7 @@ opts = {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
begin
|
|
39
|
-
#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.
|
|
39
|
+
#Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
40
40
|
result = api_instance.phishing_detect_email_advanced_post(opts)
|
|
41
41
|
p result
|
|
42
42
|
rescue CloudmersivePhishingDetectionApiClient::ApiError => e
|
|
@@ -68,7 +68,7 @@ Name | Type | Description | Notes
|
|
|
68
68
|
# **phishing_detect_file_advanced_post**
|
|
69
69
|
> PhishingDetectionAdvancedResponse phishing_detect_file_advanced_post(opts)
|
|
70
70
|
|
|
71
|
-
Perform advanced AI phishing detection and classification
|
|
71
|
+
Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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.
|
|
72
72
|
|
|
73
73
|
### Example
|
|
74
74
|
```ruby
|
|
@@ -91,7 +91,7 @@ opts = {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
begin
|
|
94
|
-
#Perform advanced AI phishing detection and classification
|
|
94
|
+
#Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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.
|
|
95
95
|
result = api_instance.phishing_detect_file_advanced_post(opts)
|
|
96
96
|
p result
|
|
97
97
|
rescue CloudmersivePhishingDetectionApiClient::ApiError => e
|
|
@@ -125,7 +125,7 @@ Name | Type | Description | Notes
|
|
|
125
125
|
# **phishing_detect_file_post**
|
|
126
126
|
> PhishingDetectionResponse phishing_detect_file_post(opts)
|
|
127
127
|
|
|
128
|
-
Perform AI phishing detection and classification on an input image or document (PDF
|
|
128
|
+
Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
129
129
|
|
|
130
130
|
### Example
|
|
131
131
|
```ruby
|
|
@@ -147,7 +147,7 @@ opts = {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
begin
|
|
150
|
-
#Perform AI phishing detection and classification on an input image or document (PDF
|
|
150
|
+
#Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
151
151
|
result = api_instance.phishing_detect_file_post(opts)
|
|
152
152
|
p result
|
|
153
153
|
rescue CloudmersivePhishingDetectionApiClient::ApiError => e
|
|
@@ -180,7 +180,7 @@ Name | Type | Description | Notes
|
|
|
180
180
|
# **phishing_detect_text_string_advanced_post**
|
|
181
181
|
> PhishingDetectionAdvancedResponse phishing_detect_text_string_advanced_post(opts)
|
|
182
182
|
|
|
183
|
-
Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
183
|
+
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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
184
184
|
|
|
185
185
|
### Example
|
|
186
186
|
```ruby
|
|
@@ -201,7 +201,7 @@ opts = {
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
begin
|
|
204
|
-
#Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
204
|
+
#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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
205
205
|
result = api_instance.phishing_detect_text_string_advanced_post(opts)
|
|
206
206
|
p result
|
|
207
207
|
rescue CloudmersivePhishingDetectionApiClient::ApiError => e
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CloudmersivePhishingDetectionApiClient::PriorHistoryItem
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**input_string** | **String** | The text content of this historical message | [optional]
|
|
7
|
+
**from_name** | **String** | Optional: Name of the sender | [optional]
|
|
8
|
+
**to_name** | **String** | Optional: Name of the recipient | [optional]
|
|
9
|
+
**from_phone_number** | **String** | Optional: Phone number of the sender | [optional]
|
|
10
|
+
**to_phone_number** | **String** | Optional: Phone number of the recipient | [optional]
|
|
11
|
+
**from_email_address** | **String** | Optional: Email address of the sender | [optional]
|
|
12
|
+
**to_email_address** | **String** | Optional: Email address of the recipient | [optional]
|
|
13
|
+
**trusted_party** | **BOOLEAN** | Optional: True if this message is from a trusted party (such as our own company), false otherwise | [optional]
|
|
14
|
+
|
|
15
|
+
|
|
@@ -19,7 +19,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# 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.
|
|
22
|
+
# Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
23
23
|
# @param [Hash] opts the optional parameters
|
|
24
24
|
# @option opts [AdvancedEmailDetectionRequest] :body Phishing detection request
|
|
25
25
|
# @return [PhishingDetectionEmailAdvancedResponse]
|
|
@@ -28,7 +28,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
28
28
|
data
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
-
# 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.
|
|
31
|
+
# Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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.
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
|
33
33
|
# @option opts [AdvancedEmailDetectionRequest] :body Phishing detection request
|
|
34
34
|
# @return [Array<(PhishingDetectionEmailAdvancedResponse, Fixnum, Hash)>] PhishingDetectionEmailAdvancedResponse data, response status code and response headers
|
|
@@ -67,7 +67,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
67
67
|
end
|
|
68
68
|
return data, status_code, headers
|
|
69
69
|
end
|
|
70
|
-
# Perform advanced AI phishing detection and classification
|
|
70
|
+
# Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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.
|
|
71
71
|
# @param [Hash] opts the optional parameters
|
|
72
72
|
# @option opts [String] :model (default to Advanced)
|
|
73
73
|
# @option opts [String] :custom_policy_id
|
|
@@ -78,7 +78,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
78
78
|
data
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
# Perform advanced AI phishing detection and classification
|
|
81
|
+
# Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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.
|
|
82
82
|
# @param [Hash] opts the optional parameters
|
|
83
83
|
# @option opts [String] :model
|
|
84
84
|
# @option opts [String] :custom_policy_id
|
|
@@ -122,7 +122,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
122
122
|
end
|
|
123
123
|
return data, status_code, headers
|
|
124
124
|
end
|
|
125
|
-
# Perform AI phishing detection and classification on an input image or document (PDF
|
|
125
|
+
# Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
126
126
|
# @param [Hash] opts the optional parameters
|
|
127
127
|
# @option opts [String] :model Model to use; default setting is Advanced (default to Advanced)
|
|
128
128
|
# @option opts [File] :input_file
|
|
@@ -132,7 +132,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
132
132
|
data
|
|
133
133
|
end
|
|
134
134
|
|
|
135
|
-
# Perform AI phishing detection and classification on an input image or document (PDF
|
|
135
|
+
# Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
136
136
|
# @param [Hash] opts the optional parameters
|
|
137
137
|
# @option opts [String] :model Model to use; default setting is Advanced
|
|
138
138
|
# @option opts [File] :input_file
|
|
@@ -174,7 +174,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
174
174
|
end
|
|
175
175
|
return data, status_code, headers
|
|
176
176
|
end
|
|
177
|
-
# Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
177
|
+
# 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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
178
178
|
# @param [Hash] opts the optional parameters
|
|
179
179
|
# @option opts [PhishingDetectionAdvancedRequest] :body Phishing detection request
|
|
180
180
|
# @return [PhishingDetectionAdvancedResponse]
|
|
@@ -183,7 +183,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
183
183
|
data
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
-
# Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
186
|
+
# 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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
187
187
|
# @param [Hash] opts the optional parameters
|
|
188
188
|
# @option opts [PhishingDetectionAdvancedRequest] :body Phishing detection request
|
|
189
189
|
# @return [Array<(PhishingDetectionAdvancedResponse, Fixnum, Hash)>] PhishingDetectionAdvancedResponse data, response status code and response headers
|
data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb
CHANGED
|
@@ -66,6 +66,9 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
66
66
|
# Optional: Email address of the recipient
|
|
67
67
|
attr_accessor :to_email_address
|
|
68
68
|
|
|
69
|
+
# Optional: Prior context history (e.g. message history) leading up to the current input string. If provided, the AI will take this history into account as context when evaluating the current input.
|
|
70
|
+
attr_accessor :prior_history
|
|
71
|
+
|
|
69
72
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
70
73
|
def self.attribute_map
|
|
71
74
|
{
|
|
@@ -85,7 +88,8 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
85
88
|
:'from_phone_number' => :'FromPhoneNumber',
|
|
86
89
|
:'to_phone_number' => :'ToPhoneNumber',
|
|
87
90
|
:'from_email_address' => :'FromEmailAddress',
|
|
88
|
-
:'to_email_address' => :'ToEmailAddress'
|
|
91
|
+
:'to_email_address' => :'ToEmailAddress',
|
|
92
|
+
:'prior_history' => :'PriorHistory'
|
|
89
93
|
}
|
|
90
94
|
end
|
|
91
95
|
|
|
@@ -108,7 +112,8 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
108
112
|
:'from_phone_number' => :'String',
|
|
109
113
|
:'to_phone_number' => :'String',
|
|
110
114
|
:'from_email_address' => :'String',
|
|
111
|
-
:'to_email_address' => :'String'
|
|
115
|
+
:'to_email_address' => :'String',
|
|
116
|
+
:'prior_history' => :'Array<PriorHistoryItem>'
|
|
112
117
|
}
|
|
113
118
|
end
|
|
114
119
|
|
|
@@ -187,6 +192,12 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
187
192
|
if attributes.has_key?(:'ToEmailAddress')
|
|
188
193
|
self.to_email_address = attributes[:'ToEmailAddress']
|
|
189
194
|
end
|
|
195
|
+
|
|
196
|
+
if attributes.has_key?(:'PriorHistory')
|
|
197
|
+
if (value = attributes[:'PriorHistory']).is_a?(Array)
|
|
198
|
+
self.prior_history = value
|
|
199
|
+
end
|
|
200
|
+
end
|
|
190
201
|
end
|
|
191
202
|
|
|
192
203
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -223,7 +234,8 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
223
234
|
from_phone_number == o.from_phone_number &&
|
|
224
235
|
to_phone_number == o.to_phone_number &&
|
|
225
236
|
from_email_address == o.from_email_address &&
|
|
226
|
-
to_email_address == o.to_email_address
|
|
237
|
+
to_email_address == o.to_email_address &&
|
|
238
|
+
prior_history == o.prior_history
|
|
227
239
|
end
|
|
228
240
|
|
|
229
241
|
# @see the `==` method
|
|
@@ -235,7 +247,7 @@ module CloudmersivePhishingDetectionApiClient
|
|
|
235
247
|
# Calculates hash code according to all attributes.
|
|
236
248
|
# @return [Fixnum] Hash code
|
|
237
249
|
def hash
|
|
238
|
-
[input_string, text_type, model, allow_unsolicited_sales, allow_promotional_content, allow_web_urls, allow_phone_numbers, allow_email_addresses, provide_url_analysis, custom_policy_id, provide_analysis_rationale, from_name, to_name, from_phone_number, to_phone_number, from_email_address, to_email_address].hash
|
|
250
|
+
[input_string, text_type, model, allow_unsolicited_sales, allow_promotional_content, allow_web_urls, allow_phone_numbers, allow_email_addresses, provide_url_analysis, custom_policy_id, provide_analysis_rationale, from_name, to_name, from_phone_number, to_phone_number, from_email_address, to_email_address, prior_history].hash
|
|
239
251
|
end
|
|
240
252
|
|
|
241
253
|
# Builds the object from hash
|
|
@@ -0,0 +1,256 @@
|
|
|
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 'date'
|
|
14
|
+
|
|
15
|
+
module CloudmersivePhishingDetectionApiClient
|
|
16
|
+
# A single message in the prior conversation history
|
|
17
|
+
class PriorHistoryItem
|
|
18
|
+
# The text content of this historical message
|
|
19
|
+
attr_accessor :input_string
|
|
20
|
+
|
|
21
|
+
# Optional: Name of the sender
|
|
22
|
+
attr_accessor :from_name
|
|
23
|
+
|
|
24
|
+
# Optional: Name of the recipient
|
|
25
|
+
attr_accessor :to_name
|
|
26
|
+
|
|
27
|
+
# Optional: Phone number of the sender
|
|
28
|
+
attr_accessor :from_phone_number
|
|
29
|
+
|
|
30
|
+
# Optional: Phone number of the recipient
|
|
31
|
+
attr_accessor :to_phone_number
|
|
32
|
+
|
|
33
|
+
# Optional: Email address of the sender
|
|
34
|
+
attr_accessor :from_email_address
|
|
35
|
+
|
|
36
|
+
# Optional: Email address of the recipient
|
|
37
|
+
attr_accessor :to_email_address
|
|
38
|
+
|
|
39
|
+
# Optional: True if this message is from a trusted party (such as our own company), false otherwise
|
|
40
|
+
attr_accessor :trusted_party
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'input_string' => :'InputString',
|
|
46
|
+
:'from_name' => :'FromName',
|
|
47
|
+
:'to_name' => :'ToName',
|
|
48
|
+
:'from_phone_number' => :'FromPhoneNumber',
|
|
49
|
+
:'to_phone_number' => :'ToPhoneNumber',
|
|
50
|
+
:'from_email_address' => :'FromEmailAddress',
|
|
51
|
+
:'to_email_address' => :'ToEmailAddress',
|
|
52
|
+
:'trusted_party' => :'TrustedParty'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Attribute type mapping.
|
|
57
|
+
def self.swagger_types
|
|
58
|
+
{
|
|
59
|
+
:'input_string' => :'String',
|
|
60
|
+
:'from_name' => :'String',
|
|
61
|
+
:'to_name' => :'String',
|
|
62
|
+
:'from_phone_number' => :'String',
|
|
63
|
+
:'to_phone_number' => :'String',
|
|
64
|
+
:'from_email_address' => :'String',
|
|
65
|
+
:'to_email_address' => :'String',
|
|
66
|
+
:'trusted_party' => :'BOOLEAN'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
def initialize(attributes = {})
|
|
73
|
+
return unless attributes.is_a?(Hash)
|
|
74
|
+
|
|
75
|
+
# convert string to symbol for hash key
|
|
76
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
77
|
+
|
|
78
|
+
if attributes.has_key?(:'InputString')
|
|
79
|
+
self.input_string = attributes[:'InputString']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.has_key?(:'FromName')
|
|
83
|
+
self.from_name = attributes[:'FromName']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.has_key?(:'ToName')
|
|
87
|
+
self.to_name = attributes[:'ToName']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.has_key?(:'FromPhoneNumber')
|
|
91
|
+
self.from_phone_number = attributes[:'FromPhoneNumber']
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if attributes.has_key?(:'ToPhoneNumber')
|
|
95
|
+
self.to_phone_number = attributes[:'ToPhoneNumber']
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.has_key?(:'FromEmailAddress')
|
|
99
|
+
self.from_email_address = attributes[:'FromEmailAddress']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.has_key?(:'ToEmailAddress')
|
|
103
|
+
self.to_email_address = attributes[:'ToEmailAddress']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.has_key?(:'TrustedParty')
|
|
107
|
+
self.trusted_party = attributes[:'TrustedParty']
|
|
108
|
+
end
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
112
|
+
# @return Array for valid properties with the reasons
|
|
113
|
+
def list_invalid_properties
|
|
114
|
+
invalid_properties = Array.new
|
|
115
|
+
invalid_properties
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Check to see if the all the properties in the model are valid
|
|
119
|
+
# @return true if the model is valid
|
|
120
|
+
def valid?
|
|
121
|
+
true
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Checks equality by comparing each attribute.
|
|
125
|
+
# @param [Object] Object to be compared
|
|
126
|
+
def ==(o)
|
|
127
|
+
return true if self.equal?(o)
|
|
128
|
+
self.class == o.class &&
|
|
129
|
+
input_string == o.input_string &&
|
|
130
|
+
from_name == o.from_name &&
|
|
131
|
+
to_name == o.to_name &&
|
|
132
|
+
from_phone_number == o.from_phone_number &&
|
|
133
|
+
to_phone_number == o.to_phone_number &&
|
|
134
|
+
from_email_address == o.from_email_address &&
|
|
135
|
+
to_email_address == o.to_email_address &&
|
|
136
|
+
trusted_party == o.trusted_party
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# @see the `==` method
|
|
140
|
+
# @param [Object] Object to be compared
|
|
141
|
+
def eql?(o)
|
|
142
|
+
self == o
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Calculates hash code according to all attributes.
|
|
146
|
+
# @return [Fixnum] Hash code
|
|
147
|
+
def hash
|
|
148
|
+
[input_string, from_name, to_name, from_phone_number, to_phone_number, from_email_address, to_email_address, trusted_party].hash
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Builds the object from hash
|
|
152
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
153
|
+
# @return [Object] Returns the model itself
|
|
154
|
+
def build_from_hash(attributes)
|
|
155
|
+
return nil unless attributes.is_a?(Hash)
|
|
156
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
157
|
+
if type =~ /\AArray<(.*)>/i
|
|
158
|
+
# check to ensure the input is an array given that the attribute
|
|
159
|
+
# is documented as an array but the input is not
|
|
160
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
161
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
162
|
+
end
|
|
163
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
164
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
165
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
self
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Deserializes the data based on type
|
|
172
|
+
# @param string type Data type
|
|
173
|
+
# @param string value Value to be deserialized
|
|
174
|
+
# @return [Object] Deserialized data
|
|
175
|
+
def _deserialize(type, value)
|
|
176
|
+
case type.to_sym
|
|
177
|
+
when :DateTime
|
|
178
|
+
DateTime.parse(value)
|
|
179
|
+
when :Date
|
|
180
|
+
Date.parse(value)
|
|
181
|
+
when :String
|
|
182
|
+
value.to_s
|
|
183
|
+
when :Integer
|
|
184
|
+
value.to_i
|
|
185
|
+
when :Float
|
|
186
|
+
value.to_f
|
|
187
|
+
when :BOOLEAN
|
|
188
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
189
|
+
true
|
|
190
|
+
else
|
|
191
|
+
false
|
|
192
|
+
end
|
|
193
|
+
when :Object
|
|
194
|
+
# generic object (usually a Hash), return directly
|
|
195
|
+
value
|
|
196
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
197
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
198
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
199
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
200
|
+
k_type = Regexp.last_match[:k_type]
|
|
201
|
+
v_type = Regexp.last_match[:v_type]
|
|
202
|
+
{}.tap do |hash|
|
|
203
|
+
value.each do |k, v|
|
|
204
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
else # model
|
|
208
|
+
temp_model = CloudmersivePhishingDetectionApiClient.const_get(type).new
|
|
209
|
+
temp_model.build_from_hash(value)
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# Returns the string representation of the object
|
|
214
|
+
# @return [String] String presentation of the object
|
|
215
|
+
def to_s
|
|
216
|
+
to_hash.to_s
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
220
|
+
# @return [Hash] Returns the object in the form of hash
|
|
221
|
+
def to_body
|
|
222
|
+
to_hash
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Returns the object in the form of hash
|
|
226
|
+
# @return [Hash] Returns the object in the form of hash
|
|
227
|
+
def to_hash
|
|
228
|
+
hash = {}
|
|
229
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
230
|
+
value = self.send(attr)
|
|
231
|
+
next if value.nil?
|
|
232
|
+
hash[param] = _to_hash(value)
|
|
233
|
+
end
|
|
234
|
+
hash
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# Outputs non-array value in the form of hash
|
|
238
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
239
|
+
# @param [Object] value Any valid value
|
|
240
|
+
# @return [Hash] Returns the value in the form of hash
|
|
241
|
+
def _to_hash(value)
|
|
242
|
+
if value.is_a?(Array)
|
|
243
|
+
value.compact.map { |v| _to_hash(v) }
|
|
244
|
+
elsif value.is_a?(Hash)
|
|
245
|
+
{}.tap do |hash|
|
|
246
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
247
|
+
end
|
|
248
|
+
elsif value.respond_to? :to_hash
|
|
249
|
+
value.to_hash
|
|
250
|
+
else
|
|
251
|
+
value
|
|
252
|
+
end
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
end
|
|
256
|
+
end
|
|
@@ -26,6 +26,7 @@ require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_re
|
|
|
26
26
|
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_request'
|
|
27
27
|
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_response'
|
|
28
28
|
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_url_advanced_response'
|
|
29
|
+
require 'cloudmersive-phishing-detection-api-client/models/prior_history_item'
|
|
29
30
|
require 'cloudmersive-phishing-detection-api-client/models/unsafe_url_result'
|
|
30
31
|
|
|
31
32
|
# APIs
|
|
@@ -33,7 +33,7 @@ describe 'PhishingDetectionApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
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.
|
|
36
|
+
# Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @option opts [AdvancedEmailDetectionRequest] :body Phishing detection request
|
|
39
39
|
# @return [PhishingDetectionEmailAdvancedResponse]
|
|
@@ -44,7 +44,7 @@ describe 'PhishingDetectionApi' do
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
# unit tests for phishing_detect_file_advanced_post
|
|
47
|
-
# Perform advanced AI phishing detection and classification
|
|
47
|
+
# Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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
48
|
# @param [Hash] opts the optional parameters
|
|
49
49
|
# @option opts [String] :model
|
|
50
50
|
# @option opts [String] :custom_policy_id
|
|
@@ -57,7 +57,7 @@ describe 'PhishingDetectionApi' do
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# unit tests for phishing_detect_file_post
|
|
60
|
-
# Perform AI phishing detection and classification on an input image or document (PDF
|
|
60
|
+
# Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
61
61
|
# @param [Hash] opts the optional parameters
|
|
62
62
|
# @option opts [String] :model Model to use; default setting is Advanced
|
|
63
63
|
# @option opts [File] :input_file
|
|
@@ -69,7 +69,7 @@ describe 'PhishingDetectionApi' do
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# unit tests for phishing_detect_text_string_advanced_post
|
|
72
|
-
# Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
72
|
+
# 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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
73
73
|
# @param [Hash] opts the optional parameters
|
|
74
74
|
# @option opts [PhishingDetectionAdvancedRequest] :body Phishing detection request
|
|
75
75
|
# @return [PhishingDetectionAdvancedResponse]
|
|
@@ -134,4 +134,10 @@ describe 'PhishingDetectionAdvancedRequest' do
|
|
|
134
134
|
end
|
|
135
135
|
end
|
|
136
136
|
|
|
137
|
+
describe 'test attribute "prior_history"' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
137
143
|
end
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
require 'date'
|
|
16
|
+
|
|
17
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::PriorHistoryItem
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PriorHistoryItem' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PriorHistoryItem.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PriorHistoryItem' do
|
|
31
|
+
it 'should create an instance of PriorHistoryItem' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PriorHistoryItem)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "input_string"' do
|
|
36
|
+
it 'should work' do
|
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
describe 'test attribute "from_name"' do
|
|
42
|
+
it 'should work' do
|
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
describe 'test attribute "to_name"' do
|
|
48
|
+
it 'should work' do
|
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
describe 'test attribute "from_phone_number"' do
|
|
54
|
+
it 'should work' do
|
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
describe 'test attribute "to_phone_number"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "from_email_address"' 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 "to_email_address"' do
|
|
72
|
+
it 'should work' do
|
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
describe 'test attribute "trusted_party"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
end
|
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.
|
|
4
|
+
version: 2.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -212,6 +212,7 @@ files:
|
|
|
212
212
|
- "./docs/PhishingDetectionTextStringRequest.md"
|
|
213
213
|
- "./docs/PhishingDetectionTextStringResponse.md"
|
|
214
214
|
- "./docs/PhishingDetectionUrlAdvancedResponse.md"
|
|
215
|
+
- "./docs/PriorHistoryItem.md"
|
|
215
216
|
- "./docs/UnsafeUrlResult.md"
|
|
216
217
|
- "./git_push.sh"
|
|
217
218
|
- "./lib/cloudmersive-phishing-detection-api-client.rb"
|
|
@@ -228,6 +229,7 @@ files:
|
|
|
228
229
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_request.rb"
|
|
229
230
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_response.rb"
|
|
230
231
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_url_advanced_response.rb"
|
|
232
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/prior_history_item.rb"
|
|
231
233
|
- "./lib/cloudmersive-phishing-detection-api-client/models/unsafe_url_result.rb"
|
|
232
234
|
- "./lib/cloudmersive-phishing-detection-api-client/version.rb"
|
|
233
235
|
- "./spec/api/phishing_detection_api_spec.rb"
|
|
@@ -242,6 +244,7 @@ files:
|
|
|
242
244
|
- "./spec/models/phishing_detection_text_string_request_spec.rb"
|
|
243
245
|
- "./spec/models/phishing_detection_text_string_response_spec.rb"
|
|
244
246
|
- "./spec/models/phishing_detection_url_advanced_response_spec.rb"
|
|
247
|
+
- "./spec/models/prior_history_item_spec.rb"
|
|
245
248
|
- "./spec/models/unsafe_url_result_spec.rb"
|
|
246
249
|
- "./spec/spec_helper.rb"
|
|
247
250
|
homepage: https://www.cloudmersive.com/phishing-api
|