emailguard_sdk 1.1.0 → 1.2.0

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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/emailguard_sdk/api/billing_api.rb +1 -1
  3. data/lib/emailguard_sdk/api/channels_api.rb +1 -1
  4. data/lib/emailguard_sdk/api/email_api.rb +3 -3
  5. data/lib/emailguard_sdk/api/events_api.rb +1 -1
  6. data/lib/emailguard_sdk/api/invites_api.rb +1 -1
  7. data/lib/emailguard_sdk/api/members_api.rb +1 -1
  8. data/lib/emailguard_sdk/api/rules_api.rb +1 -1
  9. data/lib/emailguard_sdk/api/teams_api.rb +1 -1
  10. data/lib/emailguard_sdk/api_client.rb +1 -1
  11. data/lib/emailguard_sdk/api_error.rb +1 -1
  12. data/lib/emailguard_sdk/api_model_base.rb +1 -1
  13. data/lib/emailguard_sdk/configuration.rb +1 -1
  14. data/lib/emailguard_sdk/models/base_response.rb +1 -1
  15. data/lib/emailguard_sdk/models/billing_usage_event.rb +1 -1
  16. data/lib/emailguard_sdk/models/billing_usage_item.rb +1 -1
  17. data/lib/emailguard_sdk/models/billing_usage_response.rb +1 -1
  18. data/lib/emailguard_sdk/models/create_notification_channel_input.rb +1 -1
  19. data/lib/emailguard_sdk/models/create_notification_rule_input.rb +1 -1
  20. data/lib/emailguard_sdk/models/email_detect_data.rb +68 -6
  21. data/lib/emailguard_sdk/models/email_detect_evidence.rb +1 -1
  22. data/lib/emailguard_sdk/models/email_detect_matched_rule.rb +165 -0
  23. data/lib/emailguard_sdk/models/email_detect_response.rb +1 -1
  24. data/lib/emailguard_sdk/models/get_notification_channel_response.rb +1 -1
  25. data/lib/emailguard_sdk/models/get_notification_channels_response.rb +1 -1
  26. data/lib/emailguard_sdk/models/get_notification_events_response.rb +1 -1
  27. data/lib/emailguard_sdk/models/get_notification_rules_response.rb +1 -1
  28. data/lib/emailguard_sdk/models/get_public_team_response.rb +1 -1
  29. data/lib/emailguard_sdk/models/id_data_response.rb +1 -1
  30. data/lib/emailguard_sdk/models/id_data_struct.rb +1 -1
  31. data/lib/emailguard_sdk/models/invite_team_member_input.rb +1 -1
  32. data/lib/emailguard_sdk/models/list_public_team_invites_response.rb +1 -1
  33. data/lib/emailguard_sdk/models/list_public_team_members_response.rb +1 -1
  34. data/lib/emailguard_sdk/models/message_response.rb +1 -1
  35. data/lib/emailguard_sdk/models/notification_channel_response.rb +1 -1
  36. data/lib/emailguard_sdk/models/notification_rule_channel_input.rb +1 -1
  37. data/lib/emailguard_sdk/models/notification_rule_channel_response.rb +1 -1
  38. data/lib/emailguard_sdk/models/notification_rule_response.rb +1 -1
  39. data/lib/emailguard_sdk/models/public_team_invite_response.rb +1 -1
  40. data/lib/emailguard_sdk/models/public_team_member_response.rb +1 -1
  41. data/lib/emailguard_sdk/models/public_team_response.rb +1 -1
  42. data/lib/emailguard_sdk/models/public_update_team_member_input.rb +1 -1
  43. data/lib/emailguard_sdk/models/update_notification_channel_input.rb +1 -1
  44. data/lib/emailguard_sdk/models/update_notification_rule_input.rb +1 -1
  45. data/lib/emailguard_sdk/models/update_team_input.rb +1 -1
  46. data/lib/emailguard_sdk/version.rb +2 -2
  47. data/lib/emailguard_sdk.rb +2 -1
  48. data/spec/facade_contract_spec.rb +2 -2
  49. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 422f67385b6fde4358c82aad56d5419cffd9141beabadfee428f294c93686641
