hooksniff 0.1.0 → 0.3.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 (144) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -1
  3. data/lib/openapi_client/api/admin_api.rb +452 -0
  4. data/lib/openapi_client/api/alerts_api.rb +322 -0
  5. data/lib/openapi_client/api/analytics_api.rb +208 -0
  6. data/lib/openapi_client/api/api_keys_api.rb +252 -0
  7. data/lib/openapi_client/api/audit_log_api.rb +140 -0
  8. data/lib/openapi_client/api/auth_api.rb +1080 -0
  9. data/lib/openapi_client/api/billing_api.rb +500 -0
  10. data/lib/openapi_client/api/contact_api.rb +88 -0
  11. data/lib/openapi_client/api/custom_domains_api.rb +253 -0
  12. data/lib/openapi_client/api/customer_portal_api.rb +700 -0
  13. data/lib/openapi_client/api/delivery_details_api.rb +146 -0
  14. data/lib/openapi_client/api/devices_api.rb +202 -0
  15. data/lib/openapi_client/api/embed_api.rb +128 -0
  16. data/lib/openapi_client/api/endpoints_api.rb +468 -0
  17. data/lib/openapi_client/api/events_api.rb +75 -0
  18. data/lib/openapi_client/api/health_api.rb +193 -0
  19. data/lib/openapi_client/api/inbound_api.rb +170 -0
  20. data/lib/openapi_client/api/notifications_api.rb +309 -0
  21. data/lib/openapi_client/api/o_auth_api.rb +181 -0
  22. data/lib/openapi_client/api/outbound_ips_api.rb +77 -0
  23. data/lib/openapi_client/api/playground_api.rb +143 -0
  24. data/lib/openapi_client/api/rate_limits_api.rb +252 -0
  25. data/lib/openapi_client/api/routing_api.rb +393 -0
  26. data/lib/openapi_client/api/schemas_api.rb +268 -0
  27. data/lib/openapi_client/api/search_api.rb +96 -0
  28. data/lib/openapi_client/api/simulator_api.rb +82 -0
  29. data/lib/openapi_client/api/sso_api.rb +241 -0
  30. data/lib/openapi_client/api/stats_api.rb +77 -0
  31. data/lib/openapi_client/api/stream_api.rb +88 -0
  32. data/lib/openapi_client/api/teams_api.rb +476 -0
  33. data/lib/openapi_client/api/templates_api.rb +213 -0
  34. data/lib/openapi_client/api/transforms_api.rb +368 -0
  35. data/lib/openapi_client/api/webhooks_api.rb +534 -0
  36. data/lib/openapi_client/api_client.rb +397 -0
  37. data/lib/openapi_client/api_error.rb +58 -0
  38. data/lib/openapi_client/api_model_base.rb +88 -0
  39. data/lib/openapi_client/configuration.rb +312 -0
  40. data/lib/openapi_client/models/admin_revenue_get200_response_inner.rb +165 -0
  41. data/lib/openapi_client/models/admin_sdk_update_post_request.rb +156 -0
  42. data/lib/openapi_client/models/admin_users_id_plan_put_request.rb +181 -0
  43. data/lib/openapi_client/models/admin_users_id_status_put_request.rb +147 -0
  44. data/lib/openapi_client/models/alert_rule.rb +237 -0
  45. data/lib/openapi_client/models/api_key_info.rb +185 -0
  46. data/lib/openapi_client/models/apply_template_request.rb +173 -0
  47. data/lib/openapi_client/models/apply_template_response.rb +156 -0
  48. data/lib/openapi_client/models/auth2fa_enable_post200_response.rb +156 -0
  49. data/lib/openapi_client/models/auth_login_post200_response.rb +104 -0
  50. data/lib/openapi_client/models/auth_response.rb +167 -0
  51. data/lib/openapi_client/models/batch_replay_request.rb +166 -0
  52. data/lib/openapi_client/models/batch_response.rb +160 -0
  53. data/lib/openapi_client/models/batch_response_errors_inner.rb +156 -0
  54. data/lib/openapi_client/models/batch_webhook_request.rb +166 -0
  55. data/lib/openapi_client/models/billing_portal_post200_response.rb +147 -0
  56. data/lib/openapi_client/models/change_password_request.rb +199 -0
  57. data/lib/openapi_client/models/change_role_request.rb +188 -0
  58. data/lib/openapi_client/models/confirm2fa_request.rb +182 -0
  59. data/lib/openapi_client/models/contact_request.rb +242 -0
  60. data/lib/openapi_client/models/contact_response.rb +156 -0
  61. data/lib/openapi_client/models/create_alert_request.rb +277 -0
  62. data/lib/openapi_client/models/create_api_key_response.rb +175 -0
  63. data/lib/openapi_client/models/create_endpoint_request.rb +288 -0
  64. data/lib/openapi_client/models/create_team_request.rb +164 -0
  65. data/lib/openapi_client/models/create_transform_rule_request.rb +216 -0
  66. data/lib/openapi_client/models/create_webhook_request.rb +201 -0
  67. data/lib/openapi_client/models/custom_domains_post_request.rb +147 -0
  68. data/lib/openapi_client/models/customer_response.rb +256 -0
  69. data/lib/openapi_client/models/delivery.rb +246 -0
  70. data/lib/openapi_client/models/delivery_attempt.rb +205 -0
  71. data/lib/openapi_client/models/delivery_list_response.rb +176 -0
  72. data/lib/openapi_client/models/delivery_trend_response.rb +158 -0
  73. data/lib/openapi_client/models/delivery_trend_response_buckets_inner.rb +174 -0
  74. data/lib/openapi_client/models/device_token_response.rb +174 -0
  75. data/lib/openapi_client/models/disable2fa_request.rb +164 -0
  76. data/lib/openapi_client/models/enable2fa_request.rb +164 -0
  77. data/lib/openapi_client/models/endpoint.rb +321 -0
  78. data/lib/openapi_client/models/endpoint_health.rb +183 -0
  79. data/lib/openapi_client/models/endpoints_endpoint_id_transforms_test_post_request.rb +156 -0
  80. data/lib/openapi_client/models/endpoints_id_rotate_secret_post200_response.rb +156 -0
  81. data/lib/openapi_client/models/error.rb +165 -0
  82. data/lib/openapi_client/models/forgot_password_request.rb +164 -0
  83. data/lib/openapi_client/models/invite_request.rb +207 -0
  84. data/lib/openapi_client/models/invoice_response.rb +183 -0
  85. data/lib/openapi_client/models/latency_trend_response.rb +167 -0
  86. data/lib/openapi_client/models/latency_trend_response_buckets_inner.rb +165 -0
  87. data/lib/openapi_client/models/login_request.rb +190 -0
  88. data/lib/openapi_client/models/notification.rb +193 -0
  89. data/lib/openapi_client/models/notification_list_response.rb +167 -0
  90. data/lib/openapi_client/models/notification_preferences.rb +201 -0
  91. data/lib/openapi_client/models/notifications_unread_count_get200_response.rb +147 -0
  92. data/lib/openapi_client/models/outbound_ips_response.rb +158 -0
  93. data/lib/openapi_client/models/paginated_users.rb +176 -0
  94. data/lib/openapi_client/models/playground_get200_response.rb +160 -0
  95. data/lib/openapi_client/models/portal_notifications_put200_response.rb +156 -0
  96. data/lib/openapi_client/models/portal_profile.rb +184 -0
  97. data/lib/openapi_client/models/refresh_token_request.rb +164 -0
  98. data/lib/openapi_client/models/register_device_request.rb +208 -0
  99. data/lib/openapi_client/models/register_request.rb +201 -0
  100. data/lib/openapi_client/models/register_schema_request.rb +191 -0
  101. data/lib/openapi_client/models/resend_verification_request.rb +164 -0
  102. data/lib/openapi_client/models/reset_password_request.rb +199 -0
  103. data/lib/openapi_client/models/retry_policy.rb +216 -0
  104. data/lib/openapi_client/models/routing_info.rb +193 -0
  105. data/lib/openapi_client/models/search_result.rb +158 -0
  106. data/lib/openapi_client/models/simulator_post_request.rb +165 -0
  107. data/lib/openapi_client/models/sso_config_post_request.rb +190 -0
  108. data/lib/openapi_client/models/stats_response.rb +210 -0
  109. data/lib/openapi_client/models/stream_params.rb +201 -0
  110. data/lib/openapi_client/models/subscription_response.rb +201 -0
  111. data/lib/openapi_client/models/success_rate_response.rb +183 -0
  112. data/lib/openapi_client/models/system_stats.rb +185 -0
  113. data/lib/openapi_client/models/system_stats_plan_breakdown_inner.rb +156 -0
  114. data/lib/openapi_client/models/system_status.rb +210 -0
  115. data/lib/openapi_client/models/system_status_components_inner.rb +184 -0
  116. data/lib/openapi_client/models/team.rb +165 -0
  117. data/lib/openapi_client/models/team_detail_response.rb +169 -0
  118. data/lib/openapi_client/models/team_invite.rb +174 -0
  119. data/lib/openapi_client/models/team_member.rb +193 -0
  120. data/lib/openapi_client/models/test_webhook_request.rb +199 -0
  121. data/lib/openapi_client/models/test_webhook_response.rb +174 -0
  122. data/lib/openapi_client/models/transform_rule.rb +201 -0
  123. data/lib/openapi_client/models/two_factor_required_response.rb +165 -0
  124. data/lib/openapi_client/models/update_endpoint_request.rb +278 -0
  125. data/lib/openapi_client/models/update_notification_preferences.rb +195 -0
  126. data/lib/openapi_client/models/update_profile_request.rb +190 -0
  127. data/lib/openapi_client/models/update_routing_request.rb +190 -0
  128. data/lib/openapi_client/models/upgrade_request.rb +209 -0
  129. data/lib/openapi_client/models/upgrade_response.rb +166 -0
  130. data/lib/openapi_client/models/usage_response.rb +201 -0
  131. data/lib/openapi_client/models/user_summary.rb +193 -0
  132. data/lib/openapi_client/models/validate_event_request.rb +164 -0
  133. data/lib/openapi_client/models/verify2fa_request.rb +208 -0
  134. data/lib/openapi_client/models/verify_email_request.rb +164 -0
  135. data/lib/openapi_client/models/webhook_template.rb +183 -0
  136. data/lib/openapi_client/version.rb +15 -0
  137. data/lib/openapi_client.rb +169 -0
  138. metadata +139 -10
  139. data/lib/hooksniff/client.rb +0 -213
  140. data/lib/hooksniff/errors.rb +0 -43
  141. data/lib/hooksniff/models.rb +0 -136
  142. data/lib/hooksniff/verification.rb +0 -134
  143. data/lib/hooksniff/version.rb +0 -5
  144. data/lib/hooksniff.rb +0 -19
