|
171 | 171 | import io.fusionauth.domain.api.WebAuthnRegisterStartResponse;
|
172 | 172 | import io.fusionauth.domain.api.WebAuthnStartRequest;
|
173 | 173 | import io.fusionauth.domain.api.WebAuthnStartResponse;
|
| 174 | +import io.fusionauth.domain.api.WebhookAttemptLogResponse; |
| 175 | +import io.fusionauth.domain.api.WebhookEventLogResponse; |
| 176 | +import io.fusionauth.domain.api.WebhookEventLogSearchRequest; |
| 177 | +import io.fusionauth.domain.api.WebhookEventLogSearchResponse; |
174 | 178 | import io.fusionauth.domain.api.WebhookRequest;
|
175 | 179 | import io.fusionauth.domain.api.WebhookResponse;
|
176 | 180 | import io.fusionauth.domain.api.WebhookSearchRequest;
|
@@ -4326,6 +4330,34 @@ public ClientResponse<WebhookResponse, Void> retrieveWebhook(UUID webhookId) {
|
4326 | 4330 | .go();
|
4327 | 4331 | }
|
4328 | 4332 |
|
| 4333 | + /** |
| 4334 | + * Retrieves a single webhook attempt log for the given Id. |
| 4335 | + * |
| 4336 | + * @param webhookAttemptLogId The Id of the webhook attempt log to retrieve. |
| 4337 | + * @return The ClientResponse object. |
| 4338 | + */ |
| 4339 | + public ClientResponse<WebhookAttemptLogResponse, Errors> retrieveWebhookAttemptLog(UUID webhookAttemptLogId) { |
| 4340 | + return start(WebhookAttemptLogResponse.class, Errors.class) |
| 4341 | + .uri("/api/system/webhook-attempt-log") |
| 4342 | + .urlSegment(webhookAttemptLogId) |
| 4343 | + .get() |
| 4344 | + .go(); |
| 4345 | + } |
| 4346 | + |
| 4347 | + /** |
| 4348 | + * Retrieves a single webhook event log for the given Id. |
| 4349 | + * |
| 4350 | + * @param webhookEventLogId The Id of the webhook event log to retrieve. |
| 4351 | + * @return The ClientResponse object. |
| 4352 | + */ |
| 4353 | + public ClientResponse<WebhookEventLogResponse, Errors> retrieveWebhookEventLog(UUID webhookEventLogId) { |
| 4354 | + return start(WebhookEventLogResponse.class, Errors.class) |
| 4355 | + .uri("/api/system/webhook-event-log") |
| 4356 | + .urlSegment(webhookEventLogId) |
| 4357 | + .get() |
| 4358 | + .go(); |
| 4359 | + } |
| 4360 | + |
4329 | 4361 | /**
|
4330 | 4362 | * Retrieves all the webhooks.
|
4331 | 4363 | *
|
@@ -4808,6 +4840,20 @@ public ClientResponse<SearchResponse, Errors> searchUsersByQueryString(SearchReq
|
4808 | 4840 | .go();
|
4809 | 4841 | }
|
4810 | 4842 |
|
| 4843 | + /** |
| 4844 | + * Searches the webhook event logs with the specified criteria and pagination. |
| 4845 | + * |
| 4846 | + * @param request The search criteria and pagination information. |
| 4847 | + * @return The ClientResponse object. |
| 4848 | + */ |
| 4849 | + public ClientResponse<WebhookEventLogSearchResponse, Errors> searchWebhookEventLogs(WebhookEventLogSearchRequest request) { |
| 4850 | + return start(WebhookEventLogSearchResponse.class, Errors.class) |
| 4851 | + .uri("/api/system/webhook-event-log/search") |
| 4852 | + .bodyHandler(new JSONBodyHandler(request, objectMapper())) |
| 4853 | + .post() |
| 4854 | + .go(); |
| 4855 | + } |
| 4856 | + |
4811 | 4857 | /**
|
4812 | 4858 | * Searches webhooks with the specified criteria and pagination.
|
4813 | 4859 | *
|
|
0 commit comments