4
- data.tar.gz: 7479209427886c1dcad84fbc7c8fa1c09145eb0444f345ae27fc7a5befc47a2d
3
+ metadata.gz: ea2ecc975e5ce2658522dec4157f87c403c50789fe114ef52a8cc54044a2a075
4
+ data.tar.gz: 42f7f4c7268fa2c9e1b102de7d5596657478bf2d776658cd51dde1d30e09ab73
5
5
  SHA512:
6
- metadata.gz: '033683f1d5a8eac7561d8450c143037a2408d6775d2d3345768dc2f14e40ffa6e4814e6b9a91b21fc1364da95ea7288b36da9564e76d55014900bfca347a4935'
7
- data.tar.gz: 1de1dd05b9fc67213177ecfdf5150ad5252cab86a47766410f9970d052d91b5443edf999375d80e61dfa6748a7e229c9fd88c22a86ee0b656ffdd853731e249b
6
+ metadata.gz: a1af9eeb57d13969c8ecfbb8850e96058ae46b1b49f841b2e4cef624f43e3514e8fcd88fc0921ca94d846858f1518e38dd739d6bc5d9dd32819a0b042219ccd8
7
+ data.tar.gz: 647fd23d4781bd9612a68cde368a28bf31ce8e66642f861c0eec74ecb1171b6fe0ed45f71935a305d206b78129d421d523d66d68abd22dd4901da4d2e7d290f7
@@ -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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
7
7
  Contact: dev@emailguard.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.23.0
@@ -20,7 +20,7 @@ module Emailguard
20
20
  @api_client = api_client
21
21
  end
22
22
  # Detect email characteristics
23
- # Analyzes an email for syntax, normalization, typo suggestions, role/public/relay/disposable signals. Invalid TLDs can return suggested_email and suggested_domain while syntax_validation remains false.
23
+ # Analyzes an email for syntax, normalization, typo suggestions, role/public/relay/disposable signals, evidence, DNS classification flags, and optional team policy overlay. Invalid TLDs can return suggested_email and suggested_domain while syntax_validation remains false.
24
24
  # @param email [String] Email address to analyze
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [EmailDetectResponse]
@@ -30,7 +30,7 @@ module Emailguard
30
30
  end
31
31
 
32
32
  # Detect email characteristics
33
- # Analyzes an email for syntax, normalization, typo suggestions, role/public/relay/disposable signals. Invalid TLDs can return suggested_email and suggested_domain while syntax_validation remains false.
33
+ # Analyzes an email for syntax, normalization, typo suggestions, role/public/relay/disposable signals, evidence, DNS classification flags, and optional team policy overlay. Invalid TLDs can return suggested_email and suggested_domain while syntax_validation remains false.
34
34
  # @param email [String] Email address to analyze
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(EmailDetectResponse, Integer, Hash)>] EmailDetectResponse data, response status code and response headers
@@ -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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
7
7
  Contact: dev@emailguard.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.23.0
@@ -15,7 +15,7 @@ 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.
18
+ # high, medium, or low. Always set on a successful detect response.
19
19
  attr_accessor :confidence
20
20
 
21
21
  attr_accessor :detection_source
@@ -30,8 +30,20 @@ module Emailguard
30
30
 
31
31
  attr_accessor :evidence
32
32
 
33
+ # True when the domain shares MX/A infrastructure with a known disposable cluster.
34
+ attr_accessor :infra_cluster_match
35
+
36
+ # Matched catalog/staff rules without exposing patterns.
37
+ attr_accessor :matched_rules
38
+
39
+ # Set when a cached DNS snapshot exists for the domain (not a mailbox probe).
40
+ attr_accessor :mx_present
41
+
33
42
  attr_accessor :normalized
34
43
 
44
+ # Team overlay: allow or deny. Omitted when no team policy matched.
45
+ attr_accessor :policy_action
46
+
35
47
  attr_accessor :public_domain
36
48
 
37
49
  attr_accessor :relay_domain
@@ -42,6 +54,9 @@ module Emailguard
42
54
 
43
55
  attr_accessor :subaddressing
44
56
 
57
+ # Customer-policy action: allow or block. Omitted when no team policy matched.
58
+ attr_accessor :suggested_action
59
+
45
60
  # Corrected domain candidate when a domain or TLD typo rule matches.
46
61
  attr_accessor :suggested_domain
47
62
 
@@ -50,6 +65,9 @@ module Emailguard
50
65
 
51
66
  attr_accessor :syntax_validation
52
67
 