@@ -0,0 +1,1080 @@
1
+ =begin
2
+ #HookSniff API
3
+
4
+ #Webhook delivery, monitoring, and management API. All endpoints under `/v1` require authentication via `Authorization: Bearer <api_key>` header unless marked as **Public**.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: support@hooksniff.vercel.app
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module OpenapiClient
16
+ class AuthApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Confirm 2FA setup with a code
23
+ # @param confirm2fa_request [Confirm2faRequest]
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [nil]
26
+ def auth2fa_confirm_post(confirm2fa_request, opts = {})
27
+ auth2fa_confirm_post_with_http_info(confirm2fa_request, opts)
28
+ nil
29
+ end
30
+
31
+ # Confirm 2FA setup with a code
32
+ # @param confirm2fa_request [Confirm2faRequest]
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
35
+ def auth2fa_confirm_post_with_http_info(confirm2fa_request, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth2fa_confirm_post ...'
38
+ end
39
+ # verify the required parameter 'confirm2fa_request' is set
40
+ if @api_client.config.client_side_validation && confirm2fa_request.nil?
41
+ fail ArgumentError, "Missing the required parameter 'confirm2fa_request' when calling AuthApi.auth2fa_confirm_post"
42
+ end
43
+ # resource path
44
+ local_var_path = '/auth/2fa/confirm'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Content-Type'
52
+ content_type = @api_client.select_header_content_type(['application/json'])
53
+ if !content_type.nil?
54
+ header_params['Content-Type'] = content_type
55
+ end
56
+
57
+ # form parameters
58
+ form_params = opts[:form_params] || {}
59
+
60
+ # http body (model)
61
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(confirm2fa_request)
62
+
63
+ # return_type
64
+ return_type = opts[:debug_return_type]
65
+
66
+ # auth_names
67
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
68
+
69
+ new_options = opts.merge(
70
+ :operation => :"AuthApi.auth2fa_confirm_post",
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: AuthApi#auth2fa_confirm_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Disable 2FA
87
+ # @param disable2fa_request [Disable2faRequest]
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [nil]
90
+ def auth2fa_disable_post(disable2fa_request, opts = {})
91
+ auth2fa_disable_post_with_http_info(disable2fa_request, opts)
92
+ nil
93
+ end
94
+
95
+ # Disable 2FA
96
+ # @param disable2fa_request [Disable2faRequest]
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
99
+ def auth2fa_disable_post_with_http_info(disable2fa_request, opts = {})
100
+ if @api_client.config.debugging
101
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth2fa_disable_post ...'
102
+ end
103
+ # verify the required parameter 'disable2fa_request' is set
104
+ if @api_client.config.client_side_validation && disable2fa_request.nil?
105
+ fail ArgumentError, "Missing the required parameter 'disable2fa_request' when calling AuthApi.auth2fa_disable_post"
106
+ end
107
+ # resource path
108
+ local_var_path = '/auth/2fa/disable'
109
+
110
+ # query parameters
111
+ query_params = opts[:query_params] || {}
112
+
113
+ # header parameters
114
+ header_params = opts[:header_params] || {}
115
+ # HTTP header 'Content-Type'
116
+ content_type = @api_client.select_header_content_type(['application/json'])
117
+ if !content_type.nil?
118
+ header_params['Content-Type'] = content_type
119
+ end
120
+
121
+ # form parameters
122
+ form_params = opts[:form_params] || {}
123
+
124
+ # http body (model)
125
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(disable2fa_request)
126
+
127
+ # return_type
128
+ return_type = opts[:debug_return_type]
129
+
130
+ # auth_names
131
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
132
+
133
+ new_options = opts.merge(
134
+ :operation => :"AuthApi.auth2fa_disable_post",
135
+ :header_params => header_params,
136
+ :query_params => query_params,
137
+ :form_params => form_params,
138
+ :body => post_body,
139
+ :auth_names => auth_names,
140
+ :return_type => return_type
141
+ )
142
+
143
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
144
+ if @api_client.config.debugging
145
+ @api_client.config.logger.debug "API called: AuthApi#auth2fa_disable_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
146
+ end
147
+ return data, status_code, headers
148
+ end
149
+
150
+ # Enable 2FA (returns TOTP secret and QR URL)
151
+ # @param enable2fa_request [Enable2faRequest]
152
+ # @param [Hash] opts the optional parameters
153
+ # @return [Auth2faEnablePost200Response]
154
+ def auth2fa_enable_post(enable2fa_request, opts = {})
155
+ data, _status_code, _headers = auth2fa_enable_post_with_http_info(enable2fa_request, opts)
156
+ data
157
+ end
158
+
159
+ # Enable 2FA (returns TOTP secret and QR URL)
160
+ # @param enable2fa_request [Enable2faRequest]
161
+ # @param [Hash] opts the optional parameters
162
+ # @return [Array<(Auth2faEnablePost200Response, Integer, Hash)>] Auth2faEnablePost200Response data, response status code and response headers
163
+ def auth2fa_enable_post_with_http_info(enable2fa_request, opts = {})
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth2fa_enable_post ...'
166
+ end
167
+ # verify the required parameter 'enable2fa_request' is set
168
+ if @api_client.config.client_side_validation && enable2fa_request.nil?
169
+ fail ArgumentError, "Missing the required parameter 'enable2fa_request' when calling AuthApi.auth2fa_enable_post"
170
+ end
171
+ # resource path
172
+ local_var_path = '/auth/2fa/enable'
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+
177
+ # header parameters
178
+ header_params = opts[:header_params] || {}
179
+ # HTTP header 'Accept' (if needed)
180
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
181
+ # HTTP header 'Content-Type'
182
+ content_type = @api_client.select_header_content_type(['application/json'])
183
+ if !content_type.nil?
184
+ header_params['Content-Type'] = content_type
185
+ end
186
+
187
+ # form parameters
188
+ form_params = opts[:form_params] || {}
189
+
190
+ # http body (model)
191
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(enable2fa_request)
192
+
193
+ # return_type
194
+ return_type = opts[:debug_return_type] || 'Auth2faEnablePost200Response'
195
+
196
+ # auth_names
197
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
198
+
199
+ new_options = opts.merge(
200
+ :operation => :"AuthApi.auth2fa_enable_post",
201
+ :header_params => header_params,
202
+ :query_params => query_params,
203
+ :form_params => form_params,
204
+ :body => post_body,
205
+ :auth_names => auth_names,
206
+ :return_type => return_type
207
+ )
208
+
209
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
210
+ if @api_client.config.debugging
211
+ @api_client.config.logger.debug "API called: AuthApi#auth2fa_enable_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ end
213
+ return data, status_code, headers
214
+ end
215
+
216
+ # Verify 2FA code during login
217
+ # @param verify2fa_request [Verify2faRequest]
218
+ # @param [Hash] opts the optional parameters
219
+ # @return [AuthResponse]
220
+ def auth2fa_verify_post(verify2fa_request, opts = {})
221
+ data, _status_code, _headers = auth2fa_verify_post_with_http_info(verify2fa_request, opts)
222
+ data
223
+ end
224
+
225
+ # Verify 2FA code during login
226
+ # @param verify2fa_request [Verify2faRequest]
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [Array<(AuthResponse, Integer, Hash)>] AuthResponse data, response status code and response headers
229
+ def auth2fa_verify_post_with_http_info(verify2fa_request, opts = {})
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth2fa_verify_post ...'
232
+ end
233
+ # verify the required parameter 'verify2fa_request' is set
234
+ if @api_client.config.client_side_validation && verify2fa_request.nil?
235
+ fail ArgumentError, "Missing the required parameter 'verify2fa_request' when calling AuthApi.auth2fa_verify_post"
236
+ end
237
+ # resource path
238
+ local_var_path = '/auth/2fa/verify'
239
+
240
+ # query parameters
241
+ query_params = opts[:query_params] || {}
242
+
243
+ # header parameters
244
+ header_params = opts[:header_params] || {}
245
+ # HTTP header 'Accept' (if needed)
246
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
247
+ # HTTP header 'Content-Type'
248
+ content_type = @api_client.select_header_content_type(['application/json'])
249
+ if !content_type.nil?
250
+ header_params['Content-Type'] = content_type
251
+ end
252
+
253
+ # form parameters
254
+ form_params = opts[:form_params] || {}
255
+
256
+ # http body (model)
257
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(verify2fa_request)
258
+
259
+ # return_type
260
+ return_type = opts[:debug_return_type] || 'AuthResponse'
261
+
262
+ # auth_names
263
+ auth_names = opts[:debug_auth_names] || []
264
+
265
+ new_options = opts.merge(
266
+ :operation => :"AuthApi.auth2fa_verify_post",
267
+ :header_params => header_params,
268
+ :query_params => query_params,
269
+ :form_params => form_params,
270
+ :body => post_body,
271
+ :auth_names => auth_names,
272
+ :return_type => return_type
273
+ )
274
+
275
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
276
+ if @api_client.config.debugging
277
+ @api_client.config.logger.debug "API called: AuthApi#auth2fa_verify_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
278
+ end
279
+ return data, status_code, headers
280
+ end
281
+
282
+ # Delete account (GDPR)
283
+ # @param [Hash] opts the optional parameters
284
+ # @return [nil]
285
+ def auth_account_delete(opts = {})
286
+ auth_account_delete_with_http_info(opts)
287
+ nil
288
+ end
289
+
290
+ # Delete account (GDPR)
291
+ # @param [Hash] opts the optional parameters
292
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
293
+ def auth_account_delete_with_http_info(opts = {})
294
+ if @api_client.config.debugging
295
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_account_delete ...'
296
+ end
297
+ # resource path
298
+ local_var_path = '/auth/account'
299
+
300
+ # query parameters
301
+ query_params = opts[:query_params] || {}
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+
306
+ # form parameters
307
+ form_params = opts[:form_params] || {}
308
+
309
+ # http body (model)
310
+ post_body = opts[:debug_body]
311
+
312
+ # return_type
313
+ return_type = opts[:debug_return_type]
314
+
315
+ # auth_names
316
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
317
+
318
+ new_options = opts.merge(
319
+ :operation => :"AuthApi.auth_account_delete",
320
+ :header_params => header_params,
321
+ :query_params => query_params,
322
+ :form_params => form_params,
323
+ :body => post_body,
324
+ :auth_names => auth_names,
325
+ :return_type => return_type
326
+ )
327
+
328
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
329
+ if @api_client.config.debugging
330
+ @api_client.config.logger.debug "API called: AuthApi#auth_account_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
331
+ end
332
+ return data, status_code, headers
333
+ end
334
+
335
+ # Export user data (GDPR)
336
+ # @param [Hash] opts the optional parameters
337
+ # @return [nil]
338
+ def auth_export_get(opts = {})
339
+ auth_export_get_with_http_info(opts)
340
+ nil
341
+ end
342
+
343
+ # Export user data (GDPR)
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
346
+ def auth_export_get_with_http_info(opts = {})
347
+ if @api_client.config.debugging
348
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_export_get ...'
349
+ end
350
+ # resource path
351
+ local_var_path = '/auth/export'
352
+
353
+ # query parameters
354
+ query_params = opts[:query_params] || {}
355
+
356
+ # header parameters
357
+ header_params = opts[:header_params] || {}
358
+
359
+ # form parameters
360
+ form_params = opts[:form_params] || {}
361
+
362
+ # http body (model)
363
+ post_body = opts[:debug_body]
364
+
365
+ # return_type
366
+ return_type = opts[:debug_return_type]
367
+
368
+ # auth_names
369
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
370
+
371
+ new_options = opts.merge(
372
+ :operation => :"AuthApi.auth_export_get",
373
+ :header_params => header_params,
374
+ :query_params => query_params,
375
+ :form_params => form_params,
376
+ :body => post_body,
377
+ :auth_names => auth_names,
378
+ :return_type => return_type
379
+ )
380
+
381
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
382
+ if @api_client.config.debugging
383
+ @api_client.config.logger.debug "API called: AuthApi#auth_export_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
384
+ end
385
+ return data, status_code, headers
386
+ end
387
+
388
+ # Request password reset email
389
+ # @param forgot_password_request [ForgotPasswordRequest]
390
+ # @param [Hash] opts the optional parameters
391
+ # @return [nil]
392
+ def auth_forgot_password_post(forgot_password_request, opts = {})
393
+ auth_forgot_password_post_with_http_info(forgot_password_request, opts)
394
+ nil
395
+ end
396
+
397
+ # Request password reset email
398
+ # @param forgot_password_request [ForgotPasswordRequest]
399
+ # @param [Hash] opts the optional parameters
400
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
401
+ def auth_forgot_password_post_with_http_info(forgot_password_request, opts = {})
402
+ if @api_client.config.debugging
403
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_forgot_password_post ...'
404
+ end
405
+ # verify the required parameter 'forgot_password_request' is set
406
+ if @api_client.config.client_side_validation && forgot_password_request.nil?
407
+ fail ArgumentError, "Missing the required parameter 'forgot_password_request' when calling AuthApi.auth_forgot_password_post"
408
+ end
409
+ # resource path
410
+ local_var_path = '/auth/forgot-password'
411
+
412
+ # query parameters
413
+ query_params = opts[:query_params] || {}
414
+
415
+ # header parameters
416
+ header_params = opts[:header_params] || {}
417
+ # HTTP header 'Content-Type'
418
+ content_type = @api_client.select_header_content_type(['application/json'])
419
+ if !content_type.nil?
420
+ header_params['Content-Type'] = content_type
421
+ end
422
+
423
+ # form parameters
424
+ form_params = opts[:form_params] || {}
425
+
426
+ # http body (model)
427
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(forgot_password_request)
428
+
429
+ # return_type
430
+ return_type = opts[:debug_return_type]
431
+
432
+ # auth_names
433
+ auth_names = opts[:debug_auth_names] || []
434
+
435
+ new_options = opts.merge(
436
+ :operation => :"AuthApi.auth_forgot_password_post",
437
+ :header_params => header_params,
438
+ :query_params => query_params,
439
+ :form_params => form_params,
440
+ :body => post_body,
441
+ :auth_names => auth_names,
442
+ :return_type => return_type
443
+ )
444
+
445
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: AuthApi#auth_forgot_password_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
448
+ end
449
+ return data, status_code, headers
450
+ end
451
+
452
+ # Login with email and password
453
+ # @param login_request [LoginRequest]
454
+ # @param [Hash] opts the optional parameters
455
+ # @return [AuthLoginPost200Response]
456
+ def auth_login_post(login_request, opts = {})
457
+ data, _status_code, _headers = auth_login_post_with_http_info(login_request, opts)
458
+ data
459
+ end
460
+
461
+ # Login with email and password
462
+ # @param login_request [LoginRequest]
463
+ # @param [Hash] opts the optional parameters
464
+ # @return [Array<(AuthLoginPost200Response, Integer, Hash)>] AuthLoginPost200Response data, response status code and response headers
465
+ def auth_login_post_with_http_info(login_request, opts = {})
466
+ if @api_client.config.debugging
467
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_login_post ...'
468
+ end
469
+ # verify the required parameter 'login_request' is set
470
+ if @api_client.config.client_side_validation && login_request.nil?
471
+ fail ArgumentError, "Missing the required parameter 'login_request' when calling AuthApi.auth_login_post"
472
+ end
473
+ # resource path
474
+ local_var_path = '/auth/login'
475
+
476
+ # query parameters
477
+ query_params = opts[:query_params] || {}
478
+
479
+ # header parameters
480
+ header_params = opts[:header_params] || {}
481
+ # HTTP header 'Accept' (if needed)
482
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
483
+ # HTTP header 'Content-Type'
484
+ content_type = @api_client.select_header_content_type(['application/json'])
485
+ if !content_type.nil?
486
+ header_params['Content-Type'] = content_type
487
+ end
488
+
489
+ # form parameters
490
+ form_params = opts[:form_params] || {}
491
+
492
+ # http body (model)
493
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(login_request)
494
+
495
+ # return_type
496
+ return_type = opts[:debug_return_type] || 'AuthLoginPost200Response'
497
+
498
+ # auth_names
499
+ auth_names = opts[:debug_auth_names] || []
500
+
501
+ new_options = opts.merge(
502
+ :operation => :"AuthApi.auth_login_post",
503
+ :header_params => header_params,
504
+ :query_params => query_params,
505
+ :form_params => form_params,
506
+ :body => post_body,
507
+ :auth_names => auth_names,
508
+ :return_type => return_type
509
+ )
510
+
511
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
512
+ if @api_client.config.debugging
513
+ @api_client.config.logger.debug "API called: AuthApi#auth_login_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
514
+ end
515
+ return data, status_code, headers
516
+ end
517
+
518
+ # Logout (invalidate refresh token)
519
+ # @param [Hash] opts the optional parameters
520
+ # @return [nil]
521
+ def auth_logout_post(opts = {})
522
+ auth_logout_post_with_http_info(opts)
523
+ nil
524
+ end
525
+
526
+ # Logout (invalidate refresh token)
527
+ # @param [Hash] opts the optional parameters
528
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
529
+ def auth_logout_post_with_http_info(opts = {})
530
+ if @api_client.config.debugging
531
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_logout_post ...'
532
+ end
533
+ # resource path
534
+ local_var_path = '/auth/logout'
535
+
536
+ # query parameters
537
+ query_params = opts[:query_params] || {}
538
+
539
+ # header parameters
540
+ header_params = opts[:header_params] || {}
541
+
542
+ # form parameters
543
+ form_params = opts[:form_params] || {}
544
+
545
+ # http body (model)
546
+ post_body = opts[:debug_body]
547
+
548
+ # return_type
549
+ return_type = opts[:debug_return_type]
550
+
551
+ # auth_names
552
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
553
+
554
+ new_options = opts.merge(
555
+ :operation => :"AuthApi.auth_logout_post",
556
+ :header_params => header_params,
557
+ :query_params => query_params,
558
+ :form_params => form_params,
559
+ :body => post_body,
560
+ :auth_names => auth_names,
561
+ :return_type => return_type
562
+ )
563
+
564
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
565
+ if @api_client.config.debugging
566
+ @api_client.config.logger.debug "API called: AuthApi#auth_logout_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
567
+ end
568
+ return data, status_code, headers
569
+ end
570
+
571
+ # Get current user profile
572
+ # @param [Hash] opts the optional parameters
573
+ # @return [CustomerResponse]
574
+ def auth_me_get(opts = {})
575
+ data, _status_code, _headers = auth_me_get_with_http_info(opts)
576
+ data
577
+ end
578
+
579
+ # Get current user profile
580
+ # @param [Hash] opts the optional parameters
581
+ # @return [Array<(CustomerResponse, Integer, Hash)>] CustomerResponse data, response status code and response headers
582
+ def auth_me_get_with_http_info(opts = {})
583
+ if @api_client.config.debugging
584
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_me_get ...'
585
+ end
586
+ # resource path
587
+ local_var_path = '/auth/me'
588
+
589
+ # query parameters
590
+ query_params = opts[:query_params] || {}
591
+
592
+ # header parameters
593
+ header_params = opts[:header_params] || {}
594
+ # HTTP header 'Accept' (if needed)
595
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
596
+
597
+ # form parameters
598
+ form_params = opts[:form_params] || {}
599
+
600
+ # http body (model)
601
+ post_body = opts[:debug_body]
602
+
603
+ # return_type
604
+ return_type = opts[:debug_return_type] || 'CustomerResponse'
605
+
606
+ # auth_names
607
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
608
+
609
+ new_options = opts.merge(
610
+ :operation => :"AuthApi.auth_me_get",
611
+ :header_params => header_params,
612
+ :query_params => query_params,
613
+ :form_params => form_params,
614
+ :body => post_body,
615
+ :auth_names => auth_names,
616
+ :return_type => return_type
617
+ )
618
+
619
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
620
+ if @api_client.config.debugging
621
+ @api_client.config.logger.debug "API called: AuthApi#auth_me_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
622
+ end
623
+ return data, status_code, headers
624
+ end
625
+
626
+ # Change password
627
+ # @param change_password_request [ChangePasswordRequest]
628
+ # @param [Hash] opts the optional parameters
629
+ # @return [nil]
630
+ def auth_password_put(change_password_request, opts = {})
631
+ auth_password_put_with_http_info(change_password_request, opts)
632
+ nil
633
+ end
634
+
635
+ # Change password
636
+ # @param change_password_request [ChangePasswordRequest]
637
+ # @param [Hash] opts the optional parameters
638
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
639
+ def auth_password_put_with_http_info(change_password_request, opts = {})
640
+ if @api_client.config.debugging
641
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_password_put ...'
642
+ end
643
+ # verify the required parameter 'change_password_request' is set
644
+ if @api_client.config.client_side_validation && change_password_request.nil?
645
+ fail ArgumentError, "Missing the required parameter 'change_password_request' when calling AuthApi.auth_password_put"
646
+ end
647
+ # resource path
648
+ local_var_path = '/auth/password'
649
+
650
+ # query parameters
651
+ query_params = opts[:query_params] || {}
652
+
653
+ # header parameters
654
+ header_params = opts[:header_params] || {}
655
+ # HTTP header 'Content-Type'
656
+ content_type = @api_client.select_header_content_type(['application/json'])
657
+ if !content_type.nil?
658
+ header_params['Content-Type'] = content_type
659
+ end
660
+
661
+ # form parameters
662
+ form_params = opts[:form_params] || {}
663
+
664
+ # http body (model)
665
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(change_password_request)
666
+
667
+ # return_type
668
+ return_type = opts[:debug_return_type]
669
+
670
+ # auth_names
671
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
672
+
673
+ new_options = opts.merge(
674
+ :operation => :"AuthApi.auth_password_put",
675
+ :header_params => header_params,
676
+ :query_params => query_params,
677
+ :form_params => form_params,
678
+ :body => post_body,
679
+ :auth_names => auth_names,
680
+ :return_type => return_type
681
+ )
682
+
683
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
684
+ if @api_client.config.debugging
685
+ @api_client.config.logger.debug "API called: AuthApi#auth_password_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
686
+ end
687
+ return data, status_code, headers
688
+ end
689
+
690
+ # Update profile
691
+ # @param update_profile_request [UpdateProfileRequest]
692
+ # @param [Hash] opts the optional parameters
693
+ # @return [CustomerResponse]
694
+ def auth_profile_put(update_profile_request, opts = {})
695
+ data, _status_code, _headers = auth_profile_put_with_http_info(update_profile_request, opts)
696
+ data
697
+ end
698
+
699
+ # Update profile
700
+ # @param update_profile_request [UpdateProfileRequest]
701
+ # @param [Hash] opts the optional parameters
702
+ # @return [Array<(CustomerResponse, Integer, Hash)>] CustomerResponse data, response status code and response headers
703
+ def auth_profile_put_with_http_info(update_profile_request, opts = {})
704
+ if @api_client.config.debugging
705
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_profile_put ...'
706
+ end
707
+ # verify the required parameter 'update_profile_request' is set
708
+ if @api_client.config.client_side_validation && update_profile_request.nil?
709
+ fail ArgumentError, "Missing the required parameter 'update_profile_request' when calling AuthApi.auth_profile_put"
710
+ end
711
+ # resource path
712
+ local_var_path = '/auth/profile'
713
+
714
+ # query parameters
715
+ query_params = opts[:query_params] || {}
716
+
717
+ # header parameters
718
+ header_params = opts[:header_params] || {}
719
+ # HTTP header 'Accept' (if needed)
720
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
721
+ # HTTP header 'Content-Type'
722
+ content_type = @api_client.select_header_content_type(['application/json'])
723
+ if !content_type.nil?
724
+ header_params['Content-Type'] = content_type
725
+ end
726
+
727
+ # form parameters
728
+ form_params = opts[:form_params] || {}
729
+
730
+ # http body (model)
731
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_profile_request)
732
+
733
+ # return_type
734
+ return_type = opts[:debug_return_type] || 'CustomerResponse'
735
+
736
+ # auth_names
737
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
738
+
739
+ new_options = opts.merge(
740
+ :operation => :"AuthApi.auth_profile_put",
741
+ :header_params => header_params,
742
+ :query_params => query_params,
743
+ :form_params => form_params,
744
+ :body => post_body,
745
+ :auth_names => auth_names,
746
+ :return_type => return_type
747
+ )
748
+
749
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
750
+ if @api_client.config.debugging
751
+ @api_client.config.logger.debug "API called: AuthApi#auth_profile_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
752
+ end
753
+ return data, status_code, headers
754
+ end
755
+
756
+ # Refresh access token
757
+ # @param refresh_token_request [RefreshTokenRequest]
758
+ # @param [Hash] opts the optional parameters
759
+ # @return [AuthResponse]
760
+ def auth_refresh_post(refresh_token_request, opts = {})
761
+ data, _status_code, _headers = auth_refresh_post_with_http_info(refresh_token_request, opts)
762
+ data
763
+ end
764
+
765
+ # Refresh access token
766
+ # @param refresh_token_request [RefreshTokenRequest]
767
+ # @param [Hash] opts the optional parameters
768
+ # @return [Array<(AuthResponse, Integer, Hash)>] AuthResponse data, response status code and response headers
769
+ def auth_refresh_post_with_http_info(refresh_token_request, opts = {})
770
+ if @api_client.config.debugging
771
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_refresh_post ...'
772
+ end
773
+ # verify the required parameter 'refresh_token_request' is set
774
+ if @api_client.config.client_side_validation && refresh_token_request.nil?
775
+ fail ArgumentError, "Missing the required parameter 'refresh_token_request' when calling AuthApi.auth_refresh_post"
776
+ end
777
+ # resource path
778
+ local_var_path = '/auth/refresh'
779
+
780
+ # query parameters
781
+ query_params = opts[:query_params] || {}
782
+
783
+ # header parameters
784
+ header_params = opts[:header_params] || {}
785
+ # HTTP header 'Accept' (if needed)
786
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
787
+ # HTTP header 'Content-Type'
788
+ content_type = @api_client.select_header_content_type(['application/json'])
789
+ if !content_type.nil?
790
+ header_params['Content-Type'] = content_type
791
+ end
792
+
793
+ # form parameters
794
+ form_params = opts[:form_params] || {}
795
+
796
+ # http body (model)
797
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(refresh_token_request)
798
+
799
+ # return_type
800
+ return_type = opts[:debug_return_type] || 'AuthResponse'
801
+
802
+ # auth_names
803
+ auth_names = opts[:debug_auth_names] || []
804
+
805
+ new_options = opts.merge(
806
+ :operation => :"AuthApi.auth_refresh_post",
807
+ :header_params => header_params,
808
+ :query_params => query_params,
809
+ :form_params => form_params,
810
+ :body => post_body,
811
+ :auth_names => auth_names,
812
+ :return_type => return_type
813
+ )
814
+
815
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
816
+ if @api_client.config.debugging
817
+ @api_client.config.logger.debug "API called: AuthApi#auth_refresh_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
818
+ end
819
+ return data, status_code, headers
820
+ end
821
+
822
+ # Register a new account
823
+ # @param register_request [RegisterRequest]
824
+ # @param [Hash] opts the optional parameters
825
+ # @return [CustomerResponse]
826
+ def auth_register_post(register_request, opts = {})
827
+ data, _status_code, _headers = auth_register_post_with_http_info(register_request, opts)
828
+ data
829
+ end
830
+
831
+ # Register a new account
832
+ # @param register_request [RegisterRequest]
833
+ # @param [Hash] opts the optional parameters
834
+ # @return [Array<(CustomerResponse, Integer, Hash)>] CustomerResponse data, response status code and response headers
835
+ def auth_register_post_with_http_info(register_request, opts = {})
836
+ if @api_client.config.debugging
837
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_register_post ...'
838
+ end
839
+ # verify the required parameter 'register_request' is set
840
+ if @api_client.config.client_side_validation && register_request.nil?
841
+ fail ArgumentError, "Missing the required parameter 'register_request' when calling AuthApi.auth_register_post"
842
+ end
843
+ # resource path
844
+ local_var_path = '/auth/register'
845
+
846
+ # query parameters
847
+ query_params = opts[:query_params] || {}
848
+
849
+ # header parameters
850
+ header_params = opts[:header_params] || {}
851
+ # HTTP header 'Accept' (if needed)
852
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
853
+ # HTTP header 'Content-Type'
854
+ content_type = @api_client.select_header_content_type(['application/json'])
855
+ if !content_type.nil?
856
+ header_params['Content-Type'] = content_type
857
+ end
858
+
859
+ # form parameters
860
+ form_params = opts[:form_params] || {}
861
+
862
+ # http body (model)
863
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(register_request)
864
+
865
+ # return_type
866
+ return_type = opts[:debug_return_type] || 'CustomerResponse'
867
+
868
+ # auth_names
869
+ auth_names = opts[:debug_auth_names] || []
870
+
871
+ new_options = opts.merge(
872
+ :operation => :"AuthApi.auth_register_post",
873
+ :header_params => header_params,
874
+ :query_params => query_params,
875
+ :form_params => form_params,
876
+ :body => post_body,
877
+ :auth_names => auth_names,
878
+ :return_type => return_type
879
+ )
880
+
881
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
882
+ if @api_client.config.debugging
883
+ @api_client.config.logger.debug "API called: AuthApi#auth_register_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
884
+ end
885
+ return data, status_code, headers
886
+ end
887
+
888
+ # Resend verification email
889
+ # @param resend_verification_request [ResendVerificationRequest]
890
+ # @param [Hash] opts the optional parameters
891
+ # @return [nil]
892
+ def auth_resend_verification_post(resend_verification_request, opts = {})
893
+ auth_resend_verification_post_with_http_info(resend_verification_request, opts)
894
+ nil
895
+ end
896
+
897
+ # Resend verification email
898
+ # @param resend_verification_request [ResendVerificationRequest]
899
+ # @param [Hash] opts the optional parameters
900
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
901
+ def auth_resend_verification_post_with_http_info(resend_verification_request, opts = {})
902
+ if @api_client.config.debugging
903
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_resend_verification_post ...'
904
+ end
905
+ # verify the required parameter 'resend_verification_request' is set
906
+ if @api_client.config.client_side_validation && resend_verification_request.nil?
907
+ fail ArgumentError, "Missing the required parameter 'resend_verification_request' when calling AuthApi.auth_resend_verification_post"
908
+ end
909
+ # resource path
910
+ local_var_path = '/auth/resend-verification'
911
+
912
+ # query parameters
913
+ query_params = opts[:query_params] || {}
914
+
915
+ # header parameters
916
+ header_params = opts[:header_params] || {}
917
+ # HTTP header 'Content-Type'
918
+ content_type = @api_client.select_header_content_type(['application/json'])
919
+ if !content_type.nil?
920
+ header_params['Content-Type'] = content_type
921
+ end
922
+
923
+ # form parameters
924
+ form_params = opts[:form_params] || {}
925
+
926
+ # http body (model)
927
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(resend_verification_request)
928
+
929
+ # return_type
930
+ return_type = opts[:debug_return_type]
931
+
932
+ # auth_names
933
+ auth_names = opts[:debug_auth_names] || []
934
+
935
+ new_options = opts.merge(
936
+ :operation => :"AuthApi.auth_resend_verification_post",
937
+ :header_params => header_params,
938
+ :query_params => query_params,
939
+ :form_params => form_params,
940
+ :body => post_body,
941
+ :auth_names => auth_names,
942
+ :return_type => return_type
943
+ )
944
+
945
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
946
+ if @api_client.config.debugging
947
+ @api_client.config.logger.debug "API called: AuthApi#auth_resend_verification_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
948
+ end
949
+ return data, status_code, headers
950
+ end
951
+
952
+ # Reset password with token
953
+ # @param reset_password_request [ResetPasswordRequest]
954
+ # @param [Hash] opts the optional parameters
955
+ # @return [nil]
956
+ def auth_reset_password_post(reset_password_request, opts = {})
957
+ auth_reset_password_post_with_http_info(reset_password_request, opts)
958
+ nil
959
+ end
960
+
961
+ # Reset password with token
962
+ # @param reset_password_request [ResetPasswordRequest]
963
+ # @param [Hash] opts the optional parameters
964
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
965
+ def auth_reset_password_post_with_http_info(reset_password_request, opts = {})
966
+ if @api_client.config.debugging
967
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_reset_password_post ...'
968
+ end
969
+ # verify the required parameter 'reset_password_request' is set
970
+ if @api_client.config.client_side_validation && reset_password_request.nil?
971
+ fail ArgumentError, "Missing the required parameter 'reset_password_request' when calling AuthApi.auth_reset_password_post"
972
+ end
973
+ # resource path
974
+ local_var_path = '/auth/reset-password'
975
+
976
+ # query parameters
977
+ query_params = opts[:query_params] || {}
978
+
979
+ # header parameters
980
+ header_params = opts[:header_params] || {}
981
+ # HTTP header 'Content-Type'
982
+ content_type = @api_client.select_header_content_type(['application/json'])
983
+ if !content_type.nil?
984
+ header_params['Content-Type'] = content_type
985
+ end
986
+
987
+ # form parameters
988
+ form_params = opts[:form_params] || {}
989
+
990
+ # http body (model)
991
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(reset_password_request)
992
+
993
+ # return_type
994
+ return_type = opts[:debug_return_type]
995
+
996
+ # auth_names
997
+ auth_names = opts[:debug_auth_names] || []
998
+
999
+ new_options = opts.merge(
1000
+ :operation => :"AuthApi.auth_reset_password_post",
1001
+ :header_params => header_params,
1002
+ :query_params => query_params,
1003
+ :form_params => form_params,
1004
+ :body => post_body,
1005
+ :auth_names => auth_names,
1006
+ :return_type => return_type
1007
+ )
1008
+
1009
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1010
+ if @api_client.config.debugging
1011
+ @api_client.config.logger.debug "API called: AuthApi#auth_reset_password_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1012
+ end
1013
+ return data, status_code, headers
1014
+ end
1015
+
1016
+ # Verify email address
1017
+ # @param verify_email_request [VerifyEmailRequest]
1018
+ # @param [Hash] opts the optional parameters
1019
+ # @return [nil]
1020
+ def auth_verify_email_post(verify_email_request, opts = {})
1021
+ auth_verify_email_post_with_http_info(verify_email_request, opts)
1022
+ nil
1023
+ end
1024
+
1025
+ # Verify email address
1026
+ # @param verify_email_request [VerifyEmailRequest]
1027
+ # @param [Hash] opts the optional parameters
1028
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1029
+ def auth_verify_email_post_with_http_info(verify_email_request, opts = {})
1030
+ if @api_client.config.debugging
1031
+ @api_client.config.logger.debug 'Calling API: AuthApi.auth_verify_email_post ...'
1032
+ end
1033
+ # verify the required parameter 'verify_email_request' is set
1034
+ if @api_client.config.client_side_validation && verify_email_request.nil?
1035
+ fail ArgumentError, "Missing the required parameter 'verify_email_request' when calling AuthApi.auth_verify_email_post"
1036
+ end
1037
+ # resource path
1038
+ local_var_path = '/auth/verify-email'
1039
+
1040
+ # query parameters
1041
+ query_params = opts[:query_params] || {}
1042
+
1043
+ # header parameters
1044
+ header_params = opts[:header_params] || {}
1045
+ # HTTP header 'Content-Type'
1046
+ content_type = @api_client.select_header_content_type(['application/json'])
1047
+ if !content_type.nil?
1048
+ header_params['Content-Type'] = content_type
1049
+ end
1050
+
1051
+ # form parameters
1052
+ form_params = opts[:form_params] || {}
1053
+
1054
+ # http body (model)
1055
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(verify_email_request)
1056
+
1057
+ # return_type
1058
+ return_type = opts[:debug_return_type]
1059
+
1060
+ # auth_names
1061
+ auth_names = opts[:debug_auth_names] || []
1062
+
1063
+ new_options = opts.merge(
1064
+ :operation => :"AuthApi.auth_verify_email_post",
1065
+ :header_params => header_params,
1066
+ :query_params => query_params,
1067
+ :form_params => form_params,
1068
+ :body => post_body,
1069
+ :auth_names => auth_names,
1070
+ :return_type => return_type
1071
+ )
1072
+
1073
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1074
+ if @api_client.config.debugging
1075
+ @api_client.config.logger.debug "API called: AuthApi#auth_verify_email_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1076
+ end
1077
+ return data, status_code, headers
1078
+ end
1079
+ end
1080
+ end