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,1114 @@
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 'cgi'
14
+
15
+ module MailSafePro
16
+ class AuthenticationApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Auth Health Check
23
+ # Health check para autenticación: Redis, JWT y hashing.
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [Object]
26
+ def auth_health_check_auth_health_auth_get(opts = {})
27
+ data, _status_code, _headers = auth_health_check_auth_health_auth_get_with_http_info(opts)
28
+ data
29
+ end
30
+
31
+ # Auth Health Check
32
+ # Health check para autenticación: Redis, JWT y hashing.
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
35
+ def auth_health_check_auth_health_auth_get_with_http_info(opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_get ...'
38
+ end
39
+ # resource path
40
+ local_var_path = '/auth/health/auth'
41
+
42
+ # query parameters
43
+ query_params = opts[:query_params] || {}
44
+
45
+ # header parameters
46
+ header_params = opts[:header_params] || {}
47
+ # HTTP header 'Accept' (if needed)
48
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
49
+
50
+ # form parameters
51
+ form_params = opts[:form_params] || {}
52
+
53
+ # http body (model)
54
+ post_body = opts[:debug_body]
55
+
56
+ # return_type
57
+ return_type = opts[:debug_return_type] || 'Object'
58
+
59
+ # auth_names
60
+ auth_names = opts[:debug_auth_names] || []
61
+
62
+ new_options = opts.merge(
63
+ :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_get",
64
+ :header_params => header_params,
65
+ :query_params => query_params,
66
+ :form_params => form_params,
67
+ :body => post_body,
68
+ :auth_names => auth_names,
69
+ :return_type => return_type
70
+ )
71
+
72
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
73
+ if @api_client.config.debugging
74
+ @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
75
+ end
76
+ return data, status_code, headers
77
+ end
78
+
79
+ # Auth Health Check
80
+ # Health check para autenticación: Redis, JWT y hashing.
81
+ # @param [Hash] opts the optional parameters
82
+ # @return [Object]
83
+ def auth_health_check_auth_health_auth_get_0(opts = {})
84
+ data, _status_code, _headers = auth_health_check_auth_health_auth_get_0_with_http_info(opts)
85
+ data
86
+ end
87
+
88
+ # Auth Health Check
89
+ # Health check para autenticación: Redis, JWT y hashing.
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
92
+ def auth_health_check_auth_health_auth_get_0_with_http_info(opts = {})
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_get_0 ...'
95
+ end
96
+ # resource path
97
+ local_var_path = '/auth/health/auth'
98
+
99
+ # query parameters
100
+ query_params = opts[:query_params] || {}
101
+
102
+ # header parameters
103
+ header_params = opts[:header_params] || {}
104
+ # HTTP header 'Accept' (if needed)
105
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
106
+
107
+ # form parameters
108
+ form_params = opts[:form_params] || {}
109
+
110
+ # http body (model)
111
+ post_body = opts[:debug_body]
112
+
113
+ # return_type
114
+ return_type = opts[:debug_return_type] || 'Object'
115
+
116
+ # auth_names
117
+ auth_names = opts[:debug_auth_names] || []
118
+
119
+ new_options = opts.merge(
120
+ :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_get_0",
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names,
126
+ :return_type => return_type
127
+ )
128
+
129
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+
136
+ # Auth Health Check
137
+ # Health check para autenticación: Redis, JWT y hashing.
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [Object]
140
+ def auth_health_check_auth_health_auth_head(opts = {})
141
+ data, _status_code, _headers = auth_health_check_auth_health_auth_head_with_http_info(opts)
142
+ data
143
+ end
144
+
145
+ # Auth Health Check
146
+ # Health check para autenticación: Redis, JWT y hashing.
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
149
+ def auth_health_check_auth_health_auth_head_with_http_info(opts = {})
150
+ if @api_client.config.debugging
151
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_head ...'
152
+ end
153
+ # resource path
154
+ local_var_path = '/auth/health/auth'
155
+
156
+ # query parameters
157
+ query_params = opts[:query_params] || {}
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
163
+
164
+ # form parameters
165
+ form_params = opts[:form_params] || {}
166
+
167
+ # http body (model)
168
+ post_body = opts[:debug_body]
169
+
170
+ # return_type
171
+ return_type = opts[:debug_return_type] || 'Object'
172
+
173
+ # auth_names
174
+ auth_names = opts[:debug_auth_names] || []
175
+
176
+ new_options = opts.merge(
177
+ :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_head",
178
+ :header_params => header_params,
179
+ :query_params => query_params,
180
+ :form_params => form_params,
181
+ :body => post_body,
182
+ :auth_names => auth_names,
183
+ :return_type => return_type
184
+ )
185
+
186
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
187
+ if @api_client.config.debugging
188
+ @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ end
190
+ return data, status_code, headers
191
+ end
192
+
193
+ # Auth Health Check
194
+ # Health check para autenticación: Redis, JWT y hashing.
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [Object]
197
+ def auth_health_check_auth_health_auth_head_0(opts = {})
198
+ data, _status_code, _headers = auth_health_check_auth_health_auth_head_0_with_http_info(opts)
199
+ data
200
+ end
201
+
202
+ # Auth Health Check
203
+ # Health check para autenticación: Redis, JWT y hashing.
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
206
+ def auth_health_check_auth_health_auth_head_0_with_http_info(opts = {})
207
+ if @api_client.config.debugging
208
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.auth_health_check_auth_health_auth_head_0 ...'
209
+ end
210
+ # resource path
211
+ local_var_path = '/auth/health/auth'
212
+
213
+ # query parameters
214
+ query_params = opts[:query_params] || {}
215
+
216
+ # header parameters
217
+ header_params = opts[:header_params] || {}
218
+ # HTTP header 'Accept' (if needed)
219
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
220
+
221
+ # form parameters
222
+ form_params = opts[:form_params] || {}
223
+
224
+ # http body (model)
225
+ post_body = opts[:debug_body]
226
+
227
+ # return_type
228
+ return_type = opts[:debug_return_type] || 'Object'
229
+
230
+ # auth_names
231
+ auth_names = opts[:debug_auth_names] || []
232
+
233
+ new_options = opts.merge(
234
+ :operation => :"AuthenticationApi.auth_health_check_auth_health_auth_head_0",
235
+ :header_params => header_params,
236
+ :query_params => query_params,
237
+ :form_params => form_params,
238
+ :body => post_body,
239
+ :auth_names => auth_names,
240
+ :return_type => return_type
241
+ )
242
+
243
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug "API called: AuthenticationApi#auth_health_check_auth_health_auth_head_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
246
+ end
247
+ return data, status_code, headers
248
+ end
249
+
250
+ # Delete Account
251
+ # 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
252
+ # @param [Hash] opts the optional parameters
253
+ # @return [Object]
254
+ def delete_account_auth_delete_delete(opts = {})
255
+ data, _status_code, _headers = delete_account_auth_delete_delete_with_http_info(opts)
256
+ data
257
+ end
258
+
259
+ # Delete Account
260
+ # 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
261
+ # @param [Hash] opts the optional parameters
262
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
263
+ def delete_account_auth_delete_delete_with_http_info(opts = {})
264
+ if @api_client.config.debugging
265
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.delete_account_auth_delete_delete ...'
266
+ end
267
+ # resource path
268
+ local_var_path = '/auth/delete'
269
+
270
+ # query parameters
271
+ query_params = opts[:query_params] || {}
272
+
273
+ # header parameters
274
+ header_params = opts[:header_params] || {}
275
+ # HTTP header 'Accept' (if needed)
276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
277
+
278
+ # form parameters
279
+ form_params = opts[:form_params] || {}
280
+
281
+ # http body (model)
282
+ post_body = opts[:debug_body]
283
+
284
+ # return_type
285
+ return_type = opts[:debug_return_type] || 'Object'
286
+
287
+ # auth_names
288
+ auth_names = opts[:debug_auth_names] || ['Bearer']
289
+
290
+ new_options = opts.merge(
291
+ :operation => :"AuthenticationApi.delete_account_auth_delete_delete",
292
+ :header_params => header_params,
293
+ :query_params => query_params,
294
+ :form_params => form_params,
295
+ :body => post_body,
296
+ :auth_names => auth_names,
297
+ :return_type => return_type
298
+ )
299
+
300
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
301
+ if @api_client.config.debugging
302
+ @api_client.config.logger.debug "API called: AuthenticationApi#delete_account_auth_delete_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
+ end
304
+ return data, status_code, headers
305
+ end
306
+
307
+ # Delete Account
308
+ # 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
309
+ # @param [Hash] opts the optional parameters
310
+ # @return [Object]
311
+ def delete_account_auth_delete_delete_0(opts = {})
312
+ data, _status_code, _headers = delete_account_auth_delete_delete_0_with_http_info(opts)
313
+ data
314
+ end
315
+
316
+ # Delete Account
317
+ # 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
318
+ # @param [Hash] opts the optional parameters
319
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
320
+ def delete_account_auth_delete_delete_0_with_http_info(opts = {})
321
+ if @api_client.config.debugging
322
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.delete_account_auth_delete_delete_0 ...'
323
+ end
324
+ # resource path
325
+ local_var_path = '/auth/delete'
326
+
327
+ # query parameters
328
+ query_params = opts[:query_params] || {}
329
+
330
+ # header parameters
331
+ header_params = opts[:header_params] || {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
334
+
335
+ # form parameters
336
+ form_params = opts[:form_params] || {}
337
+
338
+ # http body (model)
339
+ post_body = opts[:debug_body]
340
+
341
+ # return_type
342
+ return_type = opts[:debug_return_type] || 'Object'
343
+
344
+ # auth_names
345
+ auth_names = opts[:debug_auth_names] || ['Bearer']
346
+
347
+ new_options = opts.merge(
348
+ :operation => :"AuthenticationApi.delete_account_auth_delete_delete_0",
349
+ :header_params => header_params,
350
+ :query_params => query_params,
351
+ :form_params => form_params,
352
+ :body => post_body,
353
+ :auth_names => auth_names,
354
+ :return_type => return_type
355
+ )
356
+
357
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
358
+ if @api_client.config.debugging
359
+ @api_client.config.logger.debug "API called: AuthenticationApi#delete_account_auth_delete_delete_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
360
+ end
361
+ return data, status_code, headers
362
+ end
363
+
364
+ # Get Current User
365
+ # Devuelve información básica del usuario actual.
366
+ # @param [Hash] opts the optional parameters
367
+ # @return [Object]
368
+ def get_current_user_auth_me_get(opts = {})
369
+ data, _status_code, _headers = get_current_user_auth_me_get_with_http_info(opts)
370
+ data
371
+ end
372
+
373
+ # Get Current User
374
+ # Devuelve información básica del usuario actual.
375
+ # @param [Hash] opts the optional parameters
376
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
377
+ def get_current_user_auth_me_get_with_http_info(opts = {})
378
+ if @api_client.config.debugging
379
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.get_current_user_auth_me_get ...'
380
+ end
381
+ # resource path
382
+ local_var_path = '/auth/me'
383
+
384
+ # query parameters
385
+ query_params = opts[:query_params] || {}
386
+
387
+ # header parameters
388
+ header_params = opts[:header_params] || {}
389
+ # HTTP header 'Accept' (if needed)
390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
391
+
392
+ # form parameters
393
+ form_params = opts[:form_params] || {}
394
+
395
+ # http body (model)
396
+ post_body = opts[:debug_body]
397
+
398
+ # return_type
399
+ return_type = opts[:debug_return_type] || 'Object'
400
+
401
+ # auth_names
402
+ auth_names = opts[:debug_auth_names] || ['Bearer']
403
+
404
+ new_options = opts.merge(
405
+ :operation => :"AuthenticationApi.get_current_user_auth_me_get",
406
+ :header_params => header_params,
407
+ :query_params => query_params,
408
+ :form_params => form_params,
409
+ :body => post_body,
410
+ :auth_names => auth_names,
411
+ :return_type => return_type
412
+ )
413
+
414
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "API called: AuthenticationApi#get_current_user_auth_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
417
+ end
418
+ return data, status_code, headers
419
+ end
420
+
421
+ # Get Current User
422
+ # Devuelve información básica del usuario actual.
423
+ # @param [Hash] opts the optional parameters
424
+ # @return [Object]
425
+ def get_current_user_auth_me_get_0(opts = {})
426
+ data, _status_code, _headers = get_current_user_auth_me_get_0_with_http_info(opts)
427
+ data
428
+ end
429
+
430
+ # Get Current User
431
+ # Devuelve información básica del usuario actual.
432
+ # @param [Hash] opts the optional parameters
433
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
434
+ def get_current_user_auth_me_get_0_with_http_info(opts = {})
435
+ if @api_client.config.debugging
436
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.get_current_user_auth_me_get_0 ...'
437
+ end
438
+ # resource path
439
+ local_var_path = '/auth/me'
440
+
441
+ # query parameters
442
+ query_params = opts[:query_params] || {}
443
+
444
+ # header parameters
445
+ header_params = opts[:header_params] || {}
446
+ # HTTP header 'Accept' (if needed)
447
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
448
+
449
+ # form parameters
450
+ form_params = opts[:form_params] || {}
451
+
452
+ # http body (model)
453
+ post_body = opts[:debug_body]
454
+
455
+ # return_type
456
+ return_type = opts[:debug_return_type] || 'Object'
457
+
458
+ # auth_names
459
+ auth_names = opts[:debug_auth_names] || ['Bearer']
460
+
461
+ new_options = opts.merge(
462
+ :operation => :"AuthenticationApi.get_current_user_auth_me_get_0",
463
+ :header_params => header_params,
464
+ :query_params => query_params,
465
+ :form_params => form_params,
466
+ :body => post_body,
467
+ :auth_names => auth_names,
468
+ :return_type => return_type
469
+ )
470
+
471
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
472
+ if @api_client.config.debugging
473
+ @api_client.config.logger.debug "API called: AuthenticationApi#get_current_user_auth_me_get_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
474
+ end
475
+ return data, status_code, headers
476
+ end
477
+
478
+ # Login Web User
479
+ # Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
480
+ # @param user_login [UserLogin]
481
+ # @param [Hash] opts the optional parameters
482
+ # @return [Object]
483
+ def login_web_user_auth_login_post(user_login, opts = {})
484
+ data, _status_code, _headers = login_web_user_auth_login_post_with_http_info(user_login, opts)
485
+ data
486
+ end
487
+
488
+ # Login Web User
489
+ # Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
490
+ # @param user_login [UserLogin]
491
+ # @param [Hash] opts the optional parameters
492
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
493
+ def login_web_user_auth_login_post_with_http_info(user_login, opts = {})
494
+ if @api_client.config.debugging
495
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.login_web_user_auth_login_post ...'
496
+ end
497
+ # verify the required parameter 'user_login' is set
498
+ if @api_client.config.client_side_validation && user_login.nil?
499
+ fail ArgumentError, "Missing the required parameter 'user_login' when calling AuthenticationApi.login_web_user_auth_login_post"
500
+ end
501
+ # resource path
502
+ local_var_path = '/auth/login'
503
+
504
+ # query parameters
505
+ query_params = opts[:query_params] || {}
506
+
507
+ # header parameters
508
+ header_params = opts[:header_params] || {}
509
+ # HTTP header 'Accept' (if needed)
510
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
511
+ # HTTP header 'Content-Type'
512
+ content_type = @api_client.select_header_content_type(['application/json'])
513
+ if !content_type.nil?
514
+ header_params['Content-Type'] = content_type
515
+ end
516
+
517
+ # form parameters
518
+ form_params = opts[:form_params] || {}
519
+
520
+ # http body (model)
521
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_login)
522
+
523
+ # return_type
524
+ return_type = opts[:debug_return_type] || 'Object'
525
+
526
+ # auth_names
527
+ auth_names = opts[:debug_auth_names] || []
528
+
529
+ new_options = opts.merge(
530
+ :operation => :"AuthenticationApi.login_web_user_auth_login_post",
531
+ :header_params => header_params,
532
+ :query_params => query_params,
533
+ :form_params => form_params,
534
+ :body => post_body,
535
+ :auth_names => auth_names,
536
+ :return_type => return_type
537
+ )
538
+
539
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
540
+ if @api_client.config.debugging
541
+ @api_client.config.logger.debug "API called: AuthenticationApi#login_web_user_auth_login_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
542
+ end
543
+ return data, status_code, headers
544
+ end
545
+
546
+ # Login Web User
547
+ # Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
548
+ # @param user_login [UserLogin]
549
+ # @param [Hash] opts the optional parameters
550
+ # @return [Object]
551
+ def login_web_user_auth_login_post_0(user_login, opts = {})
552
+ data, _status_code, _headers = login_web_user_auth_login_post_0_with_http_info(user_login, opts)
553
+ data
554
+ end
555
+
556
+ # Login Web User
557
+ # Login de usuario para panel web. Security features: - Rate limiting por email + IP - Timing attack protection - Generic error messages - PII masking en logs
558
+ # @param user_login [UserLogin]
559
+ # @param [Hash] opts the optional parameters
560
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
561
+ def login_web_user_auth_login_post_0_with_http_info(user_login, opts = {})
562
+ if @api_client.config.debugging
563
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.login_web_user_auth_login_post_0 ...'
564
+ end
565
+ # verify the required parameter 'user_login' is set
566
+ if @api_client.config.client_side_validation && user_login.nil?
567
+ fail ArgumentError, "Missing the required parameter 'user_login' when calling AuthenticationApi.login_web_user_auth_login_post_0"
568
+ end
569
+ # resource path
570
+ local_var_path = '/auth/login'
571
+
572
+ # query parameters
573
+ query_params = opts[:query_params] || {}
574
+
575
+ # header parameters
576
+ header_params = opts[:header_params] || {}
577
+ # HTTP header 'Accept' (if needed)
578
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
579
+ # HTTP header 'Content-Type'
580
+ content_type = @api_client.select_header_content_type(['application/json'])
581
+ if !content_type.nil?
582
+ header_params['Content-Type'] = content_type
583
+ end
584
+
585
+ # form parameters
586
+ form_params = opts[:form_params] || {}
587
+
588
+ # http body (model)
589
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_login)
590
+
591
+ # return_type
592
+ return_type = opts[:debug_return_type] || 'Object'
593
+
594
+ # auth_names
595
+ auth_names = opts[:debug_auth_names] || []
596
+
597
+ new_options = opts.merge(
598
+ :operation => :"AuthenticationApi.login_web_user_auth_login_post_0",
599
+ :header_params => header_params,
600
+ :query_params => query_params,
601
+ :form_params => form_params,
602
+ :body => post_body,
603
+ :auth_names => auth_names,
604
+ :return_type => return_type
605
+ )
606
+
607
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
608
+ if @api_client.config.debugging
609
+ @api_client.config.logger.debug "API called: AuthenticationApi#login_web_user_auth_login_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
610
+ end
611
+ return data, status_code, headers
612
+ end
613
+
614
+ # Logout
615
+ # 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.
616
+ # @param [Hash] opts the optional parameters
617
+ # @return [Object]
618
+ def logout_auth_logout_post(opts = {})
619
+ data, _status_code, _headers = logout_auth_logout_post_with_http_info(opts)
620
+ data
621
+ end
622
+
623
+ # Logout
624
+ # 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.
625
+ # @param [Hash] opts the optional parameters
626
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
627
+ def logout_auth_logout_post_with_http_info(opts = {})
628
+ if @api_client.config.debugging
629
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.logout_auth_logout_post ...'
630
+ end
631
+ # resource path
632
+ local_var_path = '/auth/logout'
633
+
634
+ # query parameters
635
+ query_params = opts[:query_params] || {}
636
+
637
+ # header parameters
638
+ header_params = opts[:header_params] || {}
639
+ # HTTP header 'Accept' (if needed)
640
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
641
+
642
+ # form parameters
643
+ form_params = opts[:form_params] || {}
644
+
645
+ # http body (model)
646
+ post_body = opts[:debug_body]
647
+
648
+ # return_type
649
+ return_type = opts[:debug_return_type] || 'Object'
650
+
651
+ # auth_names
652
+ auth_names = opts[:debug_auth_names] || []
653
+
654
+ new_options = opts.merge(
655
+ :operation => :"AuthenticationApi.logout_auth_logout_post",
656
+ :header_params => header_params,
657
+ :query_params => query_params,
658
+ :form_params => form_params,
659
+ :body => post_body,
660
+ :auth_names => auth_names,
661
+ :return_type => return_type
662
+ )
663
+
664
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
665
+ if @api_client.config.debugging
666
+ @api_client.config.logger.debug "API called: AuthenticationApi#logout_auth_logout_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
667
+ end
668
+ return data, status_code, headers
669
+ end
670
+
671
+ # Logout
672
+ # 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.
673
+ # @param [Hash] opts the optional parameters
674
+ # @return [Object]
675
+ def logout_auth_logout_post_0(opts = {})
676
+ data, _status_code, _headers = logout_auth_logout_post_0_with_http_info(opts)
677
+ data
678
+ end
679
+
680
+ # Logout
681
+ # 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.
682
+ # @param [Hash] opts the optional parameters
683
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
684
+ def logout_auth_logout_post_0_with_http_info(opts = {})
685
+ if @api_client.config.debugging
686
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.logout_auth_logout_post_0 ...'
687
+ end
688
+ # resource path
689
+ local_var_path = '/auth/logout'
690
+
691
+ # query parameters
692
+ query_params = opts[:query_params] || {}
693
+
694
+ # header parameters
695
+ header_params = opts[:header_params] || {}
696
+ # HTTP header 'Accept' (if needed)
697
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
698
+
699
+ # form parameters
700
+ form_params = opts[:form_params] || {}
701
+
702
+ # http body (model)
703
+ post_body = opts[:debug_body]
704
+
705
+ # return_type
706
+ return_type = opts[:debug_return_type] || 'Object'
707
+
708
+ # auth_names
709
+ auth_names = opts[:debug_auth_names] || []
710
+
711
+ new_options = opts.merge(
712
+ :operation => :"AuthenticationApi.logout_auth_logout_post_0",
713
+ :header_params => header_params,
714
+ :query_params => query_params,
715
+ :form_params => form_params,
716
+ :body => post_body,
717
+ :auth_names => auth_names,
718
+ :return_type => return_type
719
+ )
720
+
721
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
722
+ if @api_client.config.debugging
723
+ @api_client.config.logger.debug "API called: AuthenticationApi#logout_auth_logout_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
724
+ end
725
+ return data, status_code, headers
726
+ end
727
+
728
+ # Refresh Token
729
+ # Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
730
+ # @param [Hash] opts the optional parameters
731
+ # @return [Object]
732
+ def refresh_token_auth_refresh_post(opts = {})
733
+ data, _status_code, _headers = refresh_token_auth_refresh_post_with_http_info(opts)
734
+ data
735
+ end
736
+
737
+ # Refresh Token
738
+ # Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
739
+ # @param [Hash] opts the optional parameters
740
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
741
+ def refresh_token_auth_refresh_post_with_http_info(opts = {})
742
+ if @api_client.config.debugging
743
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.refresh_token_auth_refresh_post ...'
744
+ end
745
+ # resource path
746
+ local_var_path = '/auth/refresh'
747
+
748
+ # query parameters
749
+ query_params = opts[:query_params] || {}
750
+
751
+ # header parameters
752
+ header_params = opts[:header_params] || {}
753
+ # HTTP header 'Accept' (if needed)
754
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
755
+
756
+ # form parameters
757
+ form_params = opts[:form_params] || {}
758
+
759
+ # http body (model)
760
+ post_body = opts[:debug_body]
761
+
762
+ # return_type
763
+ return_type = opts[:debug_return_type] || 'Object'
764
+
765
+ # auth_names
766
+ auth_names = opts[:debug_auth_names] || []
767
+
768
+ new_options = opts.merge(
769
+ :operation => :"AuthenticationApi.refresh_token_auth_refresh_post",
770
+ :header_params => header_params,
771
+ :query_params => query_params,
772
+ :form_params => form_params,
773
+ :body => post_body,
774
+ :auth_names => auth_names,
775
+ :return_type => return_type
776
+ )
777
+
778
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
779
+ if @api_client.config.debugging
780
+ @api_client.config.logger.debug "API called: AuthenticationApi#refresh_token_auth_refresh_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
781
+ end
782
+ return data, status_code, headers
783
+ end
784
+
785
+ # Refresh Token
786
+ # Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
787
+ # @param [Hash] opts the optional parameters
788
+ # @return [Object]
789
+ def refresh_token_auth_refresh_post_0(opts = {})
790
+ data, _status_code, _headers = refresh_token_auth_refresh_post_0_with_http_info(opts)
791
+ data
792
+ end
793
+
794
+ # Refresh Token
795
+ # Crea un nuevo par de tokens a partir de un refresh token válido y no revocado.
796
+ # @param [Hash] opts the optional parameters
797
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
798
+ def refresh_token_auth_refresh_post_0_with_http_info(opts = {})
799
+ if @api_client.config.debugging
800
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.refresh_token_auth_refresh_post_0 ...'
801
+ end
802
+ # resource path
803
+ local_var_path = '/auth/refresh'
804
+
805
+ # query parameters
806
+ query_params = opts[:query_params] || {}
807
+
808
+ # header parameters
809
+ header_params = opts[:header_params] || {}
810
+ # HTTP header 'Accept' (if needed)
811
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
812
+
813
+ # form parameters
814
+ form_params = opts[:form_params] || {}
815
+
816
+ # http body (model)
817
+ post_body = opts[:debug_body]
818
+
819
+ # return_type
820
+ return_type = opts[:debug_return_type] || 'Object'
821
+
822
+ # auth_names
823
+ auth_names = opts[:debug_auth_names] || []
824
+
825
+ new_options = opts.merge(
826
+ :operation => :"AuthenticationApi.refresh_token_auth_refresh_post_0",
827
+ :header_params => header_params,
828
+ :query_params => query_params,
829
+ :form_params => form_params,
830
+ :body => post_body,
831
+ :auth_names => auth_names,
832
+ :return_type => return_type
833
+ )
834
+
835
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
836
+ if @api_client.config.debugging
837
+ @api_client.config.logger.debug "API called: AuthenticationApi#refresh_token_auth_refresh_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
838
+ end
839
+ return data, status_code, headers
840
+ end
841
+
842
+ # Register Web User
843
+ # Registro de usuario para panel web: crea usuario, API key y tokens.
844
+ # @param user_register [UserRegister]
845
+ # @param [Hash] opts the optional parameters
846
+ # @return [Object]
847
+ def register_web_user_auth_register_post(user_register, opts = {})
848
+ data, _status_code, _headers = register_web_user_auth_register_post_with_http_info(user_register, opts)
849
+ data
850
+ end
851
+
852
+ # Register Web User
853
+ # Registro de usuario para panel web: crea usuario, API key y tokens.
854
+ # @param user_register [UserRegister]
855
+ # @param [Hash] opts the optional parameters
856
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
857
+ def register_web_user_auth_register_post_with_http_info(user_register, opts = {})
858
+ if @api_client.config.debugging
859
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.register_web_user_auth_register_post ...'
860
+ end
861
+ # verify the required parameter 'user_register' is set
862
+ if @api_client.config.client_side_validation && user_register.nil?
863
+ fail ArgumentError, "Missing the required parameter 'user_register' when calling AuthenticationApi.register_web_user_auth_register_post"
864
+ end
865
+ # resource path
866
+ local_var_path = '/auth/register'
867
+
868
+ # query parameters
869
+ query_params = opts[:query_params] || {}
870
+
871
+ # header parameters
872
+ header_params = opts[:header_params] || {}
873
+ # HTTP header 'Accept' (if needed)
874
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
875
+ # HTTP header 'Content-Type'
876
+ content_type = @api_client.select_header_content_type(['application/json'])
877
+ if !content_type.nil?
878
+ header_params['Content-Type'] = content_type
879
+ end
880
+
881
+ # form parameters
882
+ form_params = opts[:form_params] || {}
883
+
884
+ # http body (model)
885
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_register)
886
+
887
+ # return_type
888
+ return_type = opts[:debug_return_type] || 'Object'
889
+
890
+ # auth_names
891
+ auth_names = opts[:debug_auth_names] || []
892
+
893
+ new_options = opts.merge(
894
+ :operation => :"AuthenticationApi.register_web_user_auth_register_post",
895
+ :header_params => header_params,
896
+ :query_params => query_params,
897
+ :form_params => form_params,
898
+ :body => post_body,
899
+ :auth_names => auth_names,
900
+ :return_type => return_type
901
+ )
902
+
903
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
904
+ if @api_client.config.debugging
905
+ @api_client.config.logger.debug "API called: AuthenticationApi#register_web_user_auth_register_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
906
+ end
907
+ return data, status_code, headers
908
+ end
909
+
910
+ # Register Web User
911
+ # Registro de usuario para panel web: crea usuario, API key y tokens.
912
+ # @param user_register [UserRegister]
913
+ # @param [Hash] opts the optional parameters
914
+ # @return [Object]
915
+ def register_web_user_auth_register_post_0(user_register, opts = {})
916
+ data, _status_code, _headers = register_web_user_auth_register_post_0_with_http_info(user_register, opts)
917
+ data
918
+ end
919
+
920
+ # Register Web User
921
+ # Registro de usuario para panel web: crea usuario, API key y tokens.
922
+ # @param user_register [UserRegister]
923
+ # @param [Hash] opts the optional parameters
924
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
925
+ def register_web_user_auth_register_post_0_with_http_info(user_register, opts = {})
926
+ if @api_client.config.debugging
927
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.register_web_user_auth_register_post_0 ...'
928
+ end
929
+ # verify the required parameter 'user_register' is set
930
+ if @api_client.config.client_side_validation && user_register.nil?
931
+ fail ArgumentError, "Missing the required parameter 'user_register' when calling AuthenticationApi.register_web_user_auth_register_post_0"
932
+ end
933
+ # resource path
934
+ local_var_path = '/auth/register'
935
+
936
+ # query parameters
937
+ query_params = opts[:query_params] || {}
938
+
939
+ # header parameters
940
+ header_params = opts[:header_params] || {}
941
+ # HTTP header 'Accept' (if needed)
942
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
943
+ # HTTP header 'Content-Type'
944
+ content_type = @api_client.select_header_content_type(['application/json'])
945
+ if !content_type.nil?
946
+ header_params['Content-Type'] = content_type
947
+ end
948
+
949
+ # form parameters
950
+ form_params = opts[:form_params] || {}
951
+
952
+ # http body (model)
953
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(user_register)
954
+
955
+ # return_type
956
+ return_type = opts[:debug_return_type] || 'Object'
957
+
958
+ # auth_names
959
+ auth_names = opts[:debug_auth_names] || []
960
+
961
+ new_options = opts.merge(
962
+ :operation => :"AuthenticationApi.register_web_user_auth_register_post_0",
963
+ :header_params => header_params,
964
+ :query_params => query_params,
965
+ :form_params => form_params,
966
+ :body => post_body,
967
+ :auth_names => auth_names,
968
+ :return_type => return_type
969
+ )
970
+
971
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
972
+ if @api_client.config.debugging
973
+ @api_client.config.logger.debug "API called: AuthenticationApi#register_web_user_auth_register_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
974
+ end
975
+ return data, status_code, headers
976
+ end
977
+
978
+ # Rotate Api Key
979
+ # Rotación de API keys con período de gracia; acceso restringido a admin.
980
+ # @param key_rotation_request [KeyRotationRequest]
981
+ # @param [Hash] opts the optional parameters
982
+ # @return [Object]
983
+ def rotate_api_key_auth_rotate_key_post(key_rotation_request, opts = {})
984
+ data, _status_code, _headers = rotate_api_key_auth_rotate_key_post_with_http_info(key_rotation_request, opts)
985
+ data
986
+ end
987
+
988
+ # Rotate Api Key
989
+ # Rotación de API keys con período de gracia; acceso restringido a admin.
990
+ # @param key_rotation_request [KeyRotationRequest]
991
+ # @param [Hash] opts the optional parameters
992
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
993
+ def rotate_api_key_auth_rotate_key_post_with_http_info(key_rotation_request, opts = {})
994
+ if @api_client.config.debugging
995
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.rotate_api_key_auth_rotate_key_post ...'
996
+ end
997
+ # verify the required parameter 'key_rotation_request' is set
998
+ if @api_client.config.client_side_validation && key_rotation_request.nil?
999
+ fail ArgumentError, "Missing the required parameter 'key_rotation_request' when calling AuthenticationApi.rotate_api_key_auth_rotate_key_post"
1000
+ end
1001
+ # resource path
1002
+ local_var_path = '/auth/rotate-key'
1003
+
1004
+ # query parameters
1005
+ query_params = opts[:query_params] || {}
1006
+
1007
+ # header parameters
1008
+ header_params = opts[:header_params] || {}
1009
+ # HTTP header 'Accept' (if needed)
1010
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1011
+ # HTTP header 'Content-Type'
1012
+ content_type = @api_client.select_header_content_type(['application/json'])
1013
+ if !content_type.nil?
1014
+ header_params['Content-Type'] = content_type
1015
+ end
1016
+
1017
+ # form parameters
1018
+ form_params = opts[:form_params] || {}
1019
+
1020
+ # http body (model)
1021
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(key_rotation_request)
1022
+
1023
+ # return_type
1024
+ return_type = opts[:debug_return_type] || 'Object'
1025
+
1026
+ # auth_names
1027
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1028
+
1029
+ new_options = opts.merge(
1030
+ :operation => :"AuthenticationApi.rotate_api_key_auth_rotate_key_post",
1031
+ :header_params => header_params,
1032
+ :query_params => query_params,
1033
+ :form_params => form_params,
1034
+ :body => post_body,
1035
+ :auth_names => auth_names,
1036
+ :return_type => return_type
1037
+ )
1038
+
1039
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1040
+ if @api_client.config.debugging
1041
+ @api_client.config.logger.debug "API called: AuthenticationApi#rotate_api_key_auth_rotate_key_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1042
+ end
1043
+ return data, status_code, headers
1044
+ end
1045
+
1046
+ # Rotate Api Key
1047
+ # Rotación de API keys con período de gracia; acceso restringido a admin.
1048
+ # @param key_rotation_request [KeyRotationRequest]
1049
+ # @param [Hash] opts the optional parameters
1050
+ # @return [Object]
1051
+ def rotate_api_key_auth_rotate_key_post_0(key_rotation_request, opts = {})
1052
+ data, _status_code, _headers = rotate_api_key_auth_rotate_key_post_0_with_http_info(key_rotation_request, opts)
1053
+ data
1054
+ end
1055
+
1056
+ # Rotate Api Key
1057
+ # Rotación de API keys con período de gracia; acceso restringido a admin.
1058
+ # @param key_rotation_request [KeyRotationRequest]
1059
+ # @param [Hash] opts the optional parameters
1060
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
1061
+ def rotate_api_key_auth_rotate_key_post_0_with_http_info(key_rotation_request, opts = {})
1062
+ if @api_client.config.debugging
1063
+ @api_client.config.logger.debug 'Calling API: AuthenticationApi.rotate_api_key_auth_rotate_key_post_0 ...'
1064
+ end
1065
+ # verify the required parameter 'key_rotation_request' is set
1066
+ if @api_client.config.client_side_validation && key_rotation_request.nil?
1067
+ fail ArgumentError, "Missing the required parameter 'key_rotation_request' when calling AuthenticationApi.rotate_api_key_auth_rotate_key_post_0"
1068
+ end
1069
+ # resource path
1070
+ local_var_path = '/auth/rotate-key'
1071
+
1072
+ # query parameters
1073
+ query_params = opts[:query_params] || {}
1074
+
1075
+ # header parameters
1076
+ header_params = opts[:header_params] || {}
1077
+ # HTTP header 'Accept' (if needed)
1078
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1079
+ # HTTP header 'Content-Type'
1080
+ content_type = @api_client.select_header_content_type(['application/json'])
1081
+ if !content_type.nil?
1082
+ header_params['Content-Type'] = content_type
1083
+ end
1084
+
1085
+ # form parameters
1086
+ form_params = opts[:form_params] || {}
1087
+
1088
+ # http body (model)
1089
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(key_rotation_request)
1090
+
1091
+ # return_type
1092
+ return_type = opts[:debug_return_type] || 'Object'
1093
+
1094
+ # auth_names
1095
+ auth_names = opts[:debug_auth_names] || ['Bearer']
1096
+
1097
+ new_options = opts.merge(
1098
+ :operation => :"AuthenticationApi.rotate_api_key_auth_rotate_key_post_0",
1099
+ :header_params => header_params,
1100
+ :query_params => query_params,
1101
+ :form_params => form_params,
1102
+ :body => post_body,
1103
+ :auth_names => auth_names,
1104
+ :return_type => return_type
1105
+ )
1106
+
1107
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1108
+ if @api_client.config.debugging
1109
+ @api_client.config.logger.debug "API called: AuthenticationApi#rotate_api_key_auth_rotate_key_post_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1110
+ end
1111
+ return data, status_code, headers
1112
+ end
1113
+ end
1114
+ end