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.
Files changed (159) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +256 -0
  5. data/Rakefile +10 -0
  6. data/docs/APIKeyCreateRequest.md +20 -0
  7. data/docs/APIKeyListResponse.md +22 -0
  8. data/docs/APIKeyMeta.md +34 -0
  9. data/docs/APIKeysApi.md +1241 -0
  10. data/docs/AuthenticationApi.md +1171 -0
  11. data/docs/BatchEmailResponse.md +28 -0
  12. data/docs/BatchValidationRequest.md +26 -0
  13. data/docs/BillingApi.md +689 -0
  14. data/docs/BodyChangePlanBillingBillingChangePlanPost.md +18 -0
  15. data/docs/CheckoutRequest.md +18 -0
  16. data/docs/CheckoutSessionResponse.md +18 -0
  17. data/docs/DNSInfo.md +26 -0
  18. data/docs/DNSRecordDKIM.md +26 -0
  19. data/docs/DNSRecordDMARC.md +24 -0
  20. data/docs/DNSRecordSPF.md +24 -0
  21. data/docs/DefaultApi.md +141 -0
  22. data/docs/DeveloperToolsApi.md +154 -0
  23. data/docs/EmailResponse.md +46 -0
  24. data/docs/EmailValidationApi.md +479 -0
  25. data/docs/EmailValidationRequest.md +26 -0
  26. data/docs/HTTPValidationError.md +18 -0
  27. data/docs/HealthApi.md +937 -0
  28. data/docs/JobCreateRequest.md +32 -0
  29. data/docs/JobCreateResponse.md +22 -0
  30. data/docs/JobResultEntry.md +34 -0
  31. data/docs/JobResultsPage.md +26 -0
  32. data/docs/JobStatusResponse.md +28 -0
  33. data/docs/JobsApi.md +433 -0
  34. data/docs/KeyRotationRequest.md +22 -0
  35. data/docs/LogsApi.md +154 -0
  36. data/docs/PlanEnum.md +15 -0
  37. data/docs/PriorityEnum.md +15 -0
  38. data/docs/RegisterEndpoint.md +18 -0
  39. data/docs/ResponseTestNotificationBillingBillingTestNotificationPostValue.md +15 -0
  40. data/docs/RiskLevelEnum.md +15 -0
  41. data/docs/RotateSecret.md +18 -0
  42. data/docs/SMTPInfo.md +26 -0
  43. data/docs/SubscriptionResponse.md +24 -0
  44. data/docs/UserLogin.md +20 -0
  45. data/docs/UserRegister.md +22 -0
  46. data/docs/ValidationApi.md +479 -0
  47. data/docs/ValidationError.md +22 -0
  48. data/docs/ValidationErrorLocInner.md +15 -0
  49. data/docs/WebhookCreate.md +24 -0
  50. data/docs/WebhookResponse.md +22 -0
  51. data/docs/WebhookUpdate.md +24 -0
  52. data/docs/WebhooksApi.md +776 -0
  53. data/docs/WebhooksManagementApi.md +500 -0
  54. data/git_push.sh +57 -0
  55. data/lib/mailsafepro/api/api_keys_api.rb +1148 -0
  56. data/lib/mailsafepro/api/authentication_api.rb +1114 -0
  57. data/lib/mailsafepro/api/billing_api.rb +670 -0
  58. data/lib/mailsafepro/api/default_api.rb +149 -0
  59. data/lib/mailsafepro/api/developer_tools_api.rb +155 -0
  60. data/lib/mailsafepro/api/email_validation_api.rb +486 -0
  61. data/lib/mailsafepro/api/health_api.rb +877 -0
  62. data/lib/mailsafepro/api/jobs_api.rb +452 -0
  63. data/lib/mailsafepro/api/logs_api.rb +155 -0
  64. data/lib/mailsafepro/api/validation_api.rb +486 -0
  65. data/lib/mailsafepro/api/webhooks_api.rb +768 -0
  66. data/lib/mailsafepro/api/webhooks_management_api.rb +480 -0
  67. data/lib/mailsafepro/api_client.rb +397 -0
  68. data/lib/mailsafepro/api_error.rb +58 -0
  69. data/lib/mailsafepro/api_model_base.rb +88 -0
  70. data/lib/mailsafepro/configuration.rb +316 -0
  71. data/lib/mailsafepro/models/api_key_create_request.rb +185 -0
  72. data/lib/mailsafepro/models/api_key_list_response.rb +240 -0
  73. data/lib/mailsafepro/models/api_key_meta.rb +338 -0
  74. data/lib/mailsafepro/models/batch_email_response.rb +348 -0
  75. data/lib/mailsafepro/models/batch_validation_request.rb +290 -0
  76. data/lib/mailsafepro/models/body_change_plan_billing_billing_change_plan_post.rb +164 -0
  77. data/lib/mailsafepro/models/checkout_request.rb +166 -0
  78. data/lib/mailsafepro/models/checkout_session_response.rb +165 -0
  79. data/lib/mailsafepro/models/dns_info.rb +193 -0
  80. data/lib/mailsafepro/models/dns_record_dkim.rb +189 -0
  81. data/lib/mailsafepro/models/dns_record_dmarc.rb +179 -0
  82. data/lib/mailsafepro/models/dns_record_spf.rb +179 -0
  83. data/lib/mailsafepro/models/email_response.rb +454 -0
  84. data/lib/mailsafepro/models/email_validation_request.rb +252 -0
  85. data/lib/mailsafepro/models/http_validation_error.rb +149 -0
  86. data/lib/mailsafepro/models/job_create_request.rb +251 -0
  87. data/lib/mailsafepro/models/job_create_response.rb +216 -0
  88. data/lib/mailsafepro/models/job_result_entry.rb +257 -0
  89. data/lib/mailsafepro/models/job_results_page.rb +270 -0
  90. data/lib/mailsafepro/models/job_status_response.rb +231 -0
  91. data/lib/mailsafepro/models/key_rotation_request.rb +269 -0
  92. data/lib/mailsafepro/models/plan_enum.rb +41 -0
  93. data/lib/mailsafepro/models/priority_enum.rb +41 -0
  94. data/lib/mailsafepro/models/register_endpoint.rb +173 -0
  95. data/lib/mailsafepro/models/response_test_notification_billing_billing_test_notification_post_value.rb +103 -0
  96. data/lib/mailsafepro/models/risk_level_enum.rb +42 -0
  97. data/lib/mailsafepro/models/rotate_secret.rb +164 -0
  98. data/lib/mailsafepro/models/smtp_info.rb +206 -0
  99. data/lib/mailsafepro/models/subscription_response.rb +196 -0
  100. data/lib/mailsafepro/models/user_login.rb +211 -0
  101. data/lib/mailsafepro/models/user_register.rb +243 -0
  102. data/lib/mailsafepro/models/validation_error.rb +218 -0
  103. data/lib/mailsafepro/models/validation_error_loc_inner.rb +103 -0
  104. data/lib/mailsafepro/models/webhook_create.rb +213 -0
  105. data/lib/mailsafepro/models/webhook_response.rb +185 -0
  106. data/lib/mailsafepro/models/webhook_update.rb +204 -0
  107. data/lib/mailsafepro/version.rb +15 -0
  108. data/lib/mailsafepro.rb +88 -0
  109. data/mailsafepro.gemspec +39 -0
  110. data/spec/api/api_keys_api_spec.rb +245 -0
  111. data/spec/api/authentication_api_spec.rb +239 -0
  112. data/spec/api/billing_api_spec.rb +155 -0
  113. data/spec/api/default_api_spec.rb +60 -0
  114. data/spec/api/developer_tools_api_spec.rb +62 -0
  115. data/spec/api/email_validation_api_spec.rb +125 -0
  116. data/spec/api/health_api_spec.rb +200 -0
  117. data/spec/api/jobs_api_spec.rb +119 -0
  118. data/spec/api/logs_api_spec.rb +62 -0
  119. data/spec/api/validation_api_spec.rb +125 -0
  120. data/spec/api/webhooks_api_spec.rb +172 -0
  121. data/spec/api/webhooks_management_api_spec.rb +120 -0
  122. data/spec/models/api_key_create_request_spec.rb +42 -0
  123. data/spec/models/api_key_list_response_spec.rb +48 -0
  124. data/spec/models/api_key_meta_spec.rb +84 -0
  125. data/spec/models/batch_email_response_spec.rb +66 -0
  126. data/spec/models/batch_validation_request_spec.rb +60 -0
  127. data/spec/models/body_change_plan_billing_billing_change_plan_post_spec.rb +36 -0
  128. data/spec/models/checkout_request_spec.rb +36 -0
  129. data/spec/models/checkout_session_response_spec.rb +36 -0
  130. data/spec/models/dns_info_spec.rb +60 -0
  131. data/spec/models/dns_record_dkim_spec.rb +60 -0
  132. data/spec/models/dns_record_dmarc_spec.rb +54 -0
  133. data/spec/models/dns_record_spf_spec.rb +54 -0
  134. data/spec/models/email_response_spec.rb +120 -0
  135. data/spec/models/email_validation_request_spec.rb +60 -0
  136. data/spec/models/http_validation_error_spec.rb +36 -0
  137. data/spec/models/job_create_request_spec.rb +78 -0
  138. data/spec/models/job_create_response_spec.rb +48 -0
  139. data/spec/models/job_result_entry_spec.rb +84 -0
  140. data/spec/models/job_results_page_spec.rb +60 -0
  141. data/spec/models/job_status_response_spec.rb +66 -0
  142. data/spec/models/key_rotation_request_spec.rb +48 -0
  143. data/spec/models/plan_enum_spec.rb +30 -0
  144. data/spec/models/priority_enum_spec.rb +30 -0
  145. data/spec/models/register_endpoint_spec.rb +36 -0
  146. data/spec/models/response_test_notification_billing_billing_test_notification_post_value_spec.rb +21 -0
  147. data/spec/models/risk_level_enum_spec.rb +30 -0
  148. data/spec/models/rotate_secret_spec.rb +36 -0
  149. data/spec/models/smtp_info_spec.rb +60 -0
  150. data/spec/models/subscription_response_spec.rb +54 -0
  151. data/spec/models/user_login_spec.rb +42 -0
  152. data/spec/models/user_register_spec.rb +48 -0
  153. data/spec/models/validation_error_loc_inner_spec.rb +21 -0
  154. data/spec/models/validation_error_spec.rb +48 -0
  155. data/spec/models/webhook_create_spec.rb +54 -0
  156. data/spec/models/webhook_response_spec.rb +48 -0
  157. data/spec/models/webhook_update_spec.rb +54 -0
  158. data/spec/spec_helper.rb +111 -0
  159. metadata +291 -0