68
+ # True when the domain answers wildcard DNS typical of temp-mail farms.
69
+ attr_accessor :wildcard_dns
70
+
53
71
  # Attribute mapping from ruby-style variable name to JSON key.
54
72
  def self.attribute_map
55
73
  {
@@ -60,15 +78,21 @@ module Emailguard
60
78
  :'domain' => :'domain',
61
79
  :'email' => :'email',
62
80
  :'evidence' => :'evidence',
81
+ :'infra_cluster_match' => :'infra_cluster_match',
82
+ :'matched_rules' => :'matched_rules',
83
+ :'mx_present' => :'mx_present',
63
84
  :'normalized' => :'normalized',
85
+ :'policy_action' => :'policy_action',
64
86
  :'public_domain' => :'public_domain',
65
87
  :'relay_domain' => :'relay_domain',
66
88
  :'relay_provider' => :'relay_provider',
67
89
  :'role_address' => :'role_address',
68
90
  :'subaddressing' => :'subaddressing',
91
+ :'suggested_action' => :'suggested_action',
69
92
  :'suggested_domain' => :'suggested_domain',
70
93
  :'suggested_email' => :'suggested_email',
71
- :'syntax_validation' => :'syntax_validation'
94
+ :'syntax_validation' => :'syntax_validation',
95
+ :'wildcard_dns' => :'wildcard_dns'
72
96
  }
73
97
  end
74
98
 
@@ -92,15 +116,21 @@ module Emailguard
92
116
  :'domain' => :'String',
93
117
  :'email' => :'String',
94
118
  :'evidence' => :'EmailDetectEvidence',
119
+ :'infra_cluster_match' => :'Boolean',
120
+ :'matched_rules' => :'Array<EmailDetectMatchedRule>',
121
+ :'mx_present' => :'Boolean',
95
122
  :'normalized' => :'String',
123
+ :'policy_action' => :'String',
96
124
  :'public_domain' => :'Boolean',
97
125
  :'relay_domain' => :'Boolean',
98
126
  :'relay_provider' => :'String',
99
127
  :'role_address' => :'Boolean',
100
128
  :'subaddressing' => :'Boolean',
129
+ :'suggested_action' => :'String',
101
130
  :'suggested_domain' => :'String',
102
131
  :'suggested_email' => :'String',
103
- :'syntax_validation' => :'Boolean'
132
+ :'syntax_validation' => :'Boolean',
133
+ :'wildcard_dns' => :'Boolean'
104
134
  }
105
135
  end
106
136
 
@@ -154,10 +184,28 @@ module Emailguard
154
184
  self.evidence = attributes[:'evidence']
155
185
  end
156
186
 
187
+ if attributes.key?(:'infra_cluster_match')
188
+ self.infra_cluster_match = attributes[:'infra_cluster_match']
189
+ end
190
+
191
+ if attributes.key?(:'matched_rules')
192
+ if (value = attributes[:'matched_rules']).is_a?(Array)
193
+ self.matched_rules = value
194
+ end
195
+ end
196
+
197
+ if attributes.key?(:'mx_present')
198
+ self.mx_present = attributes[:'mx_present']
199
+ end
200
+
157
201
  if attributes.key?(:'normalized')
158
202
  self.normalized = attributes[:'normalized']
159
203
  end
160
204
 
205
+ if attributes.key?(:'policy_action')
206
+ self.policy_action = attributes[:'policy_action']
207
+ end
208
+
161
209
  if attributes.key?(:'public_domain')
162
210
  self.public_domain = attributes[:'public_domain']
163
211
  end
@@ -178,6 +226,10 @@ module Emailguard
178
226
  self.subaddressing = attributes[:'subaddressing']
179
227
  end
180
228
 
229
+ if attributes.key?(:'suggested_action')
230
+ self.suggested_action = attributes[:'suggested_action']
231
+ end
232
+
181
233
  if attributes.key?(:'suggested_domain')
182
234
  self.suggested_domain = attributes[:'suggested_domain']
183
235
  end
@@ -189,6 +241,10 @@ module Emailguard
189
241
  if attributes.key?(:'syntax_validation')
190
242
  self.syntax_validation = attributes[:'syntax_validation']
191
243
  end
244
+
245
+ if attributes.key?(:'wildcard_dns')
246
+ self.wildcard_dns = attributes[:'wildcard_dns']
247
+ end
192
248
  end
