Skip to content

Commit 70ee6bf

Browse files
committedSep 3, 2024
Client sync
1 parent 34acaf0 commit 70ee6bf

File tree

60 files changed

+813
-1224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+813
-1224
lines changed
 

‎src/main/java/io/fusionauth/client/FusionAuthClient.java

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@
171171
import io.fusionauth.domain.api.WebAuthnRegisterStartResponse;
172172
import io.fusionauth.domain.api.WebAuthnStartRequest;
173173
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;
174178
import io.fusionauth.domain.api.WebhookRequest;
175179
import io.fusionauth.domain.api.WebhookResponse;
176180
import io.fusionauth.domain.api.WebhookSearchRequest;
@@ -4326,6 +4330,34 @@ public ClientResponse<WebhookResponse, Void> retrieveWebhook(UUID webhookId) {
43264330
.go();
43274331
}
43284332

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+
43294361
/**
43304362
* Retrieves all the webhooks.
43314363
*
@@ -4808,6 +4840,20 @@ public ClientResponse<SearchResponse, Errors> searchUsersByQueryString(SearchReq
48084840
.go();
48094841
}
48104842

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+
48114857
/**
48124858
* Searches webhooks with the specified criteria and pagination.
48134859
*

‎src/main/java/io/fusionauth/client/json/EventRequestDeserializer.java

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)