diff --git a/reference.md b/reference.md
index d42d09caa..ee55df7f7 100644
--- a/reference.md
+++ b/reference.md
@@ -714,6 +714,14 @@ client.branding().update(
-
+**identifiers:** `Optional`
+
+
+
+
+
+-
+
**font:** `Optional`
@@ -842,7 +850,7 @@ client.clientGrants().list(
-
-**defaultFor:** `Optional` — Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`.
+**defaultFor:** `Optional` — Applies this client grant as the default for all clients in the specified group. The only accepted value is `third_party_clients`, which applies the grant to all third-party clients. Per-client grants for the same audience take precedence. Mutually exclusive with `client_id`.
@@ -3257,6 +3265,9 @@ client.connections().list(
.includeFields(
OptionalNullable.of(true)
)
+ .strategy(
+ Arrays.asList(ConnectionStrategyEnum.AD)
+ )
.build()
);
```
@@ -5513,6 +5524,90 @@ client.eventStreams().test(
+
+
+
+
+## Events
+client.events.subscribe() -> Iterable<EventStreamSubscribeEventsResponseContent>
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Subscribe to events via Server-Sent Events (SSE)
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.events().subscribe(
+ SubscribeEventsRequestParameters
+ .builder()
+ .from(
+ OptionalNullable.of("from")
+ )
+ .fromTimestamp(
+ OptionalNullable.of("from_timestamp")
+ )
+ .eventType(
+ Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)
+ )
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**from:** `Optional` — Opaque token representing position in the stream. If not provided, stream will start from the latest events.
+
+
+
+
+
+-
+
+**fromTimestamp:** `Optional` — RFC-3339 timestamp indicating where to start streaming events from. This should only be used on the initial query when a cursor may not be available. Subsequent requests should use the cursor (from) as it will be more accurate.
+
+
+
+
+
+-
+
+**eventType:** `Optional` — Event type(s) to listen for. Specify multiple times for multiple types (e.g., ?event_type=user.created&event_type=user.updated). If not provided, all event types will be streamed.
+
+
+
+
+
+
+
@@ -5546,6 +5641,9 @@ client.flows().list(
.synchronous(
OptionalNullable.of(true)
)
+ .hydrate(
+ Arrays.asList(ListFlowsRequestParametersHydrateEnum.FORM_COUNT)
+ )
.build()
);
```
@@ -5676,6 +5774,9 @@ client.flows().get(
"id",
GetFlowRequestParameters
.builder()
+ .hydrate(
+ Arrays.asList(GetFlowRequestParametersHydrateEnum.FORM_COUNT)
+ )
.build()
);
```
@@ -5839,6 +5940,9 @@ client.forms().list(
.includeTotals(
OptionalNullable.of(true)
)
+ .hydrate(
+ Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)
+ )
.build()
);
```
@@ -6009,6 +6113,9 @@ client.forms().get(
"id",
GetFormRequestParameters
.builder()
+ .hydrate(
+ Arrays.asList(FormsRequestParametersHydrateEnum.FLOW_COUNT)
+ )
.build()
);
```
@@ -6464,6 +6571,9 @@ client.groups().list(
.externalId(
OptionalNullable.of("external_id")
)
+ .search(
+ OptionalNullable.of("search")
+ )
.fields(
OptionalNullable.of("fields")
)
@@ -6516,6 +6626,14 @@ client.groups().list(
-
+**search:** `Optional` — Search for groups by name or external ID.
+
+
+
+
+
+-
+
**fields:** `Optional` — A comma separated list of fields to include or exclude (depending on include_fields) from the result, empty to retrieve all fields
@@ -9337,6 +9455,80 @@ client.refreshTokens().list(
+
+
+
+
+client.refreshTokens.revoke(request)
+
+-
+
+#### 📝 Description
+
+
+-
+
+
+-
+
+Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+
+
+
+
+
+#### 🔌 Usage
+
+
+-
+
+
+-
+
+```java
+client.refreshTokens().revoke(
+ RevokeRefreshTokensRequestContent
+ .builder()
+ .build()
+);
+```
+
+
+
+
+
+#### ⚙️ Parameters
+
+
+-
+
+
+-
+
+**ids:** `Optional
>` — Array of refresh token IDs to revoke. Limited to 100 at a time.
+
+
+
+
+
+-
+
+**userId:** `Optional` — Revoke all refresh tokens for this user.
+
+
+
+
+
+-
+
+**clientId:** `Optional` — Revoke all refresh tokens for this client.
+
+
+
+
+
+
+
@@ -9559,6 +9751,9 @@ client.resourceServers().list(
.includeFields(
OptionalNullable.of(true)
)
+ .identifiers(
+ Arrays.asList("identifiers")
+ )
.build()
);
```
@@ -9788,6 +9983,14 @@ client.resourceServers().create(
**subjectTypeAuthorization:** `Optional`
+
+
+
+
+-
+
+**authorizationPolicy:** `Optional`
+
@@ -10091,6 +10294,14 @@ client.resourceServers().update(
**subjectTypeAuthorization:** `Optional`
+
+
+
+
+-
+
+**authorizationPolicy:** `Optional`
+
@@ -11198,7 +11409,7 @@ client.selfServiceProfiles().create(
-
-**allowedStrategies:** `Optional
>` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
+**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
@@ -11206,7 +11417,7 @@ client.selfServiceProfiles().create(
-
-**userAttributes:** `Optional
>` — List of attributes to be mapped that will be shown to the user during the SS-SSO flow.
+**userAttributes:** `Optional>` — List of attributes to be mapped that will be shown to the user during the Self-Service Enterprise Configuration flow.
@@ -11413,7 +11624,7 @@ client.selfServiceProfiles().update(
-
-**allowedStrategies:** `Optional
>` — List of IdP strategies that will be shown to users during the Self-Service SSO flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
+**allowedStrategies:** `Optional>` — List of IdP strategies that will be shown to users during the Self-Service Enterprise Configuration flow. Possible values: [`oidc`, `samlp`, `waad`, `google-apps`, `adfs`, `okta`, `auth0-samlp`, `okta-samlp`, `keycloak-samlp`, `pingfederate`]
@@ -18151,6 +18362,9 @@ client.clients().connections().get(
.includeFields(
OptionalNullable.of(true)
)
+ .strategy(
+ Arrays.asList(ConnectionStrategyEnum.AD)
+ )
.build()
);
```
@@ -20518,6 +20732,9 @@ client.flows().executions().get(
"execution_id",
GetFlowExecutionRequestParameters
.builder()
+ .hydrate(
+ Arrays.asList(GetFlowExecutionRequestParametersHydrateEnum.DEBUG)
+ )
.build()
);
```
@@ -24377,6 +24594,9 @@ client.organizations().clientGrants().list(
.includeTotals(
OptionalNullable.of(true)
)
+ .grantIds(
+ Arrays.asList("grant_ids")
+ )
.build()
);
```
@@ -27975,7 +28195,7 @@ client.roles().users().assign(
-
-Retrieves text customizations for a given self-service profile, language and Self Service SSO Flow page.
+Retrieves text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page.
@@ -28045,7 +28265,7 @@ client.selfServiceProfiles().customText().list("id", SelfServiceProfileCustomTex
-
-Updates text customizations for a given self-service profile, language and Self Service SSO Flow page.
+Updates text customizations for a given self-service profile, language and Self-Service Enterprise Configuration flow page.
@@ -28131,7 +28351,7 @@ client.selfServiceProfiles().customText().set(
-
-Creates an SSO access ticket to initiate the Self Service SSO Flow using a self-service profile.
+Creates an access ticket to initiate the Self-Service Enterprise Configuration flow using a self-service profile.
@@ -28174,7 +28394,7 @@ client.selfServiceProfiles().ssoTicket().create(
-
-**connectionId:** `Optional` — If provided, this will allow editing of the provided connection during the SSO Flow
+**connectionId:** `Optional` — If provided, this will allow editing of the provided connection during the Self-Service Enterprise Configuration flow
@@ -28262,7 +28482,7 @@ client.selfServiceProfiles().ssoTicket().create(
-
-Revokes an SSO access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service SSO session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required.
+Revokes a Self-Service Enterprise Configuration access ticket and invalidates associated sessions. The ticket will no longer be accepted to initiate a Self-Service Enterprise Configuration session. If any users have already started a session through this ticket, their session will be terminated. Clients should expect a `202 Accepted` response upon successful processing, indicating that the request has been acknowledged and that the revocation is underway but may not be fully completed at the time of response. If the specified ticket does not exist, a `202 Accepted` response is also returned, signaling that no further action is required.
Clients should treat these `202` responses as an acknowledgment that the request has been accepted and is in progress, even if the ticket was not found.
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncEventsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncEventsClient.java
new file mode 100644
index 000000000..c3a0b4634
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/AsyncEventsClient.java
@@ -0,0 +1,59 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt;
+
+import com.auth0.client.mgmt.core.ClientOptions;
+import com.auth0.client.mgmt.core.RequestOptions;
+import com.auth0.client.mgmt.types.EventStreamSubscribeEventsResponseContent;
+import com.auth0.client.mgmt.types.SubscribeEventsRequestParameters;
+import java.util.concurrent.CompletableFuture;
+
+public class AsyncEventsClient {
+ protected final ClientOptions clientOptions;
+
+ private final AsyncRawEventsClient rawClient;
+
+ public AsyncEventsClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ this.rawClient = new AsyncRawEventsClient(clientOptions);
+ }
+
+ /**
+ * Get responses with HTTP metadata like headers
+ */
+ public AsyncRawEventsClient withRawResponse() {
+ return this.rawClient;
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture> subscribe() {
+ return this.rawClient.subscribe().thenApply(response -> response.body());
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture> subscribe(
+ RequestOptions requestOptions) {
+ return this.rawClient.subscribe(requestOptions).thenApply(response -> response.body());
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture> subscribe(
+ SubscribeEventsRequestParameters request) {
+ return this.rawClient.subscribe(request).thenApply(response -> response.body());
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture> subscribe(
+ SubscribeEventsRequestParameters request, RequestOptions requestOptions) {
+ return this.rawClient.subscribe(request, requestOptions).thenApply(response -> response.body());
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java
index eb0f4e9e9..57bb605ae 100644
--- a/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java
+++ b/src/main/java/com/auth0/client/mgmt/AsyncManagementApi.java
@@ -38,6 +38,8 @@ public class AsyncManagementApi {
protected final Supplier eventStreamsClient;
+ protected final Supplier eventsClient;
+
protected final Supplier flowsClient;
protected final Supplier formsClient;
@@ -116,6 +118,7 @@ public AsyncManagementApi(ClientOptions clientOptions) {
this.deviceCredentialsClient = Suppliers.memoize(() -> new AsyncDeviceCredentialsClient(clientOptions));
this.emailTemplatesClient = Suppliers.memoize(() -> new AsyncEmailTemplatesClient(clientOptions));
this.eventStreamsClient = Suppliers.memoize(() -> new AsyncEventStreamsClient(clientOptions));
+ this.eventsClient = Suppliers.memoize(() -> new AsyncEventsClient(clientOptions));
this.flowsClient = Suppliers.memoize(() -> new AsyncFlowsClient(clientOptions));
this.formsClient = Suppliers.memoize(() -> new AsyncFormsClient(clientOptions));
this.userGrantsClient = Suppliers.memoize(() -> new AsyncUserGrantsClient(clientOptions));
@@ -191,6 +194,10 @@ public AsyncEventStreamsClient eventStreams() {
return this.eventStreamsClient.get();
}
+ public AsyncEventsClient events() {
+ return this.eventsClient.get();
+ }
+
public AsyncFlowsClient flows() {
return this.flowsClient.get();
}
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java
new file mode 100644
index 000000000..261c6a665
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/AsyncRawEventsClient.java
@@ -0,0 +1,171 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt;
+
+import com.auth0.client.mgmt.core.ClientOptions;
+import com.auth0.client.mgmt.core.ManagementApiException;
+import com.auth0.client.mgmt.core.ManagementApiHttpResponse;
+import com.auth0.client.mgmt.core.ManagementException;
+import com.auth0.client.mgmt.core.ObjectMappers;
+import com.auth0.client.mgmt.core.QueryStringMapper;
+import com.auth0.client.mgmt.core.RequestOptions;
+import com.auth0.client.mgmt.core.ResponseBodyReader;
+import com.auth0.client.mgmt.core.Stream;
+import com.auth0.client.mgmt.errors.BadRequestError;
+import com.auth0.client.mgmt.errors.ForbiddenError;
+import com.auth0.client.mgmt.errors.GoneError;
+import com.auth0.client.mgmt.errors.NotFoundError;
+import com.auth0.client.mgmt.errors.TooManyRequestsError;
+import com.auth0.client.mgmt.errors.UnauthorizedError;
+import com.auth0.client.mgmt.types.EventStreamSubscribeEventsResponseContent;
+import com.auth0.client.mgmt.types.SubscribeEventsRequestParameters;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import java.io.IOException;
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.TimeUnit;
+import okhttp3.Call;
+import okhttp3.Callback;
+import okhttp3.Headers;
+import okhttp3.HttpUrl;
+import okhttp3.OkHttpClient;
+import okhttp3.Request;
+import okhttp3.Response;
+import okhttp3.ResponseBody;
+import org.jetbrains.annotations.NotNull;
+
+public class AsyncRawEventsClient {
+ protected final ClientOptions clientOptions;
+
+ public AsyncRawEventsClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture>>
+ subscribe() {
+ return subscribe(SubscribeEventsRequestParameters.builder().build());
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture>> subscribe(
+ RequestOptions requestOptions) {
+ return subscribe(SubscribeEventsRequestParameters.builder().build(), requestOptions);
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture>> subscribe(
+ SubscribeEventsRequestParameters request) {
+ return subscribe(request, null);
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public CompletableFuture>> subscribe(
+ SubscribeEventsRequestParameters request, RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("events");
+ if (!request.getFrom().isAbsent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "from", request.getFrom().orElse(null), false);
+ }
+ if (!request.getFromTimestamp().isAbsent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "from_timestamp", request.getFromTimestamp().orElse(null), false);
+ }
+ if (request.getEventType().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "event_type", request.getEventType().get(), true);
+ }
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ Request.Builder _requestBuilder = new Request.Builder()
+ .url(httpUrl.build())
+ .method("GET", null)
+ .headers(Headers.of(clientOptions.headers(requestOptions)));
+ Request okhttpRequest = _requestBuilder.build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ client = client.newBuilder().callTimeout(0, TimeUnit.SECONDS).build();
+ CompletableFuture>> future =
+ new CompletableFuture<>();
+ client.newCall(okhttpRequest).enqueue(new Callback() {
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try {
+ ResponseBody responseBody = response.body();
+ if (response.isSuccessful()) {
+ future.complete(new ManagementApiHttpResponse<>(
+ Stream.fromSse(
+ EventStreamSubscribeEventsResponseContent.class,
+ new ResponseBodyReader(response)),
+ response));
+ return;
+ }
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ try {
+ switch (response.code()) {
+ case 400:
+ future.completeExceptionally(new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 401:
+ future.completeExceptionally(new UnauthorizedError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 403:
+ future.completeExceptionally(new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 404:
+ future.completeExceptionally(new NotFoundError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 410:
+ future.completeExceptionally(new GoneError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 429:
+ future.completeExceptionally(new TooManyRequestsError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ future.completeExceptionally(new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response));
+ return;
+ } catch (IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ }
+
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ });
+ return future;
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java
index b9614f969..ae7a84603 100644
--- a/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/AsyncRawGroupsClient.java
@@ -85,6 +85,10 @@ public CompletableFuture>> l
QueryStringMapper.addQueryParameter(
httpUrl, "external_id", request.getExternalId().orElse(null), false);
}
+ if (!request.getSearch().isAbsent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "search", request.getSearch().orElse(null), false);
+ }
if (!request.getFields().isAbsent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "fields", request.getFields().orElse(null), false);
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java
index df2ccb09e..db4915293 100644
--- a/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java
+++ b/src/main/java/com/auth0/client/mgmt/AsyncRawRefreshTokensClient.java
@@ -21,6 +21,7 @@
import com.auth0.client.mgmt.types.GetRefreshTokensPaginatedResponseContent;
import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters;
import com.auth0.client.mgmt.types.RefreshTokenResponseContent;
+import com.auth0.client.mgmt.types.RevokeRefreshTokensRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent;
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -176,6 +177,111 @@ public void onFailure(@NotNull Call call, @NotNull IOException e) {
return future;
}
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture> revoke() {
+ return revoke(RevokeRefreshTokensRequestContent.builder().build());
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture> revoke(RequestOptions requestOptions) {
+ return revoke(RevokeRefreshTokensRequestContent.builder().build(), requestOptions);
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture> revoke(RevokeRefreshTokensRequestContent request) {
+ return revoke(request, null);
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture> revoke(
+ RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("refresh-tokens/revoke");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ RequestBody body;
+ try {
+ body = RequestBody.create(
+ ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON);
+ } catch (JsonProcessingException e) {
+ throw new ManagementException("Failed to serialize request", e);
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("POST", body)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Content-Type", "application/json")
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ CompletableFuture> future = new CompletableFuture<>();
+ client.newCall(okhttpRequest).enqueue(new Callback() {
+ @Override
+ public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
+ try (ResponseBody responseBody = response.body()) {
+ if (response.isSuccessful()) {
+ future.complete(new ManagementApiHttpResponse<>(null, response));
+ return;
+ }
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ try {
+ switch (response.code()) {
+ case 400:
+ future.completeExceptionally(new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 401:
+ future.completeExceptionally(new UnauthorizedError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 403:
+ future.completeExceptionally(new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ case 429:
+ future.completeExceptionally(new TooManyRequestsError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class),
+ response));
+ return;
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ future.completeExceptionally(new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response));
+ return;
+ } catch (IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ }
+
+ @Override
+ public void onFailure(@NotNull Call call, @NotNull IOException e) {
+ future.completeExceptionally(new ManagementException("Network error executing HTTP request", e));
+ }
+ });
+ return future;
+ }
+
/**
* Retrieve refresh token information.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java
index 631db7f3a..85d9082d3 100644
--- a/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java
+++ b/src/main/java/com/auth0/client/mgmt/AsyncRefreshTokensClient.java
@@ -9,6 +9,7 @@
import com.auth0.client.mgmt.types.GetRefreshTokenResponseContent;
import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters;
import com.auth0.client.mgmt.types.RefreshTokenResponseContent;
+import com.auth0.client.mgmt.types.RevokeRefreshTokensRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent;
import java.util.concurrent.CompletableFuture;
@@ -46,6 +47,34 @@ public CompletableFuture> list(
return this.rawClient.list(request, requestOptions).thenApply(response -> response.body());
}
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture revoke() {
+ return this.rawClient.revoke().thenApply(response -> response.body());
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture revoke(RequestOptions requestOptions) {
+ return this.rawClient.revoke(requestOptions).thenApply(response -> response.body());
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture revoke(RevokeRefreshTokensRequestContent request) {
+ return this.rawClient.revoke(request).thenApply(response -> response.body());
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public CompletableFuture revoke(RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) {
+ return this.rawClient.revoke(request, requestOptions).thenApply(response -> response.body());
+ }
+
/**
* Retrieve refresh token information.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/EventsClient.java b/src/main/java/com/auth0/client/mgmt/EventsClient.java
new file mode 100644
index 000000000..5e57a5b85
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/EventsClient.java
@@ -0,0 +1,56 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt;
+
+import com.auth0.client.mgmt.core.ClientOptions;
+import com.auth0.client.mgmt.core.RequestOptions;
+import com.auth0.client.mgmt.types.EventStreamSubscribeEventsResponseContent;
+import com.auth0.client.mgmt.types.SubscribeEventsRequestParameters;
+
+public class EventsClient {
+ protected final ClientOptions clientOptions;
+
+ private final RawEventsClient rawClient;
+
+ public EventsClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ this.rawClient = new RawEventsClient(clientOptions);
+ }
+
+ /**
+ * Get responses with HTTP metadata like headers
+ */
+ public RawEventsClient withRawResponse() {
+ return this.rawClient;
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public Iterable subscribe() {
+ return this.rawClient.subscribe().body();
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public Iterable subscribe(RequestOptions requestOptions) {
+ return this.rawClient.subscribe(requestOptions).body();
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public Iterable subscribe(SubscribeEventsRequestParameters request) {
+ return this.rawClient.subscribe(request).body();
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public Iterable subscribe(
+ SubscribeEventsRequestParameters request, RequestOptions requestOptions) {
+ return this.rawClient.subscribe(request, requestOptions).body();
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/ManagementApi.java b/src/main/java/com/auth0/client/mgmt/ManagementApi.java
index f327c483e..febfb2b8c 100644
--- a/src/main/java/com/auth0/client/mgmt/ManagementApi.java
+++ b/src/main/java/com/auth0/client/mgmt/ManagementApi.java
@@ -38,6 +38,8 @@ public class ManagementApi {
protected final Supplier eventStreamsClient;
+ protected final Supplier eventsClient;
+
protected final Supplier flowsClient;
protected final Supplier formsClient;
@@ -116,6 +118,7 @@ public ManagementApi(ClientOptions clientOptions) {
this.deviceCredentialsClient = Suppliers.memoize(() -> new DeviceCredentialsClient(clientOptions));
this.emailTemplatesClient = Suppliers.memoize(() -> new EmailTemplatesClient(clientOptions));
this.eventStreamsClient = Suppliers.memoize(() -> new EventStreamsClient(clientOptions));
+ this.eventsClient = Suppliers.memoize(() -> new EventsClient(clientOptions));
this.flowsClient = Suppliers.memoize(() -> new FlowsClient(clientOptions));
this.formsClient = Suppliers.memoize(() -> new FormsClient(clientOptions));
this.userGrantsClient = Suppliers.memoize(() -> new UserGrantsClient(clientOptions));
@@ -191,6 +194,10 @@ public EventStreamsClient eventStreams() {
return this.eventStreamsClient.get();
}
+ public EventsClient events() {
+ return this.eventsClient.get();
+ }
+
public FlowsClient flows() {
return this.flowsClient.get();
}
diff --git a/src/main/java/com/auth0/client/mgmt/RawEventsClient.java b/src/main/java/com/auth0/client/mgmt/RawEventsClient.java
new file mode 100644
index 000000000..63ec6d1d5
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/RawEventsClient.java
@@ -0,0 +1,139 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt;
+
+import com.auth0.client.mgmt.core.ClientOptions;
+import com.auth0.client.mgmt.core.ManagementApiException;
+import com.auth0.client.mgmt.core.ManagementApiHttpResponse;
+import com.auth0.client.mgmt.core.ManagementException;
+import com.auth0.client.mgmt.core.ObjectMappers;
+import com.auth0.client.mgmt.core.QueryStringMapper;
+import com.auth0.client.mgmt.core.RequestOptions;
+import com.auth0.client.mgmt.core.ResponseBodyReader;
+import com.auth0.client.mgmt.core.Stream;
+import com.auth0.client.mgmt.errors.BadRequestError;
+import com.auth0.client.mgmt.errors.ForbiddenError;
+import com.auth0.client.mgmt.errors.GoneError;
+import com.auth0.client.mgmt.errors.NotFoundError;
+import com.auth0.client.mgmt.errors.TooManyRequestsError;
+import com.auth0.client.mgmt.errors.UnauthorizedError;
+import com.auth0.client.mgmt.types.EventStreamSubscribeEventsResponseContent;
+import com.auth0.client.mgmt.types.SubscribeEventsRequestParameters;
+import com.fasterxml.jackson.core.JsonProcessingException;
+import java.io.IOException;
+import java.util.concurrent.TimeUnit;
+import okhttp3.Headers;
+import okhttp3.HttpUrl;
+import okhttp3.OkHttpClient;
+import okhttp3.Request;
+import okhttp3.Response;
+import okhttp3.ResponseBody;
+
+public class RawEventsClient {
+ protected final ClientOptions clientOptions;
+
+ public RawEventsClient(ClientOptions clientOptions) {
+ this.clientOptions = clientOptions;
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public ManagementApiHttpResponse> subscribe() {
+ return subscribe(SubscribeEventsRequestParameters.builder().build());
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public ManagementApiHttpResponse> subscribe(
+ RequestOptions requestOptions) {
+ return subscribe(SubscribeEventsRequestParameters.builder().build(), requestOptions);
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public ManagementApiHttpResponse> subscribe(
+ SubscribeEventsRequestParameters request) {
+ return subscribe(request, null);
+ }
+
+ /**
+ * Subscribe to events via Server-Sent Events (SSE)
+ */
+ public ManagementApiHttpResponse> subscribe(
+ SubscribeEventsRequestParameters request, RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("events");
+ if (!request.getFrom().isAbsent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "from", request.getFrom().orElse(null), false);
+ }
+ if (!request.getFromTimestamp().isAbsent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "from_timestamp", request.getFromTimestamp().orElse(null), false);
+ }
+ if (request.getEventType().isPresent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "event_type", request.getEventType().get(), true);
+ }
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ Request.Builder _requestBuilder = new Request.Builder()
+ .url(httpUrl.build())
+ .method("GET", null)
+ .headers(Headers.of(clientOptions.headers(requestOptions)));
+ Request okhttpRequest = _requestBuilder.build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ client = client.newBuilder().callTimeout(0, TimeUnit.SECONDS).build();
+ try {
+ Response response = client.newCall(okhttpRequest).execute();
+ ResponseBody responseBody = response.body();
+ if (response.isSuccessful()) {
+ return new ManagementApiHttpResponse<>(
+ Stream.fromSse(
+ EventStreamSubscribeEventsResponseContent.class, new ResponseBodyReader(response)),
+ response);
+ }
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ try {
+ switch (response.code()) {
+ case 400:
+ throw new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 401:
+ throw new UnauthorizedError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 403:
+ throw new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 404:
+ throw new NotFoundError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 410:
+ throw new GoneError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 429:
+ throw new TooManyRequestsError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ throw new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response);
+ } catch (IOException e) {
+ throw new ManagementException("Network error executing HTTP request", e);
+ }
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java
index 2d15d2cdc..ecaac54a7 100644
--- a/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java
+++ b/src/main/java/com/auth0/client/mgmt/RawGroupsClient.java
@@ -79,6 +79,10 @@ public ManagementApiHttpResponse> list(
QueryStringMapper.addQueryParameter(
httpUrl, "external_id", request.getExternalId().orElse(null), false);
}
+ if (!request.getSearch().isAbsent()) {
+ QueryStringMapper.addQueryParameter(
+ httpUrl, "search", request.getSearch().orElse(null), false);
+ }
if (!request.getFields().isAbsent()) {
QueryStringMapper.addQueryParameter(
httpUrl, "fields", request.getFields().orElse(null), false);
diff --git a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java
index c4e48741c..690282371 100644
--- a/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java
+++ b/src/main/java/com/auth0/client/mgmt/RawRefreshTokensClient.java
@@ -21,6 +21,7 @@
import com.auth0.client.mgmt.types.GetRefreshTokensPaginatedResponseContent;
import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters;
import com.auth0.client.mgmt.types.RefreshTokenResponseContent;
+import com.auth0.client.mgmt.types.RevokeRefreshTokensRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent;
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -141,6 +142,90 @@ public ManagementApiHttpResponse
}
}
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public ManagementApiHttpResponse revoke() {
+ return revoke(RevokeRefreshTokensRequestContent.builder().build());
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public ManagementApiHttpResponse revoke(RequestOptions requestOptions) {
+ return revoke(RevokeRefreshTokensRequestContent.builder().build(), requestOptions);
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public ManagementApiHttpResponse revoke(RevokeRefreshTokensRequestContent request) {
+ return revoke(request, null);
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public ManagementApiHttpResponse revoke(
+ RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) {
+ HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl())
+ .newBuilder()
+ .addPathSegments("refresh-tokens/revoke");
+ if (requestOptions != null) {
+ requestOptions.getQueryParameters().forEach((_key, _value) -> {
+ httpUrl.addQueryParameter(_key, _value);
+ });
+ }
+ RequestBody body;
+ try {
+ body = RequestBody.create(
+ ObjectMappers.JSON_MAPPER.writeValueAsBytes(request), MediaTypes.APPLICATION_JSON);
+ } catch (JsonProcessingException e) {
+ throw new ManagementException("Failed to serialize request", e);
+ }
+ Request okhttpRequest = new Request.Builder()
+ .url(httpUrl.build())
+ .method("POST", body)
+ .headers(Headers.of(clientOptions.headers(requestOptions)))
+ .addHeader("Content-Type", "application/json")
+ .addHeader("Accept", "application/json")
+ .build();
+ OkHttpClient client = clientOptions.httpClient();
+ if (requestOptions != null && requestOptions.getTimeout().isPresent()) {
+ client = clientOptions.httpClientWithTimeout(requestOptions);
+ }
+ try (Response response = client.newCall(okhttpRequest).execute()) {
+ ResponseBody responseBody = response.body();
+ if (response.isSuccessful()) {
+ return new ManagementApiHttpResponse<>(null, response);
+ }
+ String responseBodyString = responseBody != null ? responseBody.string() : "{}";
+ try {
+ switch (response.code()) {
+ case 400:
+ throw new BadRequestError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 401:
+ throw new UnauthorizedError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 403:
+ throw new ForbiddenError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ case 429:
+ throw new TooManyRequestsError(
+ ObjectMappers.JSON_MAPPER.readValue(responseBodyString, Object.class), response);
+ }
+ } catch (JsonProcessingException ignored) {
+ // unable to map error response, throwing generic error
+ }
+ Object errorBody = ObjectMappers.parseErrorBody(responseBodyString);
+ throw new ManagementApiException(
+ "Error with status code " + response.code(), response.code(), errorBody, response);
+ } catch (IOException e) {
+ throw new ManagementException("Network error executing HTTP request", e);
+ }
+ }
+
/**
* Retrieve refresh token information.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java
index 18fe75675..933703f02 100644
--- a/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java
+++ b/src/main/java/com/auth0/client/mgmt/RefreshTokensClient.java
@@ -9,6 +9,7 @@
import com.auth0.client.mgmt.types.GetRefreshTokenResponseContent;
import com.auth0.client.mgmt.types.GetRefreshTokensRequestParameters;
import com.auth0.client.mgmt.types.RefreshTokenResponseContent;
+import com.auth0.client.mgmt.types.RevokeRefreshTokensRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenRequestContent;
import com.auth0.client.mgmt.types.UpdateRefreshTokenResponseContent;
@@ -44,6 +45,34 @@ public SyncPagingIterable list(
return this.rawClient.list(request, requestOptions).body();
}
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public void revoke() {
+ this.rawClient.revoke().body();
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public void revoke(RequestOptions requestOptions) {
+ this.rawClient.revoke(requestOptions).body();
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public void revoke(RevokeRefreshTokensRequestContent request) {
+ this.rawClient.revoke(request).body();
+ }
+
+ /**
+ * Revoke refresh tokens in bulk by ID list, user, user+client, or client.
+ */
+ public void revoke(RevokeRefreshTokensRequestContent request, RequestOptions requestOptions) {
+ this.rawClient.revoke(request, requestOptions).body();
+ }
+
/**
* Retrieve refresh token information.
*/
diff --git a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java
index 27a295fd3..4faeaf1be 100644
--- a/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/actions/modules/types/GetActionModuleVersionsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.actions.modules.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = GetActionModuleVersionsRequestParameters.Builder.class)
@@ -42,6 +42,9 @@ private GetActionModuleVersionsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -50,6 +53,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -104,7 +110,7 @@ public Builder from(GetActionModuleVersionsRequestParameters other) {
* Use this field to request a specific page of the list results.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -123,7 +129,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -138,7 +144,7 @@ public Builder page(Nullable page) {
* The maximum number of results to be returned by the server in a single response. 20 by default.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -157,7 +163,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java
index c4e0199dd..acd2c1d25 100644
--- a/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/actions/triggers/types/ListActionTriggerBindingsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.actions.triggers.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListActionTriggerBindingsRequestParameters.Builder.class)
@@ -42,6 +42,9 @@ private ListActionTriggerBindingsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -50,6 +53,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -104,7 +110,7 @@ public Builder from(ListActionTriggerBindingsRequestParameters other) {
* Use this field to request a specific page of the list results.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -123,7 +129,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -138,7 +144,7 @@ public Builder page(Nullable page) {
* The maximum number of results to be returned in a single request. 20 by default
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -157,7 +163,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java
index 7806abdf9..d827711cd 100644
--- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModuleActionsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.actions.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = GetActionModuleActionsRequestParameters.Builder.class)
@@ -42,6 +42,9 @@ private GetActionModuleActionsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -50,6 +53,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -104,7 +110,7 @@ public Builder from(GetActionModuleActionsRequestParameters other) {
* Page index of the results to return. First page is 0.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -123,7 +129,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -138,7 +144,7 @@ public Builder page(Nullable page) {
* Number of results per page.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -157,7 +163,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java
index dcf2a6e1c..c82de9ca6 100644
--- a/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/actions/types/GetActionModulesRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.actions.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = GetActionModulesRequestParameters.Builder.class)
@@ -42,6 +42,9 @@ private GetActionModulesRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -50,6 +53,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -103,7 +109,7 @@ public Builder from(GetActionModulesRequestParameters other) {
* Page index of the results to return. First page is 0.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -122,7 +128,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -137,7 +143,7 @@ public Builder page(Nullable page) {
* Number of results per page. Paging is disabled if parameter not sent.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -156,7 +162,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java
index 687824a72..cf233fb51 100644
--- a/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/actions/types/ListActionVersionsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.actions.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListActionVersionsRequestParameters.Builder.class)
@@ -42,6 +42,9 @@ private ListActionVersionsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -50,6 +53,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -104,7 +110,7 @@ public Builder from(ListActionVersionsRequestParameters other) {
* Use this field to request a specific page of the list results.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -123,7 +129,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -138,7 +144,7 @@ public Builder page(Nullable page) {
* This field specify the maximum number of results to be returned by the server. 20 by default
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -157,7 +163,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java
index 27af098f2..62f321ec8 100644
--- a/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/clientgrants/types/ListClientGrantOrganizationsRequestParameters.java
@@ -51,6 +51,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -139,7 +142,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java
index 1823f4f25..e668020d8 100644
--- a/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java
+++ b/src/main/java/com/auth0/client/mgmt/clients/types/ConnectionsGetRequest.java
@@ -79,6 +79,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -231,7 +234,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java
index a6fa3db06..8dd7953d1 100644
--- a/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/connections/types/GetConnectionEnabledClientsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.connections.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = GetConnectionEnabledClientsRequestParameters.Builder.class)
@@ -40,6 +40,9 @@ private GetConnectionEnabledClientsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -105,7 +108,7 @@ public Builder from(GetConnectionEnabledClientsRequestParameters other) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
@@ -124,7 +127,7 @@ public Builder take(Optional take) {
return this;
}
- public Builder take(Nullable take) {
+ public Builder take(com.auth0.client.mgmt.core.Nullable take) {
if (take.isNull()) {
this.take = OptionalNullable.ofNull();
} else if (take.isEmpty()) {
@@ -139,7 +142,7 @@ public Builder take(Nullable take) {
* Optional Id from which to start selection.
*/
@JsonSetter(value = "from", nulls = Nulls.SKIP)
- public Builder from(@org.jetbrains.annotations.Nullable OptionalNullable from) {
+ public Builder from(@Nullable OptionalNullable from) {
this.from = from;
return this;
}
@@ -158,7 +161,7 @@ public Builder from(Optional from) {
return this;
}
- public Builder from(Nullable from) {
+ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
if (from.isNull()) {
this.from = OptionalNullable.ofNull();
} else if (from.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java
index 890ef17f3..839553d4c 100644
--- a/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListDirectoryProvisioningsRequestParameters.java
@@ -51,6 +51,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -139,7 +142,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java
index 86db8187b..b881a833d 100644
--- a/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListScimConfigurationsRequestParameters.java
@@ -51,6 +51,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -139,7 +142,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java
index f9c9c6a74..e25018aba 100644
--- a/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/connections/types/ListSynchronizedGroupsRequestParameters.java
@@ -51,6 +51,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -139,7 +142,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/errors/GoneError.java b/src/main/java/com/auth0/client/mgmt/errors/GoneError.java
new file mode 100644
index 000000000..7cc45cfe7
--- /dev/null
+++ b/src/main/java/com/auth0/client/mgmt/errors/GoneError.java
@@ -0,0 +1,32 @@
+/**
+ * This file was auto-generated by Fern from our API Definition.
+ */
+package com.auth0.client.mgmt.errors;
+
+import com.auth0.client.mgmt.core.ManagementApiException;
+import okhttp3.Response;
+
+public final class GoneError extends ManagementApiException {
+ /**
+ * The body of the response that triggered the exception.
+ */
+ private final Object body;
+
+ public GoneError(Object body) {
+ super("GoneError", 410, body);
+ this.body = body;
+ }
+
+ public GoneError(Object body, Response rawResponse) {
+ super("GoneError", 410, body, rawResponse);
+ this.body = body;
+ }
+
+ /**
+ * @return the body
+ */
+ @java.lang.Override
+ public Object body() {
+ return this.body;
+ }
+}
diff --git a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java
index 500d21996..b34bbe28e 100644
--- a/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/eventstreams/types/ListEventStreamDeliveriesRequestParameters.java
@@ -113,6 +113,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -354,7 +357,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java
index e1cc0b104..7faee5d0a 100644
--- a/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/flows/types/ListFlowExecutionsRequestParameters.java
@@ -51,6 +51,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -139,7 +142,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java
index 690b12e60..522da4a41 100644
--- a/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/flows/vault/types/ListFlowsVaultConnectionsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.flows.vault.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListFlowsVaultConnectionsRequestParameters.Builder.class)
@@ -46,6 +46,9 @@ private ListFlowsVaultConnectionsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -54,6 +57,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -62,6 +68,9 @@ public OptionalNullable getPerPage() {
*/
@JsonIgnore
public OptionalNullable getIncludeTotals() {
+ if (includeTotals == null) {
+ return OptionalNullable.absent();
+ }
return includeTotals;
}
@@ -119,7 +128,7 @@ public Builder from(ListFlowsVaultConnectionsRequestParameters other) {
* Page index of the results to return. First page is 0.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -138,7 +147,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -153,7 +162,7 @@ public Builder page(Nullable page) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -172,7 +181,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
@@ -187,7 +196,7 @@ public Builder perPage(Nullable perPage) {
* Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
*/
@JsonSetter(value = "include_totals", nulls = Nulls.SKIP)
- public Builder includeTotals(OptionalNullable includeTotals) {
+ public Builder includeTotals(@Nullable OptionalNullable includeTotals) {
this.includeTotals = includeTotals;
return this;
}
@@ -206,7 +215,7 @@ public Builder includeTotals(Optional includeTotals) {
return this;
}
- public Builder includeTotals(Nullable includeTotals) {
+ public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includeTotals) {
if (includeTotals.isNull()) {
this.includeTotals = OptionalNullable.ofNull();
} else if (includeTotals.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java
index 6f4e572bd..9a9e524e9 100644
--- a/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/groups/types/GetGroupMembersRequestParameters.java
@@ -83,6 +83,9 @@ public OptionalNullable getFrom() {
*/
@JsonIgnore
public OptionalNullable getTake() {
+ if (take == null) {
+ return OptionalNullable.absent();
+ }
return take;
}
@@ -247,7 +250,7 @@ public Builder from(com.auth0.client.mgmt.core.Nullable from) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "take", nulls = Nulls.SKIP)
- public Builder take(OptionalNullable take) {
+ public Builder take(@Nullable OptionalNullable take) {
this.take = take;
return this;
}
diff --git a/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java b/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java
index 234a856c7..2f9d812bc 100644
--- a/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java
+++ b/src/main/java/com/auth0/client/mgmt/jobs/types/ErrorsGetResponse.java
@@ -15,6 +15,7 @@
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import java.io.IOException;
import java.util.List;
+import java.util.Map;
import java.util.Objects;
@JsonDeserialize(using = ErrorsGetResponse.Deserializer.class)
@@ -90,9 +91,14 @@ public ErrorsGetResponse deserialize(JsonParser p, DeserializationContext contex
value, new TypeReference>() {}));
} catch (RuntimeException e) {
}
- try {
- return of(ObjectMappers.JSON_MAPPER.convertValue(value, GetJobGenericErrorResponseContent.class));
- } catch (RuntimeException e) {
+ if (value instanceof Map, ?>
+ && ((Map, ?>) value).containsKey("status")
+ && ((Map, ?>) value).containsKey("type")
+ && ((Map, ?>) value).containsKey("id")) {
+ try {
+ return of(ObjectMappers.JSON_MAPPER.convertValue(value, GetJobGenericErrorResponseContent.class));
+ } catch (RuntimeException e) {
+ }
}
throw new JsonParseException(p, "Failed to deserialize");
}
diff --git a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java
index 84012b673..bc9d6bde0 100644
--- a/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/keys/types/ListEncryptionKeysRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.keys.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListEncryptionKeysRequestParameters.Builder.class)
@@ -46,6 +46,9 @@ private ListEncryptionKeysRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -54,6 +57,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -62,6 +68,9 @@ public OptionalNullable getPerPage() {
*/
@JsonIgnore
public OptionalNullable getIncludeTotals() {
+ if (includeTotals == null) {
+ return OptionalNullable.absent();
+ }
return includeTotals;
}
@@ -119,7 +128,7 @@ public Builder from(ListEncryptionKeysRequestParameters other) {
* Page index of the results to return. First page is 0.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -138,7 +147,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -153,7 +162,7 @@ public Builder page(Nullable page) {
* Number of results per page. Default value is 50, maximum value is 100.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -172,7 +181,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
@@ -187,7 +196,7 @@ public Builder perPage(Nullable perPage) {
* Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
*/
@JsonSetter(value = "include_totals", nulls = Nulls.SKIP)
- public Builder includeTotals(OptionalNullable includeTotals) {
+ public Builder includeTotals(@Nullable OptionalNullable includeTotals) {
this.includeTotals = includeTotals;
return this;
}
@@ -206,7 +215,7 @@ public Builder includeTotals(Optional includeTotals) {
return this;
}
- public Builder includeTotals(Nullable includeTotals) {
+ public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includeTotals) {
if (includeTotals.isNull()) {
this.includeTotals = OptionalNullable.ofNull();
} else if (includeTotals.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java
index c0042b8a3..feabe2eaa 100644
--- a/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/organizations/members/types/ListOrganizationMemberRolesRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.organizations.members.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListOrganizationMemberRolesRequestParameters.Builder.class)
@@ -46,6 +46,9 @@ private ListOrganizationMemberRolesRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -54,6 +57,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -62,6 +68,9 @@ public OptionalNullable getPerPage() {
*/
@JsonIgnore
public OptionalNullable getIncludeTotals() {
+ if (includeTotals == null) {
+ return OptionalNullable.absent();
+ }
return includeTotals;
}
@@ -119,7 +128,7 @@ public Builder from(ListOrganizationMemberRolesRequestParameters other) {
* Page index of the results to return. First page is 0.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -138,7 +147,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -153,7 +162,7 @@ public Builder page(Nullable page) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -172,7 +181,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
@@ -187,7 +196,7 @@ public Builder perPage(Nullable perPage) {
* Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
*/
@JsonSetter(value = "include_totals", nulls = Nulls.SKIP)
- public Builder includeTotals(OptionalNullable includeTotals) {
+ public Builder includeTotals(@Nullable OptionalNullable includeTotals) {
this.includeTotals = includeTotals;
return this;
}
@@ -206,7 +215,7 @@ public Builder includeTotals(Optional includeTotals) {
return this;
}
- public Builder includeTotals(Nullable includeTotals) {
+ public Builder includeTotals(com.auth0.client.mgmt.core.Nullable includeTotals) {
if (includeTotals.isNull()) {
this.includeTotals = OptionalNullable.ofNull();
} else if (includeTotals.isEmpty()) {
diff --git a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java
index 418a7add1..14962022a 100644
--- a/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java
+++ b/src/main/java/com/auth0/client/mgmt/organizations/types/ListOrganizationAllConnectionsRequestParameters.java
@@ -3,7 +3,6 @@
*/
package com.auth0.client.mgmt.organizations.types;
-import com.auth0.client.mgmt.core.Nullable;
import com.auth0.client.mgmt.core.ObjectMappers;
import com.auth0.client.mgmt.core.OptionalNullable;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
@@ -18,6 +17,7 @@
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
+import org.jetbrains.annotations.Nullable;
@JsonInclude(JsonInclude.Include.NON_ABSENT)
@JsonDeserialize(builder = ListOrganizationAllConnectionsRequestParameters.Builder.class)
@@ -50,6 +50,9 @@ private ListOrganizationAllConnectionsRequestParameters(
*/
@JsonIgnore
public OptionalNullable getPage() {
+ if (page == null) {
+ return OptionalNullable.absent();
+ }
return page;
}
@@ -58,6 +61,9 @@ public OptionalNullable getPage() {
*/
@JsonIgnore
public OptionalNullable getPerPage() {
+ if (perPage == null) {
+ return OptionalNullable.absent();
+ }
return perPage;
}
@@ -66,6 +72,9 @@ public OptionalNullable getPerPage() {
*/
@JsonIgnore
public OptionalNullable getIncludeTotals() {
+ if (includeTotals == null) {
+ return OptionalNullable.absent();
+ }
return includeTotals;
}
@@ -140,7 +149,7 @@ public Builder from(ListOrganizationAllConnectionsRequestParameters other) {
* Page index of the results to return. First page is 0.
*/
@JsonSetter(value = "page", nulls = Nulls.SKIP)
- public Builder page(OptionalNullable page) {
+ public Builder page(@Nullable OptionalNullable page) {
this.page = page;
return this;
}
@@ -159,7 +168,7 @@ public Builder page(Optional page) {
return this;
}
- public Builder page(Nullable page) {
+ public Builder page(com.auth0.client.mgmt.core.Nullable page) {
if (page.isNull()) {
this.page = OptionalNullable.ofNull();
} else if (page.isEmpty()) {
@@ -174,7 +183,7 @@ public Builder page(Nullable page) {
* Number of results per page. Defaults to 50.
*/
@JsonSetter(value = "per_page", nulls = Nulls.SKIP)
- public Builder perPage(OptionalNullable perPage) {
+ public Builder perPage(@Nullable OptionalNullable perPage) {
this.perPage = perPage;
return this;
}
@@ -193,7 +202,7 @@ public Builder perPage(Optional perPage) {
return this;
}
- public Builder perPage(Nullable perPage) {
+ public Builder perPage(com.auth0.client.mgmt.core.Nullable perPage) {
if (perPage.isNull()) {
this.perPage = OptionalNullable.ofNull();
} else if (perPage.isEmpty()) {
@@ -208,7 +217,7 @@ public Builder perPage(Nullable perPage) {
* Return results inside an object that contains the total result count (true) or as a direct array of results (false, default).
*/
@JsonSetter(value = "include_totals", nulls = Nulls.SKIP)
- public Builder includeTotals(OptionalNullable includeTotals) {
+ public Builder includeTotals(@Nullable OptionalNullable includeTotals) {
this.includeTotals = includeTotals;
return this;
}
@@ -227,7 +236,7 @@ public Builder includeTotals(Optional