193
249
 
194
250
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -218,15 +274,21 @@ module Emailguard
218
274
  domain == o.domain &&
219
275
  email == o.email &&
220
276
  evidence == o.evidence &&
277
+ infra_cluster_match == o.infra_cluster_match &&
278
+ matched_rules == o.matched_rules &&
279
+ mx_present == o.mx_present &&
221
280
  normalized == o.normalized &&
281
+ policy_action == o.policy_action &&
222
282
  public_domain == o.public_domain &&
223
283
  relay_domain == o.relay_domain &&
224
284
  relay_provider == o.relay_provider &&
225
285
  role_address == o.role_address &&
226
286
  subaddressing == o.subaddressing &&
287
+ suggested_action == o.suggested_action &&
227
288
  suggested_domain == o.suggested_domain &&
228
289
  suggested_email == o.suggested_email &&
229
- syntax_validation == o.syntax_validation
290
+ syntax_validation == o.syntax_validation &&
291
+ wildcard_dns == o.wildcard_dns
230
292
  end
231
293
 
232
294
  # @see the `==` method
@@ -238,7 +300,7 @@ module Emailguard
238
300
  # Calculates hash code according to all attributes.
239
301
  # @return [Integer] Hash code
240
302
  def 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
303
+ [confidence, detection_source, disposable, disposable_provider, domain, email, evidence, infra_cluster_match, matched_rules, mx_present, normalized, policy_action, public_domain, relay_domain, relay_provider, role_address, subaddressing, suggested_action, suggested_domain, suggested_email, syntax_validation, wildcard_dns].hash
242
304
  end
243
305
 
244
306
  # Builds the object from hash
@@ -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.2
6
+ The version of the OpenAPI document: 1.3
7
7
  Contact: dev@emailguard.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.23.0
@@ -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.3
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 EmailDetectMatchedRule < ApiModelBase
18
+ attr_accessor :id
19
+
20
+ attr_accessor :label
21
+
22
+ attr_accessor :signal
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'id' => :'id',
28
+ :'label' => :'label',
29
+ :'signal' => :'signal'
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
+ :'id' => :'String',
47
+ :'label' => :'String',
48
+ :'signal' => :'String'
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::EmailDetectMatchedRule` 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::EmailDetectMatchedRule`. 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?(:'id')
75
+ self.id = attributes[:'id']
76
+ end
77
+
78
+ if attributes.key?(:'label')
79
+ self.label = attributes[:'label']
80
+ end
81
+
82
+ if attributes.key?(:'signal')
83
+ self.signal = attributes[:'signal']
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
+ id == o.id &&
108
+ label == o.label &&
109
+ signal == o.signal
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
+ [id, label, signal].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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
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.2
6
+ The version of the OpenAPI document: 1.3
7
7
  Contact: dev@emailguard.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.23.0
@@ -11,5 +11,5 @@ Generator version: 7.23.0
11
11
  =end
12
12
 
13
13
  module Emailguard
14
- VERSION = '1.1.0'
14
+ VERSION = '1.2.0'
15
15
  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.2
6
+ The version of the OpenAPI document: 1.3
7
7
  Contact: dev@emailguard.co
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.23.0
@@ -26,6 +26,7 @@ require 'emailguard_sdk/models/create_notification_channel_input'
26
26
  require 'emailguard_sdk/models/create_notification_rule_input'
27
27
  require 'emailguard_sdk/models/email_detect_data'
28
28
  require 'emailguard_sdk/models/email_detect_evidence'
29
+ require 'emailguard_sdk/models/email_detect_matched_rule'
29
30
  require 'emailguard_sdk/models/email_detect_response'
30
31
  require 'emailguard_sdk/models/get_notification_channel_response'
31
32
  require 'emailguard_sdk/models/get_notification_channels_response'
