emailguard_sdk 1.0.4 → 1.0.5
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/docs/EmailDetectData.md +4 -0
- data/docs/EmailDetectEvidence.md +22 -0
- data/emailguard_sdk.gemspec +1 -1
- data/lib/emailguard_sdk/api/billing_api.rb +1 -1
- data/lib/emailguard_sdk/api/channels_api.rb +1 -1
- data/lib/emailguard_sdk/api/email_api.rb +1 -1
- data/lib/emailguard_sdk/api/events_api.rb +1 -1
- data/lib/emailguard_sdk/api/invites_api.rb +1 -1
- data/lib/emailguard_sdk/api/members_api.rb +1 -1
- data/lib/emailguard_sdk/api/rules_api.rb +1 -1
- data/lib/emailguard_sdk/api/teams_api.rb +1 -1
- data/lib/emailguard_sdk/api_client.rb +1 -1
- data/lib/emailguard_sdk/api_error.rb +1 -1
- data/lib/emailguard_sdk/api_model_base.rb +1 -1
- data/lib/emailguard_sdk/configuration.rb +1 -1
- data/lib/emailguard_sdk/models/base_response.rb +1 -1
- data/lib/emailguard_sdk/models/billing_usage_event.rb +1 -1
- data/lib/emailguard_sdk/models/billing_usage_item.rb +1 -1
- data/lib/emailguard_sdk/models/billing_usage_response.rb +1 -1
- data/lib/emailguard_sdk/models/create_notification_channel_input.rb +1 -1
- data/lib/emailguard_sdk/models/create_notification_rule_input.rb +1 -1
- data/lib/emailguard_sdk/models/email_detect_data.rb +21 -2
- data/lib/emailguard_sdk/models/email_detect_evidence.rb +165 -0
- data/lib/emailguard_sdk/models/email_detect_response.rb +1 -1
- data/lib/emailguard_sdk/models/get_notification_channel_response.rb +1 -1
- data/lib/emailguard_sdk/models/get_notification_channels_response.rb +1 -1
- data/lib/emailguard_sdk/models/get_notification_events_response.rb +1 -1
- data/lib/emailguard_sdk/models/get_notification_rules_response.rb +1 -1
- data/lib/emailguard_sdk/models/get_public_team_response.rb +1 -1
- data/lib/emailguard_sdk/models/id_data_response.rb +1 -1
- data/lib/emailguard_sdk/models/id_data_struct.rb +1 -1
- data/lib/emailguard_sdk/models/invite_team_member_input.rb +1 -1
- data/lib/emailguard_sdk/models/list_public_team_invites_response.rb +1 -1
- data/lib/emailguard_sdk/models/list_public_team_members_response.rb +1 -1
- data/lib/emailguard_sdk/models/message_response.rb +1 -1
- data/lib/emailguard_sdk/models/notification_channel_response.rb +1 -1
- data/lib/emailguard_sdk/models/notification_rule_channel_input.rb +1 -1
- data/lib/emailguard_sdk/models/notification_rule_channel_response.rb +1 -1
- data/lib/emailguard_sdk/models/notification_rule_response.rb +1 -1
- data/lib/emailguard_sdk/models/public_team_invite_response.rb +1 -1
- data/lib/emailguard_sdk/models/public_team_member_response.rb +1 -1
- data/lib/emailguard_sdk/models/public_team_response.rb +1 -1
- data/lib/emailguard_sdk/models/update_notification_channel_input.rb +1 -1
- data/lib/emailguard_sdk/models/update_notification_rule_input.rb +1 -1
- data/lib/emailguard_sdk/models/update_team_input.rb +1 -1
- data/lib/emailguard_sdk/models/update_team_member_input.rb +1 -1
- data/lib/emailguard_sdk/version.rb +2 -2
- data/lib/emailguard_sdk.rb +2 -1
- data/spec/api/billing_api_spec.rb +1 -1
- data/spec/api/channels_api_spec.rb +1 -1
- data/spec/api/email_api_spec.rb +1 -1
- data/spec/api/events_api_spec.rb +1 -1
- data/spec/api/invites_api_spec.rb +1 -1
- data/spec/api/members_api_spec.rb +1 -1
- data/spec/api/rules_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/models/base_response_spec.rb +1 -1
- data/spec/models/billing_usage_event_spec.rb +1 -1
- data/spec/models/billing_usage_item_spec.rb +1 -1
- data/spec/models/billing_usage_response_spec.rb +1 -1
- data/spec/models/create_notification_channel_input_spec.rb +1 -1
- data/spec/models/create_notification_rule_input_spec.rb +1 -1
- data/spec/models/email_detect_data_spec.rb +13 -1
- data/spec/models/email_detect_evidence_spec.rb +48 -0
- data/spec/models/email_detect_response_spec.rb +1 -1
- data/spec/models/get_notification_channel_response_spec.rb +1 -1
- data/spec/models/get_notification_channels_response_spec.rb +1 -1
- data/spec/models/get_notification_events_response_spec.rb +1 -1
- data/spec/models/get_notification_rules_response_spec.rb +1 -1
- data/spec/models/get_public_team_response_spec.rb +1 -1
- data/spec/models/id_data_response_spec.rb +1 -1
- data/spec/models/id_data_struct_spec.rb +1 -1
- data/spec/models/invite_team_member_input_spec.rb +1 -1
- data/spec/models/list_public_team_invites_response_spec.rb +1 -1
- data/spec/models/list_public_team_members_response_spec.rb +1 -1
- data/spec/models/message_response_spec.rb +1 -1
- data/spec/models/notification_channel_response_spec.rb +1 -1
- data/spec/models/notification_rule_channel_input_spec.rb +1 -1
- data/spec/models/notification_rule_channel_response_spec.rb +1 -1
- data/spec/models/notification_rule_response_spec.rb +1 -1
- data/spec/models/public_team_invite_response_spec.rb +1 -1
- data/spec/models/public_team_member_response_spec.rb +1 -1
- data/spec/models/public_team_response_spec.rb +1 -1
- data/spec/models/update_notification_channel_input_spec.rb +1 -1
- data/spec/models/update_notification_rule_input_spec.rb +1 -1
- data/spec/models/update_team_input_spec.rb +1 -1
- data/spec/models/update_team_member_input_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +32 -28
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1defcf59fc5b00205a8561013bc2de0ff097d96de089823643de132a5d390082
|
|
4
|
+
data.tar.gz: fce8e59af2fcdf66a8094e75be0c7082ccd1a4041578a55bb95c21c9f0ab6054
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5281987914339918eb296bfdbee1895c24812b71d6135bbc9eaf29d166aa95f0b2ea4d1b4f661ab29847b09d39330e4e08fea45fd245e91136aa389991185181
|
|
7
|
+
data.tar.gz: 0f8cf178aa7dd95a4ceb121180ccfeca55cfa3d6f1997d67ab1808a366e7cb880f52543f784d5a21b265c252fe19c3af73677a82b9a0a1ceb7e5701ae5089ff9
|
data/docs/EmailDetectData.md
CHANGED
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **confidence** | **String** | high, medium, or low when a disposable verdict includes a confidence signal. | [optional] |
|
|
7
8
|
| **detection_source** | **String** | | [optional] |
|
|
8
9
|
| **disposable** | **Boolean** | | [optional] |
|
|
9
10
|
| **disposable_provider** | **String** | | [optional] |
|
|
10
11
|
| **domain** | **String** | | [optional] |
|
|
11
12
|
| **email** | **String** | | [optional] |
|
|
13
|
+
| **evidence** | [**EmailDetectEvidence**](EmailDetectEvidence.md) | | [optional] |
|
|
12
14
|
| **normalized** | **String** | | [optional] |
|
|
13
15
|
| **public_domain** | **Boolean** | | [optional] |
|
|
14
16
|
| **relay_domain** | **Boolean** | | [optional] |
|
|
@@ -25,11 +27,13 @@
|
|
|
25
27
|
require 'emailguard_sdk'
|
|
26
28
|
|
|
27
29
|
instance = Emailguard::EmailDetectData.new(
|
|
30
|
+
confidence: null,
|
|
28
31
|
detection_source: null,
|
|
29
32
|
disposable: null,
|
|
30
33
|
disposable_provider: null,
|
|
31
34
|
domain: null,
|
|
32
35
|
email: null,
|
|
36
|
+
evidence: null,
|
|
33
37
|
normalized: null,
|
|
34
38
|
public_domain: null,
|
|
35
39
|
relay_domain: null,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Emailguard::EmailDetectEvidence
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **cluster_provider** | **String** | | [optional] |
|
|
8
|
+
| **detection_layer** | **String** | | [optional] |
|
|
9
|
+
| **source_count** | **Integer** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'emailguard_sdk'
|
|
15
|
+
|
|
16
|
+
instance = Emailguard::EmailDetectEvidence.new(
|
|
17
|
+
cluster_provider: null,
|
|
18
|
+
detection_layer: null,
|
|
19
|
+
source_count: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
data/emailguard_sdk.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.1
|
|
9
9
|
Contact: dev@emailguard.co
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
11
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -15,6 +15,9 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Emailguard
|
|
17
17
|
class EmailDetectData < ApiModelBase
|
|
18
|
+
# high, medium, or low when a disposable verdict includes a confidence signal.
|
|
19
|
+
attr_accessor :confidence
|
|
20
|
+
|
|
18
21
|
attr_accessor :detection_source
|
|
19
22
|
|
|
20
23
|
attr_accessor :disposable
|
|
@@ -25,6 +28,8 @@ module Emailguard
|
|
|
25
28
|
|
|
26
29
|
attr_accessor :email
|
|
27
30
|
|
|
31
|
+
attr_accessor :evidence
|
|
32
|
+
|
|
28
33
|
attr_accessor :normalized
|
|
29
34
|
|
|
30
35
|
attr_accessor :public_domain
|
|
@@ -48,11 +53,13 @@ module Emailguard
|
|
|
48
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
49
54
|
def self.attribute_map
|
|
50
55
|
{
|
|
56
|
+
:'confidence' => :'confidence',
|
|
51
57
|
:'detection_source' => :'detection_source',
|
|
52
58
|
:'disposable' => :'disposable',
|
|
53
59
|
:'disposable_provider' => :'disposable_provider',
|
|
54
60
|
:'domain' => :'domain',
|
|
55
61
|
:'email' => :'email',
|
|
62
|
+
:'evidence' => :'evidence',
|
|
56
63
|
:'normalized' => :'normalized',
|
|
57
64
|
:'public_domain' => :'public_domain',
|
|
58
65
|
:'relay_domain' => :'relay_domain',
|
|
@@ -78,11 +85,13 @@ module Emailguard
|
|
|
78
85
|
# Attribute type mapping.
|
|
79
86
|
def self.openapi_types
|
|
80
87
|
{
|
|
88
|
+
:'confidence' => :'String',
|
|
81
89
|
:'detection_source' => :'String',
|
|
82
90
|
:'disposable' => :'Boolean',
|
|
83
91
|
:'disposable_provider' => :'String',
|
|
84
92
|
:'domain' => :'String',
|
|
85
93
|
:'email' => :'String',
|
|
94
|
+
:'evidence' => :'EmailDetectEvidence',
|
|
86
95
|
:'normalized' => :'String',
|
|
87
96
|
:'public_domain' => :'Boolean',
|
|
88
97
|
:'relay_domain' => :'Boolean',
|
|
@@ -117,6 +126,10 @@ module Emailguard
|
|
|
117
126
|
h[k.to_sym] = v
|
|
118
127
|
}
|
|
119
128
|
|
|
129
|
+
if attributes.key?(:'confidence')
|
|
130
|
+
self.confidence = attributes[:'confidence']
|
|
131
|
+
end
|
|
132
|
+
|
|
120
133
|
if attributes.key?(:'detection_source')
|
|
121
134
|
self.detection_source = attributes[:'detection_source']
|
|
122
135
|
end
|
|
@@ -137,6 +150,10 @@ module Emailguard
|
|
|
137
150
|
self.email = attributes[:'email']
|
|
138
151
|
end
|
|
139
152
|
|
|
153
|
+
if attributes.key?(:'evidence')
|
|
154
|
+
self.evidence = attributes[:'evidence']
|
|
155
|
+
end
|
|
156
|
+
|
|
140
157
|
if attributes.key?(:'normalized')
|
|
141
158
|
self.normalized = attributes[:'normalized']
|
|
142
159
|
end
|
|
@@ -194,11 +211,13 @@ module Emailguard
|
|
|
194
211
|
def ==(o)
|
|
195
212
|
return true if self.equal?(o)
|
|
196
213
|
self.class == o.class &&
|
|
214
|
+
confidence == o.confidence &&
|
|
197
215
|
detection_source == o.detection_source &&
|
|
198
216
|
disposable == o.disposable &&
|
|
199
217
|
disposable_provider == o.disposable_provider &&
|
|
200
218
|
domain == o.domain &&
|
|
201
219
|
email == o.email &&
|
|
220
|
+
evidence == o.evidence &&
|
|
202
221
|
normalized == o.normalized &&
|
|
203
222
|
public_domain == o.public_domain &&
|
|
204
223
|
relay_domain == o.relay_domain &&
|
|
@@ -219,7 +238,7 @@ module Emailguard
|
|
|
219
238
|
# Calculates hash code according to all attributes.
|
|
220
239
|
# @return [Integer] Hash code
|
|
221
240
|
def hash
|
|
222
|
-
[detection_source, disposable, disposable_provider, domain, email, normalized, public_domain, relay_domain, relay_provider, role_address, subaddressing, suggested_domain, suggested_email, syntax_validation].hash
|
|
241
|
+
[confidence, detection_source, disposable, disposable_provider, domain, email, evidence, normalized, public_domain, relay_domain, relay_provider, role_address, subaddressing, suggested_domain, suggested_email, syntax_validation].hash
|
|
223
242
|
end
|
|
224
243
|
|
|
225
244
|
# Builds the object from hash
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#EmailGuard Public API
|
|
3
|
+
|
|
4
|
+
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
|
+
Contact: dev@emailguard.co
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.23.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Emailguard
|
|
17
|
+
class EmailDetectEvidence < ApiModelBase
|
|
18
|
+
attr_accessor :cluster_provider
|
|
19
|
+
|
|
20
|
+
attr_accessor :detection_layer
|
|
21
|
+
|
|
22
|
+
attr_accessor :source_count
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'cluster_provider' => :'cluster_provider',
|
|
28
|
+
:'detection_layer' => :'detection_layer',
|
|
29
|
+
:'source_count' => :'source_count'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'cluster_provider' => :'String',
|
|
47
|
+
:'detection_layer' => :'String',
|
|
48
|
+
:'source_count' => :'Integer'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# List of attributes with nullable: true
|
|
53
|
+
def self.openapi_nullable
|
|
54
|
+
Set.new([
|
|
55
|
+
])
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Initializes the object
|
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
|
+
def initialize(attributes = {})
|
|
61
|
+
if (!attributes.is_a?(Hash))
|
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Emailguard::EmailDetectEvidence` initialize method"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Emailguard::EmailDetectEvidence`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
|
+
end
|
|
71
|
+
h[k.to_sym] = v
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if attributes.key?(:'cluster_provider')
|
|
75
|
+
self.cluster_provider = attributes[:'cluster_provider']
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'detection_layer')
|
|
79
|
+
self.detection_layer = attributes[:'detection_layer']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'source_count')
|
|
83
|
+
self.source_count = attributes[:'source_count']
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
88
|
+
# @return Array for valid properties with the reasons
|
|
89
|
+
def list_invalid_properties
|
|
90
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
91
|
+
invalid_properties = Array.new
|
|
92
|
+
invalid_properties
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Check to see if the all the properties in the model are valid
|
|
96
|
+
# @return true if the model is valid
|
|
97
|
+
def valid?
|
|
98
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
99
|
+
true
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Checks equality by comparing each attribute.
|
|
103
|
+
# @param [Object] Object to be compared
|
|
104
|
+
def ==(o)
|
|
105
|
+
return true if self.equal?(o)
|
|
106
|
+
self.class == o.class &&
|
|
107
|
+
cluster_provider == o.cluster_provider &&
|
|
108
|
+
detection_layer == o.detection_layer &&
|
|
109
|
+
source_count == o.source_count
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# @see the `==` method
|
|
113
|
+
# @param [Object] Object to be compared
|
|
114
|
+
def eql?(o)
|
|
115
|
+
self == o
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Calculates hash code according to all attributes.
|
|
119
|
+
# @return [Integer] Hash code
|
|
120
|
+
def hash
|
|
121
|
+
[cluster_provider, detection_layer, source_count].hash
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Builds the object from hash
|
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
126
|
+
# @return [Object] Returns the model itself
|
|
127
|
+
def self.build_from_hash(attributes)
|
|
128
|
+
return nil unless attributes.is_a?(Hash)
|
|
129
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
130
|
+
transformed_hash = {}
|
|
131
|
+
openapi_types.each_pair do |key, type|
|
|
132
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
133
|
+
transformed_hash["#{key}"] = nil
|
|
134
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
135
|
+
# check to ensure the input is an array given that the attribute
|
|
136
|
+
# is documented as an array but the input is not
|
|
137
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
138
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
139
|
+
end
|
|
140
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
141
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
new(transformed_hash)
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Returns the object in the form of hash
|
|
148
|
+
# @return [Hash] Returns the object in the form of hash
|
|
149
|
+
def to_hash
|
|
150
|
+
hash = {}
|
|
151
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
152
|
+
value = self.send(attr)
|
|
153
|
+
if value.nil?
|
|
154
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
155
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
hash[param] = _to_hash(value)
|
|
159
|
+
end
|
|
160
|
+
hash
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Team-scoped REST API at /api/v1. Authenticate with `Authorization: Bearer egsk_live_...` or `X-API-Key`. Forks may register custom routes under /api/v1/tools/* (requires `tools:read` / `tools:write` scopes). Async tool jobs return a `job_id` — poll `GET .../{jobId}/results` until complete. See /docs/api-reference.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.1
|
|
7
7
|
Contact: dev@emailguard.co
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.23.0
|