mailsafepro 1.0.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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +256 -0
- data/Rakefile +10 -0
- data/docs/APIKeyCreateRequest.md +20 -0
- data/docs/APIKeyListResponse.md +22 -0
- data/docs/APIKeyMeta.md +34 -0
- data/docs/APIKeysApi.md +1241 -0
- data/docs/AuthenticationApi.md +1171 -0
- data/docs/BatchEmailResponse.md +28 -0
- data/docs/BatchValidationRequest.md +26 -0
- data/docs/BillingApi.md +689 -0
- data/docs/BodyChangePlanBillingBillingChangePlanPost.md +18 -0
- data/docs/CheckoutRequest.md +18 -0
- data/docs/CheckoutSessionResponse.md +18 -0
- data/docs/DNSInfo.md +26 -0
- data/docs/DNSRecordDKIM.md +26 -0
- data/docs/DNSRecordDMARC.md +24 -0
- data/docs/DNSRecordSPF.md +24 -0
- data/docs/DefaultApi.md +141 -0
- data/docs/DeveloperToolsApi.md +154 -0
- data/docs/EmailResponse.md +46 -0
- data/docs/EmailValidationApi.md +479 -0
- data/docs/EmailValidationRequest.md +26 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/HealthApi.md +937 -0
- data/docs/JobCreateRequest.md +32 -0
- data/docs/JobCreateResponse.md +22 -0
- data/docs/JobResultEntry.md +34 -0
- data/docs/JobResultsPage.md +26 -0
- data/docs/JobStatusResponse.md +28 -0
- data/docs/JobsApi.md +433 -0
- data/docs/KeyRotationRequest.md +22 -0
- data/docs/LogsApi.md +154 -0
- data/docs/PlanEnum.md +15 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/RegisterEndpoint.md +18 -0
- data/docs/ResponseTestNotificationBillingBillingTestNotificationPostValue.md +15 -0
- data/docs/RiskLevelEnum.md +15 -0
- data/docs/RotateSecret.md +18 -0
- data/docs/SMTPInfo.md +26 -0
- data/docs/SubscriptionResponse.md +24 -0
- data/docs/UserLogin.md +20 -0
- data/docs/UserRegister.md +22 -0
- data/docs/ValidationApi.md +479 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/WebhookCreate.md +24 -0
- data/docs/WebhookResponse.md +22 -0
- data/docs/WebhookUpdate.md +24 -0
- data/docs/WebhooksApi.md +776 -0
- data/docs/WebhooksManagementApi.md +500 -0
- data/git_push.sh +57 -0
- data/lib/mailsafepro/api/api_keys_api.rb +1148 -0
- data/lib/mailsafepro/api/authentication_api.rb +1114 -0
- data/lib/mailsafepro/api/billing_api.rb +670 -0
- data/lib/mailsafepro/api/default_api.rb +149 -0
- data/lib/mailsafepro/api/developer_tools_api.rb +155 -0
- data/lib/mailsafepro/api/email_validation_api.rb +486 -0
- data/lib/mailsafepro/api/health_api.rb +877 -0
- data/lib/mailsafepro/api/jobs_api.rb +452 -0
- data/lib/mailsafepro/api/logs_api.rb +155 -0
- data/lib/mailsafepro/api/validation_api.rb +486 -0
- data/lib/mailsafepro/api/webhooks_api.rb +768 -0
- data/lib/mailsafepro/api/webhooks_management_api.rb +480 -0
- data/lib/mailsafepro/api_client.rb +397 -0
- data/lib/mailsafepro/api_error.rb +58 -0
- data/lib/mailsafepro/api_model_base.rb +88 -0
- data/lib/mailsafepro/configuration.rb +316 -0
- data/lib/mailsafepro/models/api_key_create_request.rb +185 -0
- data/lib/mailsafepro/models/api_key_list_response.rb +240 -0
- data/lib/mailsafepro/models/api_key_meta.rb +338 -0
- data/lib/mailsafepro/models/batch_email_response.rb +348 -0
- data/lib/mailsafepro/models/batch_validation_request.rb +290 -0
- data/lib/mailsafepro/models/body_change_plan_billing_billing_change_plan_post.rb +164 -0
- data/lib/mailsafepro/models/checkout_request.rb +166 -0
- data/lib/mailsafepro/models/checkout_session_response.rb +165 -0
- data/lib/mailsafepro/models/dns_info.rb +193 -0
- data/lib/mailsafepro/models/dns_record_dkim.rb +189 -0
- data/lib/mailsafepro/models/dns_record_dmarc.rb +179 -0
- data/lib/mailsafepro/models/dns_record_spf.rb +179 -0
- data/lib/mailsafepro/models/email_response.rb +454 -0
- data/lib/mailsafepro/models/email_validation_request.rb +252 -0
- data/lib/mailsafepro/models/http_validation_error.rb +149 -0
- data/lib/mailsafepro/models/job_create_request.rb +251 -0
- data/lib/mailsafepro/models/job_create_response.rb +216 -0
- data/lib/mailsafepro/models/job_result_entry.rb +257 -0
- data/lib/mailsafepro/models/job_results_page.rb +270 -0
- data/lib/mailsafepro/models/job_status_response.rb +231 -0
- data/lib/mailsafepro/models/key_rotation_request.rb +269 -0
- data/lib/mailsafepro/models/plan_enum.rb +41 -0
- data/lib/mailsafepro/models/priority_enum.rb +41 -0
- data/lib/mailsafepro/models/register_endpoint.rb +173 -0
- data/lib/mailsafepro/models/response_test_notification_billing_billing_test_notification_post_value.rb +103 -0
- data/lib/mailsafepro/models/risk_level_enum.rb +42 -0
- data/lib/mailsafepro/models/rotate_secret.rb +164 -0
- data/lib/mailsafepro/models/smtp_info.rb +206 -0
- data/lib/mailsafepro/models/subscription_response.rb +196 -0
- data/lib/mailsafepro/models/user_login.rb +211 -0
- data/lib/mailsafepro/models/user_register.rb +243 -0
- data/lib/mailsafepro/models/validation_error.rb +218 -0
- data/lib/mailsafepro/models/validation_error_loc_inner.rb +103 -0
- data/lib/mailsafepro/models/webhook_create.rb +213 -0
- data/lib/mailsafepro/models/webhook_response.rb +185 -0
- data/lib/mailsafepro/models/webhook_update.rb +204 -0
- data/lib/mailsafepro/version.rb +15 -0
- data/lib/mailsafepro.rb +88 -0
- data/mailsafepro.gemspec +39 -0
- data/spec/api/api_keys_api_spec.rb +245 -0
- data/spec/api/authentication_api_spec.rb +239 -0
- data/spec/api/billing_api_spec.rb +155 -0
- data/spec/api/default_api_spec.rb +60 -0
- data/spec/api/developer_tools_api_spec.rb +62 -0
- data/spec/api/email_validation_api_spec.rb +125 -0
- data/spec/api/health_api_spec.rb +200 -0
- data/spec/api/jobs_api_spec.rb +119 -0
- data/spec/api/logs_api_spec.rb +62 -0
- data/spec/api/validation_api_spec.rb +125 -0
- data/spec/api/webhooks_api_spec.rb +172 -0
- data/spec/api/webhooks_management_api_spec.rb +120 -0
- data/spec/models/api_key_create_request_spec.rb +42 -0
- data/spec/models/api_key_list_response_spec.rb +48 -0
- data/spec/models/api_key_meta_spec.rb +84 -0
- data/spec/models/batch_email_response_spec.rb +66 -0
- data/spec/models/batch_validation_request_spec.rb +60 -0
- data/spec/models/body_change_plan_billing_billing_change_plan_post_spec.rb +36 -0
- data/spec/models/checkout_request_spec.rb +36 -0
- data/spec/models/checkout_session_response_spec.rb +36 -0
- data/spec/models/dns_info_spec.rb +60 -0
- data/spec/models/dns_record_dkim_spec.rb +60 -0
- data/spec/models/dns_record_dmarc_spec.rb +54 -0
- data/spec/models/dns_record_spf_spec.rb +54 -0
- data/spec/models/email_response_spec.rb +120 -0
- data/spec/models/email_validation_request_spec.rb +60 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/job_create_request_spec.rb +78 -0
- data/spec/models/job_create_response_spec.rb +48 -0
- data/spec/models/job_result_entry_spec.rb +84 -0
- data/spec/models/job_results_page_spec.rb +60 -0
- data/spec/models/job_status_response_spec.rb +66 -0
- data/spec/models/key_rotation_request_spec.rb +48 -0
- data/spec/models/plan_enum_spec.rb +30 -0
- data/spec/models/priority_enum_spec.rb +30 -0
- data/spec/models/register_endpoint_spec.rb +36 -0
- data/spec/models/response_test_notification_billing_billing_test_notification_post_value_spec.rb +21 -0
- data/spec/models/risk_level_enum_spec.rb +30 -0
- data/spec/models/rotate_secret_spec.rb +36 -0
- data/spec/models/smtp_info_spec.rb +60 -0
- data/spec/models/subscription_response_spec.rb +54 -0
- data/spec/models/user_login_spec.rb +42 -0
- data/spec/models/user_register_spec.rb +48 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +54 -0
- data/spec/models/webhook_response_spec.rb +48 -0
- data/spec/models/webhook_update_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +291 -0
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
# MailSafePro::ValidationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**batch_validate_emails_validate_batch_post**](ValidationApi.md#batch_validate_emails_validate_batch_post) | **POST** /validate/batch | Batch Email Validation |
|
|
8
|
+
| [**batch_validate_upload_validate_batch_upload_post**](ValidationApi.md#batch_validate_upload_validate_batch_upload_post) | **POST** /validate/batch/upload | Batch Email Validation via File Upload |
|
|
9
|
+
| [**get_cache_stats_validate_stats_cache_get**](ValidationApi.md#get_cache_stats_validate_stats_cache_get) | **GET** /validate/stats/cache | Get Cache Stats |
|
|
10
|
+
| [**get_usage_stats_validate_stats_usage_get**](ValidationApi.md#get_usage_stats_validate_stats_usage_get) | **GET** /validate/stats/usage | Get Usage Stats |
|
|
11
|
+
| [**health_check_validate_health_get**](ValidationApi.md#health_check_validate_health_get) | **GET** /validate/health | Health Check |
|
|
12
|
+
| [**health_check_validate_health_head**](ValidationApi.md#health_check_validate_health_head) | **HEAD** /validate/health | Health Check |
|
|
13
|
+
| [**validate_email_endpoint_validate_email_post**](ValidationApi.md#validate_email_endpoint_validate_email_post) | **POST** /validate/email | Validate Email Endpoint |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## batch_validate_emails_validate_batch_post
|
|
17
|
+
|
|
18
|
+
> <BatchEmailResponse> batch_validate_emails_validate_batch_post(batch_validation_request, opts)
|
|
19
|
+
|
|
20
|
+
Batch Email Validation
|
|
21
|
+
|
|
22
|
+
Valida múltiples direcciones de email en una sola solicitud.
|
|
23
|
+
|
|
24
|
+
### Examples
|
|
25
|
+
|
|
26
|
+
```ruby
|
|
27
|
+
require 'time'
|
|
28
|
+
require 'mailsafepro'
|
|
29
|
+
|
|
30
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
31
|
+
batch_validation_request = MailSafePro::BatchValidationRequest.new({emails: ['emails_example']}) # BatchValidationRequest |
|
|
32
|
+
opts = {
|
|
33
|
+
x_api_key: 'x_api_key_example', # String |
|
|
34
|
+
authorization: 'authorization_example' # String |
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
begin
|
|
38
|
+
# Batch Email Validation
|
|
39
|
+
result = api_instance.batch_validate_emails_validate_batch_post(batch_validation_request, opts)
|
|
40
|
+
p result
|
|
41
|
+
rescue MailSafePro::ApiError => e
|
|
42
|
+
puts "Error when calling ValidationApi->batch_validate_emails_validate_batch_post: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Using the batch_validate_emails_validate_batch_post_with_http_info variant
|
|
47
|
+
|
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
|
49
|
+
|
|
50
|
+
> <Array(<BatchEmailResponse>, Integer, Hash)> batch_validate_emails_validate_batch_post_with_http_info(batch_validation_request, opts)
|
|
51
|
+
|
|
52
|
+
```ruby
|
|
53
|
+
begin
|
|
54
|
+
# Batch Email Validation
|
|
55
|
+
data, status_code, headers = api_instance.batch_validate_emails_validate_batch_post_with_http_info(batch_validation_request, opts)
|
|
56
|
+
p status_code # => 2xx
|
|
57
|
+
p headers # => { ... }
|
|
58
|
+
p data # => <BatchEmailResponse>
|
|
59
|
+
rescue MailSafePro::ApiError => e
|
|
60
|
+
puts "Error when calling ValidationApi->batch_validate_emails_validate_batch_post_with_http_info: #{e}"
|
|
61
|
+
end
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Parameters
|
|
65
|
+
|
|
66
|
+
| Name | Type | Description | Notes |
|
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
|
68
|
+
| **batch_validation_request** | [**BatchValidationRequest**](BatchValidationRequest.md) | | |
|
|
69
|
+
| **x_api_key** | **String** | | [optional] |
|
|
70
|
+
| **authorization** | **String** | | [optional] |
|
|
71
|
+
|
|
72
|
+
### Return type
|
|
73
|
+
|
|
74
|
+
[**BatchEmailResponse**](BatchEmailResponse.md)
|
|
75
|
+
|
|
76
|
+
### Authorization
|
|
77
|
+
|
|
78
|
+
No authorization required
|
|
79
|
+
|
|
80
|
+
### HTTP request headers
|
|
81
|
+
|
|
82
|
+
- **Content-Type**: application/json
|
|
83
|
+
- **Accept**: application/json
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## batch_validate_upload_validate_batch_upload_post
|
|
87
|
+
|
|
88
|
+
> Object batch_validate_upload_validate_batch_upload_post(file, opts)
|
|
89
|
+
|
|
90
|
+
Batch Email Validation via File Upload
|
|
91
|
+
|
|
92
|
+
### Examples
|
|
93
|
+
|
|
94
|
+
```ruby
|
|
95
|
+
require 'time'
|
|
96
|
+
require 'mailsafepro'
|
|
97
|
+
|
|
98
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
99
|
+
file = File.new('/path/to/some/file') # File |
|
|
100
|
+
opts = {
|
|
101
|
+
x_api_key: 'x_api_key_example', # String |
|
|
102
|
+
authorization: 'authorization_example', # String |
|
|
103
|
+
column: 'column_example', # String |
|
|
104
|
+
include_raw_dns: true, # Boolean |
|
|
105
|
+
check_smtp: true # Boolean |
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
begin
|
|
109
|
+
# Batch Email Validation via File Upload
|
|
110
|
+
result = api_instance.batch_validate_upload_validate_batch_upload_post(file, opts)
|
|
111
|
+
p result
|
|
112
|
+
rescue MailSafePro::ApiError => e
|
|
113
|
+
puts "Error when calling ValidationApi->batch_validate_upload_validate_batch_upload_post: #{e}"
|
|
114
|
+
end
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
#### Using the batch_validate_upload_validate_batch_upload_post_with_http_info variant
|
|
118
|
+
|
|
119
|
+
This returns an Array which contains the response data, status code and headers.
|
|
120
|
+
|
|
121
|
+
> <Array(Object, Integer, Hash)> batch_validate_upload_validate_batch_upload_post_with_http_info(file, opts)
|
|
122
|
+
|
|
123
|
+
```ruby
|
|
124
|
+
begin
|
|
125
|
+
# Batch Email Validation via File Upload
|
|
126
|
+
data, status_code, headers = api_instance.batch_validate_upload_validate_batch_upload_post_with_http_info(file, opts)
|
|
127
|
+
p status_code # => 2xx
|
|
128
|
+
p headers # => { ... }
|
|
129
|
+
p data # => Object
|
|
130
|
+
rescue MailSafePro::ApiError => e
|
|
131
|
+
puts "Error when calling ValidationApi->batch_validate_upload_validate_batch_upload_post_with_http_info: #{e}"
|
|
132
|
+
end
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Parameters
|
|
136
|
+
|
|
137
|
+
| Name | Type | Description | Notes |
|
|
138
|
+
| ---- | ---- | ----------- | ----- |
|
|
139
|
+
| **file** | **File** | | |
|
|
140
|
+
| **x_api_key** | **String** | | [optional] |
|
|
141
|
+
| **authorization** | **String** | | [optional] |
|
|
142
|
+
| **column** | **String** | | [optional] |
|
|
143
|
+
| **include_raw_dns** | **Boolean** | | [optional][default to false] |
|
|
144
|
+
| **check_smtp** | **Boolean** | | [optional][default to false] |
|
|
145
|
+
|
|
146
|
+
### Return type
|
|
147
|
+
|
|
148
|
+
**Object**
|
|
149
|
+
|
|
150
|
+
### Authorization
|
|
151
|
+
|
|
152
|
+
No authorization required
|
|
153
|
+
|
|
154
|
+
### HTTP request headers
|
|
155
|
+
|
|
156
|
+
- **Content-Type**: multipart/form-data
|
|
157
|
+
- **Accept**: application/json
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## get_cache_stats_validate_stats_cache_get
|
|
161
|
+
|
|
162
|
+
> Object get_cache_stats_validate_stats_cache_get
|
|
163
|
+
|
|
164
|
+
Get Cache Stats
|
|
165
|
+
|
|
166
|
+
Obtiene estadísticas de cache del sistema.
|
|
167
|
+
|
|
168
|
+
### Examples
|
|
169
|
+
|
|
170
|
+
```ruby
|
|
171
|
+
require 'time'
|
|
172
|
+
require 'mailsafepro'
|
|
173
|
+
|
|
174
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
175
|
+
|
|
176
|
+
begin
|
|
177
|
+
# Get Cache Stats
|
|
178
|
+
result = api_instance.get_cache_stats_validate_stats_cache_get
|
|
179
|
+
p result
|
|
180
|
+
rescue MailSafePro::ApiError => e
|
|
181
|
+
puts "Error when calling ValidationApi->get_cache_stats_validate_stats_cache_get: #{e}"
|
|
182
|
+
end
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
#### Using the get_cache_stats_validate_stats_cache_get_with_http_info variant
|
|
186
|
+
|
|
187
|
+
This returns an Array which contains the response data, status code and headers.
|
|
188
|
+
|
|
189
|
+
> <Array(Object, Integer, Hash)> get_cache_stats_validate_stats_cache_get_with_http_info
|
|
190
|
+
|
|
191
|
+
```ruby
|
|
192
|
+
begin
|
|
193
|
+
# Get Cache Stats
|
|
194
|
+
data, status_code, headers = api_instance.get_cache_stats_validate_stats_cache_get_with_http_info
|
|
195
|
+
p status_code # => 2xx
|
|
196
|
+
p headers # => { ... }
|
|
197
|
+
p data # => Object
|
|
198
|
+
rescue MailSafePro::ApiError => e
|
|
199
|
+
puts "Error when calling ValidationApi->get_cache_stats_validate_stats_cache_get_with_http_info: #{e}"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
### Parameters
|
|
204
|
+
|
|
205
|
+
This endpoint does not need any parameter.
|
|
206
|
+
|
|
207
|
+
### Return type
|
|
208
|
+
|
|
209
|
+
**Object**
|
|
210
|
+
|
|
211
|
+
### Authorization
|
|
212
|
+
|
|
213
|
+
No authorization required
|
|
214
|
+
|
|
215
|
+
### HTTP request headers
|
|
216
|
+
|
|
217
|
+
- **Content-Type**: Not defined
|
|
218
|
+
- **Accept**: application/json
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
## get_usage_stats_validate_stats_usage_get
|
|
222
|
+
|
|
223
|
+
> Object get_usage_stats_validate_stats_usage_get(opts)
|
|
224
|
+
|
|
225
|
+
Get Usage Stats
|
|
226
|
+
|
|
227
|
+
Obtiene estadísticas de uso del cliente actual.
|
|
228
|
+
|
|
229
|
+
### Examples
|
|
230
|
+
|
|
231
|
+
```ruby
|
|
232
|
+
require 'time'
|
|
233
|
+
require 'mailsafepro'
|
|
234
|
+
|
|
235
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
236
|
+
opts = {
|
|
237
|
+
x_api_key: 'x_api_key_example', # String |
|
|
238
|
+
authorization: 'authorization_example' # String |
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
begin
|
|
242
|
+
# Get Usage Stats
|
|
243
|
+
result = api_instance.get_usage_stats_validate_stats_usage_get(opts)
|
|
244
|
+
p result
|
|
245
|
+
rescue MailSafePro::ApiError => e
|
|
246
|
+
puts "Error when calling ValidationApi->get_usage_stats_validate_stats_usage_get: #{e}"
|
|
247
|
+
end
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### Using the get_usage_stats_validate_stats_usage_get_with_http_info variant
|
|
251
|
+
|
|
252
|
+
This returns an Array which contains the response data, status code and headers.
|
|
253
|
+
|
|
254
|
+
> <Array(Object, Integer, Hash)> get_usage_stats_validate_stats_usage_get_with_http_info(opts)
|
|
255
|
+
|
|
256
|
+
```ruby
|
|
257
|
+
begin
|
|
258
|
+
# Get Usage Stats
|
|
259
|
+
data, status_code, headers = api_instance.get_usage_stats_validate_stats_usage_get_with_http_info(opts)
|
|
260
|
+
p status_code # => 2xx
|
|
261
|
+
p headers # => { ... }
|
|
262
|
+
p data # => Object
|
|
263
|
+
rescue MailSafePro::ApiError => e
|
|
264
|
+
puts "Error when calling ValidationApi->get_usage_stats_validate_stats_usage_get_with_http_info: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Parameters
|
|
269
|
+
|
|
270
|
+
| Name | Type | Description | Notes |
|
|
271
|
+
| ---- | ---- | ----------- | ----- |
|
|
272
|
+
| **x_api_key** | **String** | | [optional] |
|
|
273
|
+
| **authorization** | **String** | | [optional] |
|
|
274
|
+
|
|
275
|
+
### Return type
|
|
276
|
+
|
|
277
|
+
**Object**
|
|
278
|
+
|
|
279
|
+
### Authorization
|
|
280
|
+
|
|
281
|
+
No authorization required
|
|
282
|
+
|
|
283
|
+
### HTTP request headers
|
|
284
|
+
|
|
285
|
+
- **Content-Type**: Not defined
|
|
286
|
+
- **Accept**: application/json
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
## health_check_validate_health_get
|
|
290
|
+
|
|
291
|
+
> Object health_check_validate_health_get
|
|
292
|
+
|
|
293
|
+
Health Check
|
|
294
|
+
|
|
295
|
+
Health check completo del servicio de validación.
|
|
296
|
+
|
|
297
|
+
### Examples
|
|
298
|
+
|
|
299
|
+
```ruby
|
|
300
|
+
require 'time'
|
|
301
|
+
require 'mailsafepro'
|
|
302
|
+
|
|
303
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
304
|
+
|
|
305
|
+
begin
|
|
306
|
+
# Health Check
|
|
307
|
+
result = api_instance.health_check_validate_health_get
|
|
308
|
+
p result
|
|
309
|
+
rescue MailSafePro::ApiError => e
|
|
310
|
+
puts "Error when calling ValidationApi->health_check_validate_health_get: #{e}"
|
|
311
|
+
end
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
#### Using the health_check_validate_health_get_with_http_info variant
|
|
315
|
+
|
|
316
|
+
This returns an Array which contains the response data, status code and headers.
|
|
317
|
+
|
|
318
|
+
> <Array(Object, Integer, Hash)> health_check_validate_health_get_with_http_info
|
|
319
|
+
|
|
320
|
+
```ruby
|
|
321
|
+
begin
|
|
322
|
+
# Health Check
|
|
323
|
+
data, status_code, headers = api_instance.health_check_validate_health_get_with_http_info
|
|
324
|
+
p status_code # => 2xx
|
|
325
|
+
p headers # => { ... }
|
|
326
|
+
p data # => Object
|
|
327
|
+
rescue MailSafePro::ApiError => e
|
|
328
|
+
puts "Error when calling ValidationApi->health_check_validate_health_get_with_http_info: #{e}"
|
|
329
|
+
end
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
This endpoint does not need any parameter.
|
|
335
|
+
|
|
336
|
+
### Return type
|
|
337
|
+
|
|
338
|
+
**Object**
|
|
339
|
+
|
|
340
|
+
### Authorization
|
|
341
|
+
|
|
342
|
+
No authorization required
|
|
343
|
+
|
|
344
|
+
### HTTP request headers
|
|
345
|
+
|
|
346
|
+
- **Content-Type**: Not defined
|
|
347
|
+
- **Accept**: application/json
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
## health_check_validate_health_head
|
|
351
|
+
|
|
352
|
+
> Object health_check_validate_health_head
|
|
353
|
+
|
|
354
|
+
Health Check
|
|
355
|
+
|
|
356
|
+
Health check completo del servicio de validación.
|
|
357
|
+
|
|
358
|
+
### Examples
|
|
359
|
+
|
|
360
|
+
```ruby
|
|
361
|
+
require 'time'
|
|
362
|
+
require 'mailsafepro'
|
|
363
|
+
|
|
364
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
365
|
+
|
|
366
|
+
begin
|
|
367
|
+
# Health Check
|
|
368
|
+
result = api_instance.health_check_validate_health_head
|
|
369
|
+
p result
|
|
370
|
+
rescue MailSafePro::ApiError => e
|
|
371
|
+
puts "Error when calling ValidationApi->health_check_validate_health_head: #{e}"
|
|
372
|
+
end
|
|
373
|
+
```
|
|
374
|
+
|
|
375
|
+
#### Using the health_check_validate_health_head_with_http_info variant
|
|
376
|
+
|
|
377
|
+
This returns an Array which contains the response data, status code and headers.
|
|
378
|
+
|
|
379
|
+
> <Array(Object, Integer, Hash)> health_check_validate_health_head_with_http_info
|
|
380
|
+
|
|
381
|
+
```ruby
|
|
382
|
+
begin
|
|
383
|
+
# Health Check
|
|
384
|
+
data, status_code, headers = api_instance.health_check_validate_health_head_with_http_info
|
|
385
|
+
p status_code # => 2xx
|
|
386
|
+
p headers # => { ... }
|
|
387
|
+
p data # => Object
|
|
388
|
+
rescue MailSafePro::ApiError => e
|
|
389
|
+
puts "Error when calling ValidationApi->health_check_validate_health_head_with_http_info: #{e}"
|
|
390
|
+
end
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
### Parameters
|
|
394
|
+
|
|
395
|
+
This endpoint does not need any parameter.
|
|
396
|
+
|
|
397
|
+
### Return type
|
|
398
|
+
|
|
399
|
+
**Object**
|
|
400
|
+
|
|
401
|
+
### Authorization
|
|
402
|
+
|
|
403
|
+
No authorization required
|
|
404
|
+
|
|
405
|
+
### HTTP request headers
|
|
406
|
+
|
|
407
|
+
- **Content-Type**: Not defined
|
|
408
|
+
- **Accept**: application/json
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
## validate_email_endpoint_validate_email_post
|
|
412
|
+
|
|
413
|
+
> Object validate_email_endpoint_validate_email_post(email_validation_request, opts)
|
|
414
|
+
|
|
415
|
+
Validate Email Endpoint
|
|
416
|
+
|
|
417
|
+
✅ Endpoint de validación de email con timeout y fallback robusto. Cambios principales: - Timeout explícito por plan (FREE: 15s, PREMIUM: 45s, ENTERPRISE: 60s) - Fallback BASIC seguro si se vence - SIEMPRE retorna JSONResponse válida - client_plan en TODAS las respuestas - spam_trap_check ejecutado ANTES del timeout para estar disponible en fallback - Manejo de errores con ResponseBuilder - ✅ NUEVO: Soporte para TLD .test en testing_mode
|
|
418
|
+
|
|
419
|
+
### Examples
|
|
420
|
+
|
|
421
|
+
```ruby
|
|
422
|
+
require 'time'
|
|
423
|
+
require 'mailsafepro'
|
|
424
|
+
|
|
425
|
+
api_instance = MailSafePro::ValidationApi.new
|
|
426
|
+
email_validation_request = MailSafePro::EmailValidationRequest.new({email: 'email_example'}) # EmailValidationRequest |
|
|
427
|
+
opts = {
|
|
428
|
+
x_api_key: 'x_api_key_example', # String |
|
|
429
|
+
authorization: 'authorization_example' # String |
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
begin
|
|
433
|
+
# Validate Email Endpoint
|
|
434
|
+
result = api_instance.validate_email_endpoint_validate_email_post(email_validation_request, opts)
|
|
435
|
+
p result
|
|
436
|
+
rescue MailSafePro::ApiError => e
|
|
437
|
+
puts "Error when calling ValidationApi->validate_email_endpoint_validate_email_post: #{e}"
|
|
438
|
+
end
|
|
439
|
+
```
|
|
440
|
+
|
|
441
|
+
#### Using the validate_email_endpoint_validate_email_post_with_http_info variant
|
|
442
|
+
|
|
443
|
+
This returns an Array which contains the response data, status code and headers.
|
|
444
|
+
|
|
445
|
+
> <Array(Object, Integer, Hash)> validate_email_endpoint_validate_email_post_with_http_info(email_validation_request, opts)
|
|
446
|
+
|
|
447
|
+
```ruby
|
|
448
|
+
begin
|
|
449
|
+
# Validate Email Endpoint
|
|
450
|
+
data, status_code, headers = api_instance.validate_email_endpoint_validate_email_post_with_http_info(email_validation_request, opts)
|
|
451
|
+
p status_code # => 2xx
|
|
452
|
+
p headers # => { ... }
|
|
453
|
+
p data # => Object
|
|
454
|
+
rescue MailSafePro::ApiError => e
|
|
455
|
+
puts "Error when calling ValidationApi->validate_email_endpoint_validate_email_post_with_http_info: #{e}"
|
|
456
|
+
end
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
### Parameters
|
|
460
|
+
|
|
461
|
+
| Name | Type | Description | Notes |
|
|
462
|
+
| ---- | ---- | ----------- | ----- |
|
|
463
|
+
| **email_validation_request** | [**EmailValidationRequest**](EmailValidationRequest.md) | | |
|
|
464
|
+
| **x_api_key** | **String** | | [optional] |
|
|
465
|
+
| **authorization** | **String** | | [optional] |
|
|
466
|
+
|
|
467
|
+
### Return type
|
|
468
|
+
|
|
469
|
+
**Object**
|
|
470
|
+
|
|
471
|
+
### Authorization
|
|
472
|
+
|
|
473
|
+
No authorization required
|
|
474
|
+
|
|
475
|
+
### HTTP request headers
|
|
476
|
+
|
|
477
|
+
- **Content-Type**: application/json
|
|
478
|
+
- **Accept**: application/json
|
|
479
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# MailSafePro::ValidationError
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **loc** | [**Array<ValidationErrorLocInner>**](ValidationErrorLocInner.md) | | |
|
|
8
|
+
| **msg** | **String** | | |
|
|
9
|
+
| **type** | **String** | | |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'mailsafepro'
|
|
15
|
+
|
|
16
|
+
instance = MailSafePro::ValidationError.new(
|
|
17
|
+
loc: null,
|
|
18
|
+
msg: null,
|
|
19
|
+
type: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# MailSafePro::ValidationErrorLocInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
```ruby
|
|
11
|
+
require 'mailsafepro'
|
|
12
|
+
|
|
13
|
+
instance = MailSafePro::ValidationErrorLocInner.new()
|
|
14
|
+
```
|
|
15
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MailSafePro::WebhookCreate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **url** | **String** | | |
|
|
8
|
+
| **events** | **Array<String>** | | [optional] |
|
|
9
|
+
| **secret** | **String** | | [optional] |
|
|
10
|
+
| **description** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'mailsafepro'
|
|
16
|
+
|
|
17
|
+
instance = MailSafePro::WebhookCreate.new(
|
|
18
|
+
url: null,
|
|
19
|
+
events: null,
|
|
20
|
+
secret: null,
|
|
21
|
+
description: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# MailSafePro::WebhookResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **status** | **String** | | |
|
|
8
|
+
| **event_id** | **String** | | [optional] |
|
|
9
|
+
| **message** | **String** | | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'mailsafepro'
|
|
15
|
+
|
|
16
|
+
instance = MailSafePro::WebhookResponse.new(
|
|
17
|
+
status: null,
|
|
18
|
+
event_id: null,
|
|
19
|
+
message: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MailSafePro::WebhookUpdate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **url** | **String** | | [optional] |
|
|
8
|
+
| **events** | **Array<String>** | | [optional] |
|
|
9
|
+
| **status** | **String** | | [optional] |
|
|
10
|
+
| **description** | **String** | | [optional] |
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```ruby
|
|
15
|
+
require 'mailsafepro'
|
|
16
|
+
|
|
17
|
+
instance = MailSafePro::WebhookUpdate.new(
|
|
18
|
+
url: null,
|
|
19
|
+
events: null,
|
|
20
|
+
status: null,
|
|
21
|
+
description: null
|
|
22
|
+
)
|
|
23
|
+
```
|
|
24
|
+
|