@@ -82,7 +82,7 @@ RSpec.describe Emailguard::Client do
82
82
  response = Typhoeus::Response.new(
83
83
  code: 200,
84
84
  headers: { "Content-Type" => "application/json" },
85
- body: "{\"code\":\"SUCCESS\",\"data\":{\"confidence\":\"example\",\"detection_source\":\"example\",\"disposable\":false,\"disposable_provider\":\"example\",\"domain\":\"example\",\"email\":\"example\",\"evidence\":{\"cluster_provider\":\"example\",\"detection_layer\":\"example\",\"source_count\":0},\"normalized\":\"example\",\"public_domain\":false,\"relay_domain\":false,\"relay_provider\":\"example\",\"role_address\":false,\"subaddressing\":false,\"suggested_domain\":\"example\",\"suggested_email\":\"example\",\"syntax_validation\":false},\"message\":\"ok\"}"
85
+ body: "{\"code\":\"SUCCESS\",\"data\":{\"confidence\":\"example\",\"detection_source\":\"example\",\"disposable\":false,\"disposable_provider\":\"example\",\"domain\":\"example\",\"email\":\"example\",\"evidence\":{\"cluster_provider\":\"example\",\"detection_layer\":\"example\",\"source_count\":0},\"infra_cluster_match\":false,\"matched_rules\":[],\"mx_present\":false,\"normalized\":\"example\",\"policy_action\":\"example\",\"public_domain\":false,\"relay_domain\":false,\"relay_provider\":\"example\",\"role_address\":false,\"subaddressing\":false,\"suggested_action\":\"example\",\"suggested_domain\":\"example\",\"suggested_email\":\"example\",\"syntax_validation\":false,\"wildcard_dns\":false},\"message\":\"ok\"}"
86
86
  )
87
87
  Typhoeus.stub(
88
88
  "https://api.example.test/api/v1/emails/detect",
@@ -312,7 +312,7 @@ RSpec.describe Emailguard::Client do
312
312
  expect { client.email.detect_email(email: "example") }.to raise_error(Emailguard::APIError) { |error| expect(error.status).to eq(429) }
313
313
 
314
314
  Typhoeus.stub(url, method: :get).and_return(
315
- Typhoeus::Response.new(code: 200, headers: { "Content-Type" => "application/json" }, body: "{\"code\":\"DENIED\",\"message\":\"Not allowed\",\"data\":{\"confidence\":\"example\",\"detection_source\":\"example\",\"disposable\":false,\"disposable_provider\":\"example\",\"domain\":\"example\",\"email\":\"example\",\"evidence\":{\"cluster_provider\":\"example\",\"detection_layer\":\"example\",\"source_count\":0},\"normalized\":\"example\",\"public_domain\":false,\"relay_domain\":false,\"relay_provider\":\"example\",\"role_address\":false,\"subaddressing\":false,\"suggested_domain\":\"example\",\"suggested_email\":\"example\",\"syntax_validation\":false}}")
315
+ Typhoeus::Response.new(code: 200, headers: { "Content-Type" => "application/json" }, body: "{\"code\":\"DENIED\",\"message\":\"Not allowed\",\"data\":{\"confidence\":\"example\",\"detection_source\":\"example\",\"disposable\":false,\"disposable_provider\":\"example\",\"domain\":\"example\",\"email\":\"example\",\"evidence\":{\"cluster_provider\":\"example\",\"detection_layer\":\"example\",\"source_count\":0},\"infra_cluster_match\":false,\"matched_rules\":[],\"mx_present\":false,\"normalized\":\"example\",\"policy_action\":\"example\",\"public_domain\":false,\"relay_domain\":false,\"relay_provider\":\"example\",\"role_address\":false,\"subaddressing\":false,\"suggested_action\":\"example\",\"suggested_domain\":\"example\",\"suggested_email\":\"example\",\"syntax_validation\":false,\"wildcard_dns\":false}}")
316
316
  )
317
317
  expect { client.email.detect_email(email: "example") }.to raise_error(Emailguard::APIError) { |error| expect(error.code).to eq("DENIED") }
318
318
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailguard_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - EmailGuard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-07 00:00:00.000000000 Z
11
+ date: 2026-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -87,6 +87,7 @@ files:
87
87
  - lib/emailguard_sdk/models/create_notification_rule_input.rb
88
88
  - lib/emailguard_sdk/models/email_detect_data.rb
89
89
  - lib/emailguard_sdk/models/email_detect_evidence.rb
90
+ - lib/emailguard_sdk/models/email_detect_matched_rule.rb
90
91
  - lib/emailguard_sdk/models/email_detect_response.rb
91
92
  - lib/emailguard_sdk/models/get_notification_channel_response.rb
92
93
  - lib/emailguard_sdk/models/get_notification_channels_response.rb