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,245 @@
1
+ =begin
2
+ #Email Validation API — Enterprise-grade Email Verification
3
+
4
+ #API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
5
+
6
+ The version of the OpenAPI document: 2.5.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.18.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MailSafePro::APIKeysApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'APIKeysApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MailSafePro::APIKeysApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of APIKeysApi' do
30
+ it 'should create an instance of APIKeysApi' do
31
+ expect(@api_instance).to be_instance_of(MailSafePro::APIKeysApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_api_key_api_keys_post
36
+ # Create Api Key
37
+ # Create a new API key with atomic transaction. Generates cryptographically secure API keys with proper scoping based on user's current plan. Enforces maximum key limits.
38
+ # @param api_key_create_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Object]
41
+ describe 'create_api_key_api_keys_post test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for create_api_key_api_keys_post_0
48
+ # Create Api Key
49
+ # Create a new API key with atomic transaction. Generates cryptographically secure API keys with proper scoping based on user's current plan. Enforces maximum key limits.
50
+ # @param api_key_create_request
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [Object]
53
+ describe 'create_api_key_api_keys_post_0 test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for force_sync_api_keys_force_sync_post
60
+ # Force Sync
61
+ # Force synchronization of user data with rate limiting. Synchronizes API keys with current plan and clears relevant caches. Limited to one sync per 5 minutes per user.
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [Object]
64
+ describe 'force_sync_api_keys_force_sync_post test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
67
+ end
68
+ end
69
+
70
+ # unit tests for force_sync_api_keys_force_sync_post_0
71
+ # Force Sync
72
+ # Force synchronization of user data with rate limiting. Synchronizes API keys with current plan and clears relevant caches. Limited to one sync per 5 minutes per user.
73
+ # @param [Hash] opts the optional parameters
74
+ # @return [Object]
75
+ describe 'force_sync_api_keys_force_sync_post_0 test' do
76
+ it 'should work' do
77
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
78
+ end
79
+ end
80
+
81
+ # unit tests for get_api_key_value_api_keys_key_hash_value_get
82
+ # Get Api Key Value
83
+ # Retrieve API key metadata (security-safe). Returns key information without exposing the actual key value. Used for key management and verification purposes.
84
+ # @param key_hash
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [Object]
87
+ describe 'get_api_key_value_api_keys_key_hash_value_get test' do
88
+ it 'should work' do
89
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
90
+ end
91
+ end
92
+
93
+ # unit tests for get_api_key_value_api_keys_key_hash_value_get_0
94
+ # Get Api Key Value
95
+ # Retrieve API key metadata (security-safe). Returns key information without exposing the actual key value. Used for key management and verification purposes.
96
+ # @param key_hash
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Object]
99
+ describe 'get_api_key_value_api_keys_key_hash_value_get_0 test' do
100
+ it 'should work' do
101
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
102
+ end
103
+ end
104
+
105
+ # unit tests for get_usage_api_keys_usage_get
106
+ # Get Usage
107
+ # Get current API usage statistics. Returns usage count, limits, and remaining requests for today. Works with both API keys and JWT tokens.
108
+ # @param [Hash] opts the optional parameters
109
+ # @option opts [String] :x_api_key
110
+ # @option opts [String] :authorization
111
+ # @return [Object]
112
+ describe 'get_usage_api_keys_usage_get test' do
113
+ it 'should work' do
114
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
115
+ end
116
+ end
117
+
118
+ # unit tests for get_usage_api_keys_usage_get_0
119
+ # Get Usage
120
+ # Get current API usage statistics. Returns usage count, limits, and remaining requests for today. Works with both API keys and JWT tokens.
121
+ # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :x_api_key
123
+ # @option opts [String] :authorization
124
+ # @return [Object]
125
+ describe 'get_usage_api_keys_usage_get_0 test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
128
+ end
129
+ end
130
+
131
+ # unit tests for list_api_keys_api_keys_get
132
+ # List Api Keys
133
+ # List all API keys for current user with consistent IDs. Returns comprehensive key metadata including status, scopes, and usage information. Handles corrupted key data gracefully.
134
+ # @param [Hash] opts the optional parameters
135
+ # @return [APIKeyListResponse]
136
+ describe 'list_api_keys_api_keys_get test' do
137
+ it 'should work' do
138
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
139
+ end
140
+ end
141
+
142
+ # unit tests for list_api_keys_api_keys_get_0
143
+ # List Api Keys
144
+ # List all API keys for current user with consistent IDs. Returns comprehensive key metadata including status, scopes, and usage information. Handles corrupted key data gracefully.
145
+ # @param [Hash] opts the optional parameters
146
+ # @return [APIKeyListResponse]
147
+ describe 'list_api_keys_api_keys_get_0 test' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
150
+ end
151
+ end
152
+
153
+ # unit tests for repair_user_data_endpoint_api_keys_repair_data_post
154
+ # Repair User Data Endpoint
155
+ # Emergency data repair endpoint - ADMINISTRATORS ONLY WARNING: Critical operation; relies on admin scope verification at runtime.
156
+ # @param [Hash] opts the optional parameters
157
+ # @return [Hash<String, String>]
158
+ describe 'repair_user_data_endpoint_api_keys_repair_data_post test' do
159
+ it 'should work' do
160
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
161
+ end
162
+ end
163
+
164
+ # unit tests for repair_user_data_endpoint_api_keys_repair_data_post_0
165
+ # Repair User Data Endpoint
166
+ # Emergency data repair endpoint - ADMINISTRATORS ONLY WARNING: Critical operation; relies on admin scope verification at runtime.
167
+ # @param [Hash] opts the optional parameters
168
+ # @return [Hash<String, String>]
169
+ describe 'repair_user_data_endpoint_api_keys_repair_data_post_0 test' do
170
+ it 'should work' do
171
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
172
+ end
173
+ end
174
+
175
+ # unit tests for revoke_api_key_api_keys_key_hash_revoke_delete
176
+ # Revoke Api Key
177
+ # Revoke an API key with atomic transaction. Immediately invalidates the key and removes it from active sets. Provides audit trail for security compliance.
178
+ # @param key_hash
179
+ # @param [Hash] opts the optional parameters
180
+ # @return [Object]
181
+ describe 'revoke_api_key_api_keys_key_hash_revoke_delete test' do
182
+ it 'should work' do
183
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
184
+ end
185
+ end
186
+
187
+ # unit tests for revoke_api_key_api_keys_key_hash_revoke_delete_0
188
+ # Revoke Api Key
189
+ # Revoke an API key with atomic transaction. Immediately invalidates the key and removes it from active sets. Provides audit trail for security compliance.
190
+ # @param key_hash
191
+ # @param [Hash] opts the optional parameters
192
+ # @return [Object]
193
+ describe 'revoke_api_key_api_keys_key_hash_revoke_delete_0 test' do
194
+ it 'should work' do
195
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
196
+ end
197
+ end
198
+
199
+ # unit tests for rotate_api_key_api_keys_key_hash_rotate_post
200
+ # Rotate Api Key
201
+ # Rotate API key with grace period. Generates a new key while keeping the old one active for 7 days to allow for smooth transition in client applications.
202
+ # @param key_hash
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [Object]
205
+ describe 'rotate_api_key_api_keys_key_hash_rotate_post test' do
206
+ it 'should work' do
207
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
208
+ end
209
+ end
210
+
211
+ # unit tests for rotate_api_key_api_keys_key_hash_rotate_post_0
212
+ # Rotate Api Key
213
+ # Rotate API key with grace period. Generates a new key while keeping the old one active for 7 days to allow for smooth transition in client applications.
214
+ # @param key_hash
215
+ # @param [Hash] opts the optional parameters
216
+ # @return [Object]
217
+ describe 'rotate_api_key_api_keys_key_hash_rotate_post_0 test' do
218
+ it 'should work' do
219
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
220
+ end
221
+ end
222
+
223
+ # unit tests for sync_plan_keys_api_keys_sync_plan_keys_post
224
+ # Sync Plan Keys
225
+ # Synchronize current plan with all user API keys. Ensures all existing keys have the correct scopes and permissions based on the user&#39;s current subscription plan.
226
+ # @param [Hash] opts the optional parameters
227
+ # @return [Object]
228
+ describe 'sync_plan_keys_api_keys_sync_plan_keys_post test' do
229
+ it 'should work' do
230
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
231
+ end
232
+ end
233
+
234
+ # unit tests for sync_plan_keys_api_keys_sync_plan_keys_post_0
235
+ # Sync Plan Keys
236
+ # Synchronize current plan with all user API keys. Ensures all existing keys have the correct scopes and permissions based on the user&#39;s current subscription plan.
237
+ # @param [Hash] opts the optional parameters
238
+ # @return [Object]
239
+ describe 'sync_plan_keys_api_keys_sync_plan_keys_post_0 test' do
240
+ it 'should work' do
241
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
242
+ end
243
+ end
244
+
245
+ end
@@ -0,0 +1,239 @@
1
+ =begin
2
+ #Email Validation API — Enterprise-grade Email Verification
3
+
4
+ #API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
5
+
6
+ The version of the OpenAPI document: 2.5.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.18.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MailSafePro::AuthenticationApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AuthenticationApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MailSafePro::AuthenticationApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AuthenticationApi' do
30
+ it 'should create an instance of AuthenticationApi' do
31
+ expect(@api_instance).to be_instance_of(MailSafePro::AuthenticationApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for auth_health_check_auth_health_auth_get
36
+ # Auth Health Check
37
+ # Health check para autenticación: Redis, JWT y hashing.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Object]
40
+ describe 'auth_health_check_auth_health_auth_get test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ # unit tests for auth_health_check_auth_health_auth_get_0
47
+ # Auth Health Check
48
+ # Health check para autenticación: Redis, JWT y hashing.
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'auth_health_check_auth_health_auth_get_0 test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
+ end
55
+ end
56
+
57
+ # unit tests for auth_health_check_auth_health_auth_head
58
+ # Auth Health Check
59
+ # Health check para autenticación: Redis, JWT y hashing.
60
+ # @param [Hash] opts the optional parameters
61
+ # @return [Object]
62
+ describe 'auth_health_check_auth_health_auth_head test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
+ end
66
+ end
67
+
68
+ # unit tests for auth_health_check_auth_health_auth_head_0
69
+ # Auth Health Check
70
+ # Health check para autenticación: Redis, JWT y hashing.
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [Object]
73
+ describe 'auth_health_check_auth_health_auth_head_0 test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
76
+ end
77
+ end
78
+
79
+ # unit tests for delete_account_auth_delete_delete
80
+ # Delete Account
81
+ # Elimina la cuenta del usuario autenticado y todos sus datos relacionados. ⚠️ ADVERTENCIA: Esta operación es IRREVERSIBLE. Elimina: - Datos del usuario - Todas las API keys - Usage/quota - Suscripciones - Rate limits - Tokens relacionados Security: - Solo el usuario puede eliminarse a sí mismo (o admin) - Requiere autenticación válida - Registra la acción en logs para auditoría - Rate limited para prevenir abuse
82
+ # @param [Hash] opts the optional parameters
83
+ # @return [Object]
84
+ describe 'delete_account_auth_delete_delete test' do
85
+ it 'should work' do
86
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
87
+ end
88
+ end
89
+
90
+ # unit tests for delete_account_auth_delete_delete_0
91
+ # Delete Account
92
+ # Elimina la cuenta del usuario autenticado y todos sus datos relacionados. ⚠️ ADVERTENCIA: Esta operación es IRREVERSIBLE. Elimina: - Datos del usuario - Todas las API keys - Usage/quota - Suscripciones - Rate limits - Tokens relacionados Security: - Solo el usuario puede eliminarse a sí mismo (o admin) - Requiere autenticación válida - Registra la acción en logs para auditoría - Rate limited para prevenir abuse
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [Object]
95
+ describe 'delete_account_auth_delete_delete_0 test' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
98
+ end
99
+ end
100
+
101
+ # unit tests for get_current_user_auth_me_get
102
+ # Get Current User
103
+ # Devuelve información básica del usuario actual.
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Object]
106
+ describe 'get_current_user_auth_me_get test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
109
+ end
110
+ end
111
+
112
+ # unit tests for get_current_user_auth_me_get_0
113
+ # Get Current User
114
+ # Devuelve información básica del usuario actual.
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [Object]
117
+ describe 'get_current_user_auth_me_get_0 test' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
120
+ end
121
+ end
122
+
123
+ # unit tests for login_web_user_auth_login_post
124
+ # Login Web User
125
+ # Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
126
+ # @param user_login
127
+ # @param [Hash] opts the optional parameters
128
+ # @return [Object]
129
+ describe 'login_web_user_auth_login_post test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
132
+ end
133
+ end
134
+
135
+ # unit tests for login_web_user_auth_login_post_0
136
+ # Login Web User
137
+ # Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
138
+ # @param user_login
139
+ # @param [Hash] opts the optional parameters
140
+ # @return [Object]
141
+ describe 'login_web_user_auth_login_post_0 test' do
142
+ it 'should work' do
143
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
144
+ end
145
+ end
146
+
147
+ # unit tests for logout_auth_logout_post
148
+ # Logout
149
+ # Logout idempotente: - Si el access token es válido, lo añade a la blacklist. - Si el access token está expirado, responde 200 indicando que ya estaba expirado. - Solo devuelve 401 si el token es completamente inválido (firma/claims corruptos). - Intenta revocar el refresh token si se proporciona.
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [Object]
152
+ describe 'logout_auth_logout_post test' do
153
+ it 'should work' do
154
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
155
+ end
156
+ end
157
+
158
+ # unit tests for logout_auth_logout_post_0
159
+ # Logout
160
+ # Logout idempotente: - Si el access token es válido, lo añade a la blacklist. - Si el access token está expirado, responde 200 indicando que ya estaba expirado. - Solo devuelve 401 si el token es completamente inválido (firma/claims corruptos). - Intenta revocar el refresh token si se proporciona.
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [Object]
163
+ describe 'logout_auth_logout_post_0 test' do
164
+ it 'should work' do
165
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
166
+ end
167
+ end
168
+
169
+ # unit tests for refresh_token_auth_refresh_post
170
+ # Refresh Token
171
+ # Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
172
+ # @param [Hash] opts the optional parameters
173
+ # @return [Object]
174
+ describe 'refresh_token_auth_refresh_post test' do
175
+ it 'should work' do
176
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
177
+ end
178
+ end
179
+
180
+ # unit tests for refresh_token_auth_refresh_post_0
181
+ # Refresh Token
182
+ # Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
183
+ # @param [Hash] opts the optional parameters
184
+ # @return [Object]
185
+ describe 'refresh_token_auth_refresh_post_0 test' do
186
+ it 'should work' do
187
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
188
+ end
189
+ end
190
+
191
+ # unit tests for register_web_user_auth_register_post
192
+ # Register Web User
193
+ # Registro de usuario para panel web: crea usuario, API key y tokens.
194
+ # @param user_register
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [Object]
197
+ describe 'register_web_user_auth_register_post test' do
198
+ it 'should work' do
199
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
200
+ end
201
+ end
202
+
203
+ # unit tests for register_web_user_auth_register_post_0
204
+ # Register Web User
205
+ # Registro de usuario para panel web: crea usuario, API key y tokens.
206
+ # @param user_register
207
+ # @param [Hash] opts the optional parameters
208
+ # @return [Object]
209
+ describe 'register_web_user_auth_register_post_0 test' do
210
+ it 'should work' do
211
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
212
+ end
213
+ end
214
+
215
+ # unit tests for rotate_api_key_auth_rotate_key_post
216
+ # Rotate Api Key
217
+ # Rotación de API keys con período de gracia; acceso restringido a admin.
218
+ # @param key_rotation_request
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [Object]
221
+ describe 'rotate_api_key_auth_rotate_key_post test' do
222
+ it 'should work' do
223
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
224
+ end
225
+ end
226
+
227
+ # unit tests for rotate_api_key_auth_rotate_key_post_0
228
+ # Rotate Api Key
229
+ # Rotación de API keys con período de gracia; acceso restringido a admin.
230
+ # @param key_rotation_request
231
+ # @param [Hash] opts the optional parameters
232
+ # @return [Object]
233
+ describe 'rotate_api_key_auth_rotate_key_post_0 test' do
234
+ it 'should work' do
235
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
236
+ end
237
+ end
238
+
239
+ end
@@ -0,0 +1,155 @@
1
+ =begin
2
+ #Email Validation API — Enterprise-grade Email Verification
3
+
4
+ #API robusta y segura para validación y verificación de correos electrónicos. Soporta verificación individual y en lote, detección de brechas, y autenticación JWT. Cumple con GDPR y dispone de planes de pago flexibles. **🔗 Enlaces importantes:** - [Estado del sistema](https://mailsafepro.betteruptime.com) - [Documentación completa](https://email-validation-api-jlra.onrender.com/redoc) **📧 Contacto:** mailsafepro1@gmail.com
5
+
6
+ The version of the OpenAPI document: 2.5.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.18.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for MailSafePro::BillingApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'BillingApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MailSafePro::BillingApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BillingApi' do
30
+ it 'should create an instance of BillingApi' do
31
+ expect(@api_instance).to be_instance_of(MailSafePro::BillingApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for change_plan_billing_billing_change_plan_post
36
+ # Change Plan
37
+ # Cambiar el plan del usuario.
38
+ # @param body_change_plan_billing_billing_change_plan_post
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Object]
41
+ describe 'change_plan_billing_billing_change_plan_post test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
44
+ end
45
+ end
46
+
47
+ # unit tests for change_plan_billing_billing_change_plan_post_0
48
+ # Change Plan
49
+ # Cambiar el plan del usuario.
50
+ # @param body_change_plan_billing_billing_change_plan_post
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [Object]
53
+ describe 'change_plan_billing_billing_change_plan_post_0 test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
56
+ end
57
+ end
58
+
59
+ # unit tests for create_checkout_session_billing_billing_create_checkout_session_post
60
+ # Create Checkout Session
61
+ # Crea una checkout session de Stripe para suscripción.
62
+ # @param checkout_request
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [CheckoutSessionResponse]
65
+ describe 'create_checkout_session_billing_billing_create_checkout_session_post test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
68
+ end
69
+ end
70
+
71
+ # unit tests for create_checkout_session_billing_billing_create_checkout_session_post_0
72
+ # Create Checkout Session
73
+ # Crea una checkout session de Stripe para suscripción.
74
+ # @param checkout_request
75
+ # @param [Hash] opts the optional parameters
76
+ # @return [CheckoutSessionResponse]
77
+ describe 'create_checkout_session_billing_billing_create_checkout_session_post_0 test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
80
+ end
81
+ end
82
+
83
+ # unit tests for get_subscription_billing_billing_subscription_get
84
+ # Get Subscription
85
+ # Devuelve información de suscripción (plan y próxima fecha de cobro).
86
+ # @param [Hash] opts the optional parameters
87
+ # @option opts [String] :x_api_key
88
+ # @option opts [String] :authorization
89
+ # @return [SubscriptionResponse]
90
+ describe 'get_subscription_billing_billing_subscription_get test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
93
+ end
94
+ end
95
+
96
+ # unit tests for get_subscription_billing_billing_subscription_get_0
97
+ # Get Subscription
98
+ # Devuelve información de suscripción (plan y próxima fecha de cobro).
99
+ # @param [Hash] opts the optional parameters
100
+ # @option opts [String] :x_api_key
101
+ # @option opts [String] :authorization
102
+ # @return [SubscriptionResponse]
103
+ describe 'get_subscription_billing_billing_subscription_get_0 test' do
104
+ it 'should work' do
105
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
106
+ end
107
+ end
108
+
109
+ # unit tests for stripe_webhook_billing_billing_webhook_post
110
+ # Stripe Webhook
111
+ # Webhook de Stripe.
112
+ # @param [Hash] opts the optional parameters
113
+ # @return [WebhookResponse]
114
+ describe 'stripe_webhook_billing_billing_webhook_post test' do
115
+ it 'should work' do
116
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
117
+ end
118
+ end
119
+
120
+ # unit tests for stripe_webhook_billing_billing_webhook_post_0
121
+ # Stripe Webhook
122
+ # Webhook de Stripe.
123
+ # @param [Hash] opts the optional parameters
124
+ # @return [WebhookResponse]
125
+ describe 'stripe_webhook_billing_billing_webhook_post_0 test' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
128
+ end
129
+ end
130
+
131
+ # unit tests for test_notification_billing_billing_test_notification_post
132
+ # Test Notification
133
+ # Envía un email de prueba de cambio de plan.
134
+ # @param request_body
135
+ # @param [Hash] opts the optional parameters
136
+ # @return [Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>]
137
+ describe 'test_notification_billing_billing_test_notification_post test' do
138
+ it 'should work' do
139
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
140
+ end
141
+ end
142
+
143
+ # unit tests for test_notification_billing_billing_test_notification_post_0
144
+ # Test Notification
145
+ # Envía un email de prueba de cambio de plan.
146
+ # @param request_body
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Hash<String, ResponseTestNotificationBillingBillingTestNotificationPostValue>]
149
+ describe 'test_notification_billing_billing_test_notification_post_0 test' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
152
+ end
153
+ end
154
+
155
+ end