@@ -0,0 +1,479 @@
1
+ # MailSafePro::EmailValidationApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**batch_validate_emails_validate_batch_post**](EmailValidationApi.md#batch_validate_emails_validate_batch_post) | **POST** /validate/batch | Batch Email Validation |
8
+ | [**batch_validate_upload_validate_batch_upload_post**](EmailValidationApi.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**](EmailValidationApi.md#get_cache_stats_validate_stats_cache_get) | **GET** /validate/stats/cache | Get Cache Stats |
10
+ | [**get_usage_stats_validate_stats_usage_get**](EmailValidationApi.md#get_usage_stats_validate_stats_usage_get) | **GET** /validate/stats/usage | Get Usage Stats |
11
+ | [**health_check_validate_health_get**](EmailValidationApi.md#health_check_validate_health_get) | **GET** /validate/health | Health Check |
12
+ | [**health_check_validate_health_head**](EmailValidationApi.md#health_check_validate_health_head) | **HEAD** /validate/health | Health Check |
13
+ | [**validate_email_endpoint_validate_email_post**](EmailValidationApi.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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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::EmailValidationApi.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 EmailValidationApi->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 EmailValidationApi->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,26 @@
1
+ # MailSafePro::EmailValidationRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **email** | **String** | Email address to validate (RFC 5321 compliant) | |
8
+ | **check_smtp** | **Boolean** | Enable SMTP mailbox verification | [optional][default to false] |
9
+ | **include_raw_dns** | **Boolean** | Include raw DNS records | [optional][default to false] |
10
+ | **testing_mode** | **Boolean** | Enable testing mode (allows special TLDs like .test, .example, etc.) | [optional][default to false] |
11
+ | **priority** | [**PriorityEnum**](PriorityEnum.md) | Validation priority level | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'mailsafepro'
17
+
18
+ instance = MailSafePro::EmailValidationRequest.new(
19
+ email: null,
20
+ check_smtp: null,
21
+ include_raw_dns: null,
22
+ testing_mode: null,
23
+ priority: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,18 @@
1
+ # MailSafePro::HTTPValidationError
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **detail** | [**Array&lt;ValidationError&gt;**](ValidationError.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mailsafepro'
13
+
14
+ instance = MailSafePro::HTTPValidationError.new(
15
+ detail: null
16
+ )
17
+ ```
18
+