diff --git a/.fern/replay.lock b/.fern/replay.lock index c3d67fb73..82885b510 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -6,5 +6,11 @@ generations: timestamp: 2026-05-12T04:52:50.433Z cli_version: unknown generator_versions: {} -current_generation: 2b1bf29d9d52526f3bf1c900c8d13afd4aa2b0cf + - commit_sha: ae4f5b4b9ca18d966278c4113e89b85e607973cc + tree_hash: 334f54e3127b6fd33e59e6e6b7a41d87f4e12661 + timestamp: 2026-07-09T05:44:02.868Z + cli_version: unknown + generator_versions: + fernapi/fern-java-sdk: 4.6.3 +current_generation: ae4f5b4b9ca18d966278c4113e89b85e607973cc patches: [] diff --git a/reference.md b/reference.md index 18e66e02b..3767b8311 100644 --- a/reference.md +++ b/reference.md @@ -5520,7 +5520,7 @@ client.eventStreams().test( "id", CreateEventStreamTestEventRequestContent .builder() - .eventType(EventStreamTestEventTypeEnum.GROUP_CREATED) + .eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED) .build() ); ``` @@ -5603,7 +5603,7 @@ client.events().subscribe( OptionalNullable.of("from_timestamp") ) .eventType( - Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED) + Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED) ) .build() ); @@ -8989,6 +8989,14 @@ client.organizations().create( **tokenQuota:** `Optional` + + + +
+
+ +**thirdPartyClientAccess:** `Optional` +
@@ -9252,6 +9260,14 @@ client.organizations().update( **tokenQuota:** `Optional` + + + +
+
+ +**thirdPartyClientAccess:** `Optional` +
@@ -28128,6 +28144,119 @@ client.organizations().members().effectiveRoles().sources().groups().list( + + + + +## Organizations Roles Members +
client.organizations.roles.members.list(id, roleId) -> SyncPagingIterable<RoleMember> +
+
+ +#### 📝 Description + +
+
+ +
+
+ +List the organization members assigned a specific role within the context of an organization. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```java +client.organizations().roles().members().list( + "id", + "role_id", + ListOrganizationRoleMembersRequestParameters + .builder() + .from( + OptionalNullable.of("from") + ) + .take( + OptionalNullable.of(1) + ) + .fields( + OptionalNullable.of("fields") + ) + .includeFields( + OptionalNullable.of(true) + ) + .build() +); +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — ID of the organization. + +
+
+ +
+
+ +**roleId:** `String` — ID of the role to retrieve the assigned members for. + +
+
+ +
+
+ +**from:** `Optional` — Optional Id from which to start selection. + +
+
+ +
+
+ +**take:** `Optional` — Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. + +
+
+ +
+
+ +**fields:** `Optional` — Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + +
+
+ +
+
+ +**includeFields:** `Optional` — Whether specified fields are to be included (true) or excluded (false). Defaults to true. + +
+
+
+
+ +
diff --git a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java index c5d659e08..1fba755ac 100644 --- a/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/AsyncOrganizationsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.organizations.AsyncGroupsClient; import com.auth0.client.mgmt.organizations.AsyncInvitationsClient; import com.auth0.client.mgmt.organizations.AsyncMembersClient; +import com.auth0.client.mgmt.organizations.roles.AsyncRolesClient; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent; @@ -44,6 +45,8 @@ public class AsyncOrganizationsClient { protected final Supplier groupsClient; + protected final Supplier rolesClient; + public AsyncOrganizationsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new AsyncRawOrganizationsClient(clientOptions); @@ -54,6 +57,7 @@ public AsyncOrganizationsClient(ClientOptions clientOptions) { this.invitationsClient = Suppliers.memoize(() -> new AsyncInvitationsClient(clientOptions)); this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new AsyncGroupsClient(clientOptions)); + this.rolesClient = Suppliers.memoize(() -> new AsyncRolesClient(clientOptions)); } /** @@ -261,4 +265,8 @@ public AsyncMembersClient members() { public AsyncGroupsClient groups() { return this.groupsClient.get(); } + + public AsyncRolesClient roles() { + return this.rolesClient.get(); + } } diff --git a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java index 21d5b75eb..74ed88d6e 100644 --- a/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java +++ b/src/main/java/com/auth0/client/mgmt/OrganizationsClient.java @@ -14,6 +14,7 @@ import com.auth0.client.mgmt.organizations.GroupsClient; import com.auth0.client.mgmt.organizations.InvitationsClient; import com.auth0.client.mgmt.organizations.MembersClient; +import com.auth0.client.mgmt.organizations.roles.RolesClient; import com.auth0.client.mgmt.types.CreateOrganizationRequestContent; import com.auth0.client.mgmt.types.CreateOrganizationResponseContent; import com.auth0.client.mgmt.types.GetOrganizationByNameResponseContent; @@ -43,6 +44,8 @@ public class OrganizationsClient { protected final Supplier groupsClient; + protected final Supplier rolesClient; + public OrganizationsClient(ClientOptions clientOptions) { this.clientOptions = clientOptions; this.rawClient = new RawOrganizationsClient(clientOptions); @@ -53,6 +56,7 @@ public OrganizationsClient(ClientOptions clientOptions) { this.invitationsClient = Suppliers.memoize(() -> new InvitationsClient(clientOptions)); this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions)); this.groupsClient = Suppliers.memoize(() -> new GroupsClient(clientOptions)); + this.rolesClient = Suppliers.memoize(() -> new RolesClient(clientOptions)); } /** @@ -258,4 +262,8 @@ public MembersClient members() { public GroupsClient groups() { return this.groupsClient.get(); } + + public RolesClient roles() { + return this.rolesClient.get(); + } } diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java new file mode 100644 index 000000000..3363e4544 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncMembersClient.java @@ -0,0 +1,63 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.RoleMember; +import java.util.concurrent.CompletableFuture; + +public class AsyncMembersClient { + protected final ClientOptions clientOptions; + + private final AsyncRawMembersClient rawClient; + + public AsyncMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new AsyncRawMembersClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public AsyncRawMembersClient withRawResponse() { + return this.rawClient; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list(String id, String roleId) { + return this.rawClient.list(id, roleId).thenApply(response -> response.body()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list( + String id, String roleId, RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, requestOptions).thenApply(response -> response.body()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return this.rawClient.list(id, roleId, request).thenApply(response -> response.body()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture> list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, request, requestOptions).thenApply(response -> response.body()); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java new file mode 100644 index 000000000..e8655a44e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRawMembersClient.java @@ -0,0 +1,193 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +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.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +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.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.ListOrganizationRoleMembersResponseContent; +import com.auth0.client.mgmt.types.RoleMember; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +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 AsyncRawMembersClient { + protected final ClientOptions clientOptions; + + public AsyncRawMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list(String id, String roleId) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list( + String id, String roleId, RequestOptions requestOptions) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build(), + requestOptions); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return list(id, roleId, request, null); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public CompletableFuture>> list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("roles") + .addPathSegment(roleId) + .addPathSegments("members"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(true), false); + 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))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.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()) { + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListOrganizationRoleMembersResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListOrganizationRoleMembersResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListOrganizationRoleMembersRequestParameters nextRequest = + ListOrganizationRoleMembersRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getMembers(); + future.complete(new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> { + try { + return list(id, roleId, nextRequest, requestOptions) + .get() + .body(); + } catch (InterruptedException | ExecutionException e) { + throw new RuntimeException(e); + } + }), + response)); + return; + } + 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 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/organizations/roles/AsyncRolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRolesClient.java new file mode 100644 index 000000000..9144bd629 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/AsyncRolesClient.java @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.Suppliers; +import java.util.function.Supplier; + +public class AsyncRolesClient { + protected final ClientOptions clientOptions; + + protected final Supplier membersClient; + + public AsyncRolesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.membersClient = Suppliers.memoize(() -> new AsyncMembersClient(clientOptions)); + } + + public AsyncMembersClient members() { + return this.membersClient.get(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java new file mode 100644 index 000000000..510d57ae6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/MembersClient.java @@ -0,0 +1,61 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.RequestOptions; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.RoleMember; + +public class MembersClient { + protected final ClientOptions clientOptions; + + private final RawMembersClient rawClient; + + public MembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.rawClient = new RawMembersClient(clientOptions); + } + + /** + * Get responses with HTTP metadata like headers + */ + public RawMembersClient withRawResponse() { + return this.rawClient; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list(String id, String roleId) { + return this.rawClient.list(id, roleId).body(); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list(String id, String roleId, RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, requestOptions).body(); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return this.rawClient.list(id, roleId, request).body(); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public SyncPagingIterable list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + return this.rawClient.list(id, roleId, request, requestOptions).body(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java new file mode 100644 index 000000000..e78224119 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/RawMembersClient.java @@ -0,0 +1,159 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +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.SyncPagingIterable; +import com.auth0.client.mgmt.errors.BadRequestError; +import com.auth0.client.mgmt.errors.ForbiddenError; +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.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.ListOrganizationRoleMembersResponseContent; +import com.auth0.client.mgmt.types.RoleMember; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.io.IOException; +import java.util.List; +import java.util.Optional; +import okhttp3.Headers; +import okhttp3.HttpUrl; +import okhttp3.OkHttpClient; +import okhttp3.Request; +import okhttp3.Response; +import okhttp3.ResponseBody; + +public class RawMembersClient { + protected final ClientOptions clientOptions; + + public RawMembersClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list(String id, String roleId) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build()); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list( + String id, String roleId, RequestOptions requestOptions) { + return list( + id, + roleId, + ListOrganizationRoleMembersRequestParameters.builder().build(), + requestOptions); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list( + String id, String roleId, ListOrganizationRoleMembersRequestParameters request) { + return list(id, roleId, request, null); + } + + /** + * List the organization members assigned a specific role within the context of an organization. + */ + public ManagementApiHttpResponse> list( + String id, + String roleId, + ListOrganizationRoleMembersRequestParameters request, + RequestOptions requestOptions) { + HttpUrl.Builder httpUrl = HttpUrl.parse(this.clientOptions.environment().getUrl()) + .newBuilder() + .addPathSegments("organizations") + .addPathSegment(id) + .addPathSegments("roles") + .addPathSegment(roleId) + .addPathSegments("members"); + if (!request.getFrom().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "from", request.getFrom().orElse(null), false); + } + QueryStringMapper.addQueryParameter(httpUrl, "take", request.getTake().orElse(50), false); + if (!request.getFields().isAbsent()) { + QueryStringMapper.addQueryParameter( + httpUrl, "fields", request.getFields().orElse(null), false); + } + QueryStringMapper.addQueryParameter( + httpUrl, "include_fields", request.getIncludeFields().orElse(true), false); + 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))) + .addHeader("Accept", "application/json"); + Request okhttpRequest = _requestBuilder.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(); + String responseBodyString = responseBody != null ? responseBody.string() : "{}"; + if (response.isSuccessful()) { + ListOrganizationRoleMembersResponseContent parsedResponse = ObjectMappers.JSON_MAPPER.readValue( + responseBodyString, ListOrganizationRoleMembersResponseContent.class); + Optional startingAfter = parsedResponse.getNext(); + ListOrganizationRoleMembersRequestParameters nextRequest = + ListOrganizationRoleMembersRequestParameters.builder() + .from(request) + .from(startingAfter) + .build(); + List result = parsedResponse.getMembers(); + return new ManagementApiHttpResponse<>( + new SyncPagingIterable( + startingAfter.isPresent(), result, parsedResponse, () -> list( + id, roleId, nextRequest, requestOptions) + .body()), + response); + } + 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 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/organizations/roles/RolesClient.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/RolesClient.java new file mode 100644 index 000000000..bd4fe8aed --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/RolesClient.java @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles; + +import com.auth0.client.mgmt.core.ClientOptions; +import com.auth0.client.mgmt.core.Suppliers; +import java.util.function.Supplier; + +public class RolesClient { + protected final ClientOptions clientOptions; + + protected final Supplier membersClient; + + public RolesClient(ClientOptions clientOptions) { + this.clientOptions = clientOptions; + this.membersClient = Suppliers.memoize(() -> new MembersClient(clientOptions)); + } + + public MembersClient members() { + return this.membersClient.get(); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java new file mode 100644 index 000000000..7bbf0697e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/organizations/roles/types/ListOrganizationRoleMembersRequestParameters.java @@ -0,0 +1,299 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.organizations.roles.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListOrganizationRoleMembersRequestParameters.Builder.class) +public final class ListOrganizationRoleMembersRequestParameters { + private final OptionalNullable from; + + private final OptionalNullable take; + + private final OptionalNullable fields; + + private final OptionalNullable includeFields; + + private final Map additionalProperties; + + private ListOrganizationRoleMembersRequestParameters( + OptionalNullable from, + OptionalNullable take, + OptionalNullable fields, + OptionalNullable includeFields, + Map additionalProperties) { + this.from = from; + this.take = take; + this.fields = fields; + this.includeFields = includeFields; + this.additionalProperties = additionalProperties; + } + + /** + * @return Optional Id from which to start selection. + */ + @JsonIgnore + public OptionalNullable getFrom() { + if (from == null) { + return OptionalNullable.absent(); + } + return from; + } + + /** + * @return Number of results per page. Defaults to 50. Values above the maximum permitted size are capped. + */ + @JsonIgnore + public OptionalNullable getTake() { + if (take == null) { + return OptionalNullable.absent(); + } + return take; + } + + /** + * @return Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields. + */ + @JsonIgnore + public OptionalNullable getFields() { + if (fields == null) { + return OptionalNullable.absent(); + } + return fields; + } + + /** + * @return Whether specified fields are to be included (true) or excluded (false). Defaults to true. + */ + @JsonIgnore + public OptionalNullable getIncludeFields() { + if (includeFields == null) { + return OptionalNullable.absent(); + } + return includeFields; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListOrganizationRoleMembersRequestParameters + && equalTo((ListOrganizationRoleMembersRequestParameters) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListOrganizationRoleMembersRequestParameters other) { + return from.equals(other.from) + && take.equals(other.take) + && fields.equals(other.fields) + && includeFields.equals(other.includeFields); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.from, this.take, this.fields, this.includeFields); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private OptionalNullable from = OptionalNullable.absent(); + + private OptionalNullable take = OptionalNullable.absent(); + + private OptionalNullable fields = OptionalNullable.absent(); + + private OptionalNullable includeFields = OptionalNullable.absent(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListOrganizationRoleMembersRequestParameters other) { + from(other.getFrom()); + take(other.getTake()); + fields(other.getFields()); + includeFields(other.getIncludeFields()); + return this; + } + + /** + *

Optional Id from which to start selection.

+ */ + @JsonSetter(value = "from", nulls = Nulls.SKIP) + public Builder from(@Nullable OptionalNullable from) { + this.from = from; + return this; + } + + public Builder from(String from) { + this.from = OptionalNullable.of(from); + return this; + } + + public Builder from(Optional from) { + if (from.isPresent()) { + this.from = OptionalNullable.of(from.get()); + } else { + this.from = OptionalNullable.absent(); + } + return this; + } + + public Builder from(com.auth0.client.mgmt.core.Nullable from) { + if (from.isNull()) { + this.from = OptionalNullable.ofNull(); + } else if (from.isEmpty()) { + this.from = OptionalNullable.absent(); + } else { + this.from = OptionalNullable.of(from.get()); + } + return this; + } + + /** + *

Number of results per page. Defaults to 50. Values above the maximum permitted size are capped.

+ */ + @JsonSetter(value = "take", nulls = Nulls.SKIP) + public Builder take(@Nullable OptionalNullable take) { + this.take = take; + return this; + } + + public Builder take(Integer take) { + this.take = OptionalNullable.of(take); + return this; + } + + public Builder take(Optional take) { + if (take.isPresent()) { + this.take = OptionalNullable.of(take.get()); + } else { + this.take = OptionalNullable.absent(); + } + return this; + } + + public Builder take(com.auth0.client.mgmt.core.Nullable take) { + if (take.isNull()) { + this.take = OptionalNullable.ofNull(); + } else if (take.isEmpty()) { + this.take = OptionalNullable.absent(); + } else { + this.take = OptionalNullable.of(take.get()); + } + return this; + } + + /** + *

Comma-separated list of fields to include or exclude (based on value provided for include_fields) in the result. Leave empty to retrieve all fields.

+ */ + @JsonSetter(value = "fields", nulls = Nulls.SKIP) + public Builder fields(@Nullable OptionalNullable fields) { + this.fields = fields; + return this; + } + + public Builder fields(String fields) { + this.fields = OptionalNullable.of(fields); + return this; + } + + public Builder fields(Optional fields) { + if (fields.isPresent()) { + this.fields = OptionalNullable.of(fields.get()); + } else { + this.fields = OptionalNullable.absent(); + } + return this; + } + + public Builder fields(com.auth0.client.mgmt.core.Nullable fields) { + if (fields.isNull()) { + this.fields = OptionalNullable.ofNull(); + } else if (fields.isEmpty()) { + this.fields = OptionalNullable.absent(); + } else { + this.fields = OptionalNullable.of(fields.get()); + } + return this; + } + + /** + *

Whether specified fields are to be included (true) or excluded (false). Defaults to true.

+ */ + @JsonSetter(value = "include_fields", nulls = Nulls.SKIP) + public Builder includeFields(@Nullable OptionalNullable includeFields) { + this.includeFields = includeFields; + return this; + } + + public Builder includeFields(Boolean includeFields) { + this.includeFields = OptionalNullable.of(includeFields); + return this; + } + + public Builder includeFields(Optional includeFields) { + if (includeFields.isPresent()) { + this.includeFields = OptionalNullable.of(includeFields.get()); + } else { + this.includeFields = OptionalNullable.absent(); + } + return this; + } + + public Builder includeFields(com.auth0.client.mgmt.core.Nullable includeFields) { + if (includeFields.isNull()) { + this.includeFields = OptionalNullable.ofNull(); + } else if (includeFields.isEmpty()) { + this.includeFields = OptionalNullable.absent(); + } else { + this.includeFields = OptionalNullable.of(includeFields.get()); + } + return this; + } + + public ListOrganizationRoleMembersRequestParameters build() { + return new ListOrganizationRoleMembersRequestParameters( + from, take, fields, includeFields, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithCredentialId.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithCredentialId.java index cc7455412..45f8ad9c6 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithCredentialId.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithCredentialId.java @@ -26,14 +26,18 @@ public final class ClientTokenVaultPrivilegedAccessWithCredentialId { private final Optional> ipAllowlist; + private final Optional> grants; + private final Map additionalProperties; private ClientTokenVaultPrivilegedAccessWithCredentialId( List credentials, Optional> ipAllowlist, + Optional> grants, Map additionalProperties) { this.credentials = credentials; this.ipAllowlist = ipAllowlist; + this.grants = grants; this.additionalProperties = additionalProperties; } @@ -47,6 +51,11 @@ public Optional> getIpAllowlist() { return ipAllowlist; } + @JsonProperty("grants") + public Optional> getGrants() { + return grants; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -60,12 +69,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(ClientTokenVaultPrivilegedAccessWithCredentialId other) { - return credentials.equals(other.credentials) && ipAllowlist.equals(other.ipAllowlist); + return credentials.equals(other.credentials) + && ipAllowlist.equals(other.ipAllowlist) + && grants.equals(other.grants); } @java.lang.Override public int hashCode() { - return Objects.hash(this.credentials, this.ipAllowlist); + return Objects.hash(this.credentials, this.ipAllowlist, this.grants); } @java.lang.Override @@ -83,6 +94,8 @@ public static final class Builder { private Optional> ipAllowlist = Optional.empty(); + private Optional> grants = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -91,6 +104,7 @@ private Builder() {} public Builder from(ClientTokenVaultPrivilegedAccessWithCredentialId other) { credentials(other.getCredentials()); ipAllowlist(other.getIpAllowlist()); + grants(other.getGrants()); return this; } @@ -126,8 +140,20 @@ public Builder ipAllowlist(List ipAllowlist) { return this; } + @JsonSetter(value = "grants", nulls = Nulls.SKIP) + public Builder grants(Optional> grants) { + this.grants = grants; + return this; + } + + public Builder grants(List grants) { + this.grants = Optional.ofNullable(grants); + return this; + } + public ClientTokenVaultPrivilegedAccessWithCredentialId build() { - return new ClientTokenVaultPrivilegedAccessWithCredentialId(credentials, ipAllowlist, additionalProperties); + return new ClientTokenVaultPrivilegedAccessWithCredentialId( + credentials, ipAllowlist, grants, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithPublicKey.java b/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithPublicKey.java index 9a2f2f7ad..75962e030 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithPublicKey.java +++ b/src/main/java/com/auth0/client/mgmt/types/ClientTokenVaultPrivilegedAccessWithPublicKey.java @@ -26,14 +26,18 @@ public final class ClientTokenVaultPrivilegedAccessWithPublicKey { private final Optional> ipAllowlist; + private final Optional> grants; + private final Map additionalProperties; private ClientTokenVaultPrivilegedAccessWithPublicKey( List credentials, Optional> ipAllowlist, + Optional> grants, Map additionalProperties) { this.credentials = credentials; this.ipAllowlist = ipAllowlist; + this.grants = grants; this.additionalProperties = additionalProperties; } @@ -47,6 +51,11 @@ public Optional> getIpAllowlist() { return ipAllowlist; } + @JsonProperty("grants") + public Optional> getGrants() { + return grants; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -60,12 +69,14 @@ public Map getAdditionalProperties() { } private boolean equalTo(ClientTokenVaultPrivilegedAccessWithPublicKey other) { - return credentials.equals(other.credentials) && ipAllowlist.equals(other.ipAllowlist); + return credentials.equals(other.credentials) + && ipAllowlist.equals(other.ipAllowlist) + && grants.equals(other.grants); } @java.lang.Override public int hashCode() { - return Objects.hash(this.credentials, this.ipAllowlist); + return Objects.hash(this.credentials, this.ipAllowlist, this.grants); } @java.lang.Override @@ -83,6 +94,8 @@ public static final class Builder { private Optional> ipAllowlist = Optional.empty(); + private Optional> grants = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -91,6 +104,7 @@ private Builder() {} public Builder from(ClientTokenVaultPrivilegedAccessWithPublicKey other) { credentials(other.getCredentials()); ipAllowlist(other.getIpAllowlist()); + grants(other.getGrants()); return this; } @@ -126,8 +140,20 @@ public Builder ipAllowlist(List ipAllowlist) { return this; } + @JsonSetter(value = "grants", nulls = Nulls.SKIP) + public Builder grants(Optional> grants) { + this.grants = grants; + return this; + } + + public Builder grants(List grants) { + this.grants = Optional.ofNullable(grants); + return this; + } + public ClientTokenVaultPrivilegedAccessWithPublicKey build() { - return new ClientTokenVaultPrivilegedAccessWithPublicKey(credentials, ipAllowlist, additionalProperties); + return new ClientTokenVaultPrivilegedAccessWithPublicKey( + credentials, ipAllowlist, grants, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java index 30dd990f7..dbd3fd445 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionPropertiesOptions.java @@ -101,6 +101,10 @@ public final class ConnectionPropertiesOptions { private final Optional idTokenSessionExpirySupported; + private final OptionalNullable discoveryUrl; + + private final OptionalNullable oidcMetadata; + private final Map additionalProperties; private ConnectionPropertiesOptions( @@ -142,6 +146,8 @@ private ConnectionPropertiesOptions( OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, Optional idTokenSessionExpirySupported, + OptionalNullable discoveryUrl, + OptionalNullable oidcMetadata, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -181,6 +187,8 @@ private ConnectionPropertiesOptions( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.discoveryUrl = discoveryUrl; + this.oidcMetadata = oidcMetadata; this.additionalProperties = additionalProperties; } @@ -456,6 +464,24 @@ public Optional getIdTokenSessionExpirySupported() { return idTokenSessionExpirySupported; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("discovery_url") + public OptionalNullable getDiscoveryUrl() { + if (discoveryUrl == null) { + return OptionalNullable.absent(); + } + return discoveryUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("oidc_metadata") + public OptionalNullable getOidcMetadata() { + if (oidcMetadata == null) { + return OptionalNullable.absent(); + } + return oidcMetadata; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { @@ -553,6 +579,18 @@ private OptionalNullable _getTokenEnd return tokenEndpointAuthSigningAlg; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("discovery_url") + private OptionalNullable _getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("oidc_metadata") + private OptionalNullable _getOidcMetadata() { + return oidcMetadata; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -602,7 +640,9 @@ private boolean equalTo(ConnectionPropertiesOptions other) { && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) - && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported); + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && discoveryUrl.equals(other.discoveryUrl) + && oidcMetadata.equals(other.oidcMetadata); } @java.lang.Override @@ -645,7 +685,9 @@ public int hashCode() { this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, - this.idTokenSessionExpirySupported); + this.idTokenSessionExpirySupported, + this.discoveryUrl, + this.oidcMetadata); } @java.lang.Override @@ -742,6 +784,10 @@ public static final class Builder { private Optional idTokenSessionExpirySupported = Optional.empty(); + private OptionalNullable discoveryUrl = OptionalNullable.absent(); + + private OptionalNullable oidcMetadata = OptionalNullable.absent(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -786,6 +832,8 @@ public Builder from(ConnectionPropertiesOptions other) { tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + discoveryUrl(other.getDiscoveryUrl()); + oidcMetadata(other.getOidcMetadata()); return this; } @@ -1590,6 +1638,68 @@ public Builder idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupport return this; } + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(@Nullable OptionalNullable discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = OptionalNullable.of(discoveryUrl); + return this; + } + + public Builder discoveryUrl(Optional discoveryUrl) { + if (discoveryUrl.isPresent()) { + this.discoveryUrl = OptionalNullable.of(discoveryUrl.get()); + } else { + this.discoveryUrl = OptionalNullable.absent(); + } + return this; + } + + public Builder discoveryUrl(com.auth0.client.mgmt.core.Nullable discoveryUrl) { + if (discoveryUrl.isNull()) { + this.discoveryUrl = OptionalNullable.ofNull(); + } else if (discoveryUrl.isEmpty()) { + this.discoveryUrl = OptionalNullable.absent(); + } else { + this.discoveryUrl = OptionalNullable.of(discoveryUrl.get()); + } + return this; + } + + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata(@Nullable OptionalNullable oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(ConnectionsOidcMetadata oidcMetadata) { + this.oidcMetadata = OptionalNullable.of(oidcMetadata); + return this; + } + + public Builder oidcMetadata(Optional oidcMetadata) { + if (oidcMetadata.isPresent()) { + this.oidcMetadata = OptionalNullable.of(oidcMetadata.get()); + } else { + this.oidcMetadata = OptionalNullable.absent(); + } + return this; + } + + public Builder oidcMetadata(com.auth0.client.mgmt.core.Nullable oidcMetadata) { + if (oidcMetadata.isNull()) { + this.oidcMetadata = OptionalNullable.ofNull(); + } else if (oidcMetadata.isEmpty()) { + this.oidcMetadata = OptionalNullable.absent(); + } else { + this.oidcMetadata = OptionalNullable.of(oidcMetadata.get()); + } + return this; + } + public ConnectionPropertiesOptions build() { return new ConnectionPropertiesOptions( validation, @@ -1630,6 +1740,8 @@ public ConnectionPropertiesOptions build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, idTokenSessionExpirySupported, + discoveryUrl, + oidcMetadata, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java new file mode 100644 index 000000000..672f485dd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ConnectionsOidcMetadata.java @@ -0,0 +1,1344 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.NullableNonemptyFilter; +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.Nullable; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ConnectionsOidcMetadata.Builder.class) +public final class ConnectionsOidcMetadata { + private final Optional issuer; + + private final Optional authorizationEndpoint; + + private final Optional tokenEndpoint; + + private final Optional userinfoEndpoint; + + private final Optional jwksUri; + + private final Optional registrationEndpoint; + + private final OptionalNullable> scopesSupported; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> grantTypesSupported; + + private final Optional> acrValuesSupported; + + private final OptionalNullable> subjectTypesSupported; + + private final Optional> idTokenSigningAlgValuesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> displayValuesSupported; + + private final Optional> claimTypesSupported; + + private final Optional> claimsSupported; + + private final Optional serviceDocumentation; + + private final Optional> claimsLocalesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional endSessionEndpoint; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Map additionalProperties; + + private ConnectionsOidcMetadata( + Optional issuer, + Optional authorizationEndpoint, + Optional tokenEndpoint, + Optional userinfoEndpoint, + Optional jwksUri, + Optional registrationEndpoint, + OptionalNullable> scopesSupported, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> grantTypesSupported, + Optional> acrValuesSupported, + OptionalNullable> subjectTypesSupported, + Optional> idTokenSigningAlgValuesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + Optional> userinfoSigningAlgValuesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> displayValuesSupported, + Optional> claimTypesSupported, + Optional> claimsSupported, + Optional serviceDocumentation, + Optional> claimsLocalesSupported, + Optional> uiLocalesSupported, + Optional claimsParameterSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional opPolicyUri, + Optional opTosUri, + Optional endSessionEndpoint, + Optional> dpopSigningAlgValuesSupported, + Map additionalProperties) { + this.issuer = issuer; + this.authorizationEndpoint = authorizationEndpoint; + this.tokenEndpoint = tokenEndpoint; + this.userinfoEndpoint = userinfoEndpoint; + this.jwksUri = jwksUri; + this.registrationEndpoint = registrationEndpoint; + this.scopesSupported = scopesSupported; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.grantTypesSupported = grantTypesSupported; + this.acrValuesSupported = acrValuesSupported; + this.subjectTypesSupported = subjectTypesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.displayValuesSupported = displayValuesSupported; + this.claimTypesSupported = claimTypesSupported; + this.claimsSupported = claimsSupported; + this.serviceDocumentation = serviceDocumentation; + this.claimsLocalesSupported = claimsLocalesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.endSessionEndpoint = endSessionEndpoint; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("scopes_supported") + public OptionalNullable> getScopesSupported() { + if (scopesSupported == null) { + return OptionalNullable.absent(); + } + return scopesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("subject_types_supported") + public OptionalNullable> getSubjectTypesSupported() { + if (subjectTypesSupported == null) { + return OptionalNullable.absent(); + } + return subjectTypesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public Optional> getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the display parameter values that the OpenID Provider supports. These values are described in Section 3.1.2.1 of OpenID Connect Core 1.0 [OpenID.Core] + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("scopes_supported") + private OptionalNullable> _getScopesSupported() { + return scopesSupported; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("subject_types_supported") + private OptionalNullable> _getSubjectTypesSupported() { + return subjectTypesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionsOidcMetadata && equalTo((ConnectionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ConnectionsOidcMetadata other) { + return issuer.equals(other.issuer) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && tokenEndpoint.equals(other.tokenEndpoint) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && jwksUri.equals(other.jwksUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && scopesSupported.equals(other.scopesSupported) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && grantTypesSupported.equals(other.grantTypesSupported) + && acrValuesSupported.equals(other.acrValuesSupported) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsSupported.equals(other.claimsSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.issuer, + this.authorizationEndpoint, + this.tokenEndpoint, + this.userinfoEndpoint, + this.jwksUri, + this.registrationEndpoint, + this.scopesSupported, + this.responseModesSupported, + this.responseTypesSupported, + this.grantTypesSupported, + this.acrValuesSupported, + this.subjectTypesSupported, + this.idTokenSigningAlgValuesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.userinfoSigningAlgValuesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.displayValuesSupported, + this.claimTypesSupported, + this.claimsSupported, + this.serviceDocumentation, + this.claimsLocalesSupported, + this.uiLocalesSupported, + this.claimsParameterSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.opPolicyUri, + this.opTosUri, + this.endSessionEndpoint, + this.dpopSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional issuer = Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private OptionalNullable> scopesSupported = OptionalNullable.absent(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + private OptionalNullable> subjectTypesSupported = OptionalNullable.absent(); + + private Optional> idTokenSigningAlgValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ConnectionsOidcMetadata other) { + issuer(other.getIssuer()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + tokenEndpoint(other.getTokenEndpoint()); + userinfoEndpoint(other.getUserinfoEndpoint()); + jwksUri(other.getJwksUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + scopesSupported(other.getScopesSupported()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + grantTypesSupported(other.getGrantTypesSupported()); + acrValuesSupported(other.getAcrValuesSupported()); + subjectTypesSupported(other.getSubjectTypesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsSupported(other.getClaimsSupported()); + serviceDocumentation(other.getServiceDocumentation()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + endSessionEndpoint(other.getEndSessionEndpoint()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public Builder issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + public Builder issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public Builder authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + public Builder authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public Builder tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + public Builder tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public Builder userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + public Builder userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public Builder jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + public Builder jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public Builder registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + public Builder registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public Builder scopesSupported(@Nullable OptionalNullable> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + public Builder scopesSupported(List scopesSupported) { + this.scopesSupported = OptionalNullable.of(scopesSupported); + return this; + } + + public Builder scopesSupported(Optional> scopesSupported) { + if (scopesSupported.isPresent()) { + this.scopesSupported = OptionalNullable.of(scopesSupported.get()); + } else { + this.scopesSupported = OptionalNullable.absent(); + } + return this; + } + + public Builder scopesSupported(com.auth0.client.mgmt.core.Nullable> scopesSupported) { + if (scopesSupported.isNull()) { + this.scopesSupported = OptionalNullable.ofNull(); + } else if (scopesSupported.isEmpty()) { + this.scopesSupported = OptionalNullable.absent(); + } else { + this.scopesSupported = OptionalNullable.of(scopesSupported.get()); + } + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public Builder responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + public Builder responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public Builder responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + public Builder responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public Builder grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + public Builder grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public Builder acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + public Builder acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public Builder subjectTypesSupported(@Nullable OptionalNullable> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + public Builder subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = OptionalNullable.of(subjectTypesSupported); + return this; + } + + public Builder subjectTypesSupported(Optional> subjectTypesSupported) { + if (subjectTypesSupported.isPresent()) { + this.subjectTypesSupported = OptionalNullable.of(subjectTypesSupported.get()); + } else { + this.subjectTypesSupported = OptionalNullable.absent(); + } + return this; + } + + public Builder subjectTypesSupported(com.auth0.client.mgmt.core.Nullable> subjectTypesSupported) { + if (subjectTypesSupported.isNull()) { + this.subjectTypesSupported = OptionalNullable.ofNull(); + } else if (subjectTypesSupported.isEmpty()) { + this.subjectTypesSupported = OptionalNullable.absent(); + } else { + this.subjectTypesSupported = OptionalNullable.of(subjectTypesSupported.get()); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public Builder idTokenSigningAlgValuesSupported(Optional> idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + return this; + } + + public Builder idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported = Optional.ofNullable(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public Builder idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + public Builder idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public Builder idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + public Builder idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public Builder userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + public Builder userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public Builder userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + public Builder userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public Builder userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + public Builder userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public Builder requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + public Builder requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public Builder requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + public Builder requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public Builder requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + public Builder requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public Builder tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + public Builder tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public Builder tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + public Builder tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the display parameter values that the OpenID Provider supports. These values are described in Section 3.1.2.1 of OpenID Connect Core 1.0 [OpenID.Core]

+ */ + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public Builder displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + public Builder displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public Builder claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + public Builder claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public Builder claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + public Builder claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public Builder serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + public Builder serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public Builder claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + public Builder claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public Builder uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + public Builder uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public Builder claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + public Builder claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public Builder requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + public Builder requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public Builder requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + public Builder requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public Builder requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + public Builder requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public Builder opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + public Builder opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public Builder opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + public Builder opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public Builder endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + public Builder endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public Builder dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + public Builder dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + public ConnectionsOidcMetadata build() { + return new ConnectionsOidcMetadata( + issuer, + authorizationEndpoint, + tokenEndpoint, + userinfoEndpoint, + jwksUri, + registrationEndpoint, + scopesSupported, + responseModesSupported, + responseTypesSupported, + grantTypesSupported, + acrValuesSupported, + subjectTypesSupported, + idTokenSigningAlgValuesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + userinfoSigningAlgValuesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + displayValuesSupported, + claimTypesSupported, + claimsSupported, + serviceDocumentation, + claimsLocalesSupported, + uiLocalesSupported, + claimsParameterSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + opPolicyUri, + opTosUri, + endSessionEndpoint, + dpopSigningAlgValuesSupported, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java index 81852cb71..d891bd2d9 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationRequestContent.java @@ -35,6 +35,8 @@ public final class CreateOrganizationRequestContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private CreateOrganizationRequestContent( @@ -44,6 +46,7 @@ private CreateOrganizationRequestContent( Optional>> metadata, Optional> enabledConnections, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.name = name; this.displayName = displayName; @@ -51,6 +54,7 @@ private CreateOrganizationRequestContent( this.metadata = metadata; this.enabledConnections = enabledConnections; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -93,6 +97,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -110,13 +119,20 @@ private boolean equalTo(CreateOrganizationRequestContent other) { && branding.equals(other.branding) && metadata.equals(other.metadata) && enabledConnections.equals(other.enabledConnections) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { return Objects.hash( - this.name, this.displayName, this.branding, this.metadata, this.enabledConnections, this.tokenQuota); + this.name, + this.displayName, + this.branding, + this.metadata, + this.enabledConnections, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -169,12 +185,18 @@ public interface _FinalStage { _FinalStage tokenQuota(Optional tokenQuota); _FinalStage tokenQuota(CreateTokenQuota tokenQuota); + + _FinalStage thirdPartyClientAccess(Optional thirdPartyClientAccess); + + _FinalStage thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess); } @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder implements NameStage, _FinalStage { private String name; + private Optional thirdPartyClientAccess = Optional.empty(); + private Optional tokenQuota = Optional.empty(); private Optional> enabledConnections = Optional.empty(); @@ -198,6 +220,7 @@ public Builder from(CreateOrganizationRequestContent other) { metadata(other.getMetadata()); enabledConnections(other.getEnabledConnections()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -213,6 +236,20 @@ public _FinalStage name(@NotNull String name) { return this; } + @java.lang.Override + public _FinalStage thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + + @java.lang.Override + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public _FinalStage thirdPartyClientAccess( + Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + @java.lang.Override public _FinalStage tokenQuota(CreateTokenQuota tokenQuota) { this.tokenQuota = Optional.ofNullable(tokenQuota); @@ -295,7 +332,14 @@ public _FinalStage displayName(Optional displayName) { @java.lang.Override public CreateOrganizationRequestContent build() { return new CreateOrganizationRequestContent( - name, displayName, branding, metadata, enabledConnections, tokenQuota, additionalProperties); + name, + displayName, + branding, + metadata, + enabledConnections, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } @java.lang.Override diff --git a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java index 1b8144fbc..b4d136779 100644 --- a/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/CreateOrganizationResponseContent.java @@ -34,6 +34,8 @@ public final class CreateOrganizationResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Optional> enabledConnections; private final Map additionalProperties; @@ -45,6 +47,7 @@ private CreateOrganizationResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Optional> enabledConnections, Map additionalProperties) { this.id = id; @@ -53,6 +56,7 @@ private CreateOrganizationResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.enabledConnections = enabledConnections; this.additionalProperties = additionalProperties; } @@ -96,6 +100,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @JsonProperty("enabled_connections") public Optional> getEnabledConnections() { return enabledConnections; @@ -119,6 +128,7 @@ private boolean equalTo(CreateOrganizationResponseContent other) { && branding.equals(other.branding) && metadata.equals(other.metadata) && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess) && enabledConnections.equals(other.enabledConnections); } @@ -131,6 +141,7 @@ public int hashCode() { this.branding, this.metadata, this.tokenQuota, + this.thirdPartyClientAccess, this.enabledConnections); } @@ -157,6 +168,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + private Optional> enabledConnections = Optional.empty(); @JsonAnySetter @@ -171,6 +184,7 @@ public Builder from(CreateOrganizationResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); enabledConnections(other.getEnabledConnections()); return this; } @@ -250,6 +264,17 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + @JsonSetter(value = "enabled_connections", nulls = Nulls.SKIP) public Builder enabledConnections(Optional> enabledConnections) { this.enabledConnections = enabledConnections; @@ -263,7 +288,15 @@ public Builder enabledConnections(List enabledCon public CreateOrganizationResponseContent build() { return new CreateOrganizationResponseContent( - id, name, displayName, branding, metadata, tokenQuota, enabledConnections, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + enabledConnections, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/DefaultMethodPhoneNumberIdentifierEnum.java b/src/main/java/com/auth0/client/mgmt/types/DefaultMethodPhoneNumberIdentifierEnum.java new file mode 100644 index 000000000..ac360aa8e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/DefaultMethodPhoneNumberIdentifierEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class DefaultMethodPhoneNumberIdentifierEnum { + public static final DefaultMethodPhoneNumberIdentifierEnum PASSWORD = + new DefaultMethodPhoneNumberIdentifierEnum(Value.PASSWORD, "password"); + + public static final DefaultMethodPhoneNumberIdentifierEnum PHONE_OTP = + new DefaultMethodPhoneNumberIdentifierEnum(Value.PHONE_OTP, "phone_otp"); + + private final Value value; + + private final String string; + + DefaultMethodPhoneNumberIdentifierEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof DefaultMethodPhoneNumberIdentifierEnum + && this.string.equals(((DefaultMethodPhoneNumberIdentifierEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PASSWORD: + return visitor.visitPassword(); + case PHONE_OTP: + return visitor.visitPhoneOtp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static DefaultMethodPhoneNumberIdentifierEnum valueOf(String value) { + switch (value) { + case "password": + return PASSWORD; + case "phone_otp": + return PHONE_OTP; + default: + return new DefaultMethodPhoneNumberIdentifierEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PASSWORD, + + PHONE_OTP, + + UNKNOWN + } + + public interface Visitor { + T visitPassword(); + + T visitPhoneOtp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java b/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java index cc8174329..f664a9eda 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailAttribute.java @@ -20,7 +20,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EmailAttribute.Builder.class) public final class EmailAttribute { - private final Optional identifier; + private final Optional identifier; private final Optional unique; @@ -33,7 +33,7 @@ public final class EmailAttribute { private final Map additionalProperties; private EmailAttribute( - Optional identifier, + Optional identifier, Optional unique, Optional profileRequired, Optional verificationMethod, @@ -48,7 +48,7 @@ private EmailAttribute( } @JsonProperty("identifier") - public Optional getIdentifier() { + public Optional getIdentifier() { return identifier; } @@ -113,7 +113,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); private Optional unique = Optional.empty(); @@ -138,12 +138,12 @@ public Builder from(EmailAttribute other) { } @JsonSetter(value = "identifier", nulls = Nulls.SKIP) - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { this.identifier = identifier; return this; } - public Builder identifier(ConnectionAttributeIdentifier identifier) { + public Builder identifier(EmailAttributeIdentifier identifier) { this.identifier = Optional.ofNullable(identifier); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/EmailAttributeIdentifier.java similarity index 87% rename from src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java rename to src/main/java/com/auth0/client/mgmt/types/EmailAttributeIdentifier.java index d7ed08f59..b95a1dd74 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ConnectionAttributeIdentifier.java +++ b/src/main/java/com/auth0/client/mgmt/types/EmailAttributeIdentifier.java @@ -18,15 +18,15 @@ import java.util.Optional; @JsonInclude(JsonInclude.Include.NON_ABSENT) -@JsonDeserialize(builder = ConnectionAttributeIdentifier.Builder.class) -public final class ConnectionAttributeIdentifier { +@JsonDeserialize(builder = EmailAttributeIdentifier.Builder.class) +public final class EmailAttributeIdentifier { private final Optional active; private final Optional defaultMethod; private final Map additionalProperties; - private ConnectionAttributeIdentifier( + private EmailAttributeIdentifier( Optional active, Optional defaultMethod, Map additionalProperties) { @@ -51,7 +51,7 @@ public Optional getDefaultMethod() { @java.lang.Override public boolean equals(Object other) { if (this == other) return true; - return other instanceof ConnectionAttributeIdentifier && equalTo((ConnectionAttributeIdentifier) other); + return other instanceof EmailAttributeIdentifier && equalTo((EmailAttributeIdentifier) other); } @JsonAnyGetter @@ -59,7 +59,7 @@ public Map getAdditionalProperties() { return this.additionalProperties; } - private boolean equalTo(ConnectionAttributeIdentifier other) { + private boolean equalTo(EmailAttributeIdentifier other) { return active.equals(other.active) && defaultMethod.equals(other.defaultMethod); } @@ -88,7 +88,7 @@ public static final class Builder { private Builder() {} - public Builder from(ConnectionAttributeIdentifier other) { + public Builder from(EmailAttributeIdentifier other) { active(other.getActive()); defaultMethod(other.getDefaultMethod()); return this; @@ -119,8 +119,8 @@ public Builder defaultMethod(DefaultMethodEmailIdentifierEnum defaultMethod) { return this; } - public ConnectionAttributeIdentifier build() { - return new ConnectionAttributeIdentifier(active, defaultMethod, additionalProperties); + public EmailAttributeIdentifier build() { + return new EmailAttributeIdentifier(active, defaultMethod, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java new file mode 100644 index 000000000..a5fd04e8b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreated.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreated.Builder.class) +public final class EventStreamCloudEventConnectionCreated { + private final String offset; + + private final EventStreamCloudEventConnectionCreatedCloudEvent event; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreated( + String offset, + EventStreamCloudEventConnectionCreatedCloudEvent event, + Map additionalProperties) { + this.offset = offset; + this.event = event; + this.additionalProperties = additionalProperties; + } + + /** + * @return Opaque cursor representing position in the stream. Pass as the from query parameter to resume. + */ + @JsonProperty("offset") + public String getOffset() { + return offset; + } + + @JsonProperty("event") + public EventStreamCloudEventConnectionCreatedCloudEvent getEvent() { + return event; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreated + && equalTo((EventStreamCloudEventConnectionCreated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreated other) { + return offset.equals(other.offset) && event.equals(other.event); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.offset, this.event); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OffsetStage builder() { + return new Builder(); + } + + public interface OffsetStage { + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ */ + EventStage offset(@NotNull String offset); + + Builder from(EventStreamCloudEventConnectionCreated other); + } + + public interface EventStage { + _FinalStage event(@NotNull EventStreamCloudEventConnectionCreatedCloudEvent event); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreated build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OffsetStage, EventStage, _FinalStage { + private String offset; + + private EventStreamCloudEventConnectionCreatedCloudEvent event; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreated other) { + offset(other.getOffset()); + event(other.getEvent()); + return this; + } + + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("offset") + public EventStage offset(@NotNull String offset) { + this.offset = Objects.requireNonNull(offset, "offset must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("event") + public _FinalStage event(@NotNull EventStreamCloudEventConnectionCreatedCloudEvent event) { + this.event = Objects.requireNonNull(event, "event must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreated build() { + return new EventStreamCloudEventConnectionCreated(offset, event, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java new file mode 100644 index 000000000..1fd7b421c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEvent.java @@ -0,0 +1,396 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedCloudEvent.Builder.class) +public final class EventStreamCloudEventConnectionCreatedCloudEvent { + private final EventStreamCloudEventSpecVersionEnum specversion; + + private final EventStreamCloudEventConnectionCreatedCloudEventTypeEnum type; + + private final String source; + + private final String id; + + private final OffsetDateTime time; + + private final EventStreamCloudEventConnectionCreatedData data; + + private final String a0Tenant; + + private final String a0Stream; + + private final Optional a0Purpose; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedCloudEvent( + EventStreamCloudEventSpecVersionEnum specversion, + EventStreamCloudEventConnectionCreatedCloudEventTypeEnum type, + String source, + String id, + OffsetDateTime time, + EventStreamCloudEventConnectionCreatedData data, + String a0Tenant, + String a0Stream, + Optional a0Purpose, + Map additionalProperties) { + this.specversion = specversion; + this.type = type; + this.source = source; + this.id = id; + this.time = time; + this.data = data; + this.a0Tenant = a0Tenant; + this.a0Stream = a0Stream; + this.a0Purpose = a0Purpose; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("specversion") + public EventStreamCloudEventSpecVersionEnum getSpecversion() { + return specversion; + } + + @JsonProperty("type") + public EventStreamCloudEventConnectionCreatedCloudEventTypeEnum getType() { + return type; + } + + /** + * @return The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'. + */ + @JsonProperty("source") + public String getSource() { + return source; + } + + /** + * @return A unique identifier for the event. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return An ISO-8601 timestamp indicating when the event physically occurred. + */ + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + @JsonProperty("data") + public EventStreamCloudEventConnectionCreatedData getData() { + return data; + } + + /** + * @return The auth0 tenant ID to which the event is associated. + */ + @JsonProperty("a0tenant") + public String getA0Tenant() { + return a0Tenant; + } + + /** + * @return The auth0 event stream ID of the stream the event was delivered on. + */ + @JsonProperty("a0stream") + public String getA0Stream() { + return a0Stream; + } + + @JsonProperty("a0purpose") + public Optional getA0Purpose() { + return a0Purpose; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedCloudEvent + && equalTo((EventStreamCloudEventConnectionCreatedCloudEvent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedCloudEvent other) { + return specversion.equals(other.specversion) + && type.equals(other.type) + && source.equals(other.source) + && id.equals(other.id) + && time.equals(other.time) + && data.equals(other.data) + && a0Tenant.equals(other.a0Tenant) + && a0Stream.equals(other.a0Stream) + && a0Purpose.equals(other.a0Purpose); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.specversion, + this.type, + this.source, + this.id, + this.time, + this.data, + this.a0Tenant, + this.a0Stream, + this.a0Purpose); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SpecversionStage builder() { + return new Builder(); + } + + public interface SpecversionStage { + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); + + Builder from(EventStreamCloudEventConnectionCreatedCloudEvent other); + } + + public interface TypeStage { + SourceStage type(@NotNull EventStreamCloudEventConnectionCreatedCloudEventTypeEnum type); + } + + public interface SourceStage { + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ */ + IdStage source(@NotNull String source); + } + + public interface IdStage { + /** + *

A unique identifier for the event.

+ */ + TimeStage id(@NotNull String id); + } + + public interface TimeStage { + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ */ + DataStage time(@NotNull OffsetDateTime time); + } + + public interface DataStage { + A0TenantStage data(@NotNull EventStreamCloudEventConnectionCreatedData data); + } + + public interface A0TenantStage { + /** + *

The auth0 tenant ID to which the event is associated.

+ */ + A0StreamStage a0Tenant(@NotNull String a0Tenant); + } + + public interface A0StreamStage { + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ */ + _FinalStage a0Stream(@NotNull String a0Stream); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedCloudEvent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage a0Purpose(Optional a0Purpose); + + _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements SpecversionStage, + TypeStage, + SourceStage, + IdStage, + TimeStage, + DataStage, + A0TenantStage, + A0StreamStage, + _FinalStage { + private EventStreamCloudEventSpecVersionEnum specversion; + + private EventStreamCloudEventConnectionCreatedCloudEventTypeEnum type; + + private String source; + + private String id; + + private OffsetDateTime time; + + private EventStreamCloudEventConnectionCreatedData data; + + private String a0Tenant; + + private String a0Stream; + + private Optional a0Purpose = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedCloudEvent other) { + specversion(other.getSpecversion()); + type(other.getType()); + source(other.getSource()); + id(other.getId()); + time(other.getTime()); + data(other.getData()); + a0Tenant(other.getA0Tenant()); + a0Stream(other.getA0Stream()); + a0Purpose(other.getA0Purpose()); + return this; + } + + @java.lang.Override + @JsonSetter("specversion") + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { + this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public SourceStage type(@NotNull EventStreamCloudEventConnectionCreatedCloudEventTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("source") + public IdStage source(@NotNull String source) { + this.source = Objects.requireNonNull(source, "source must not be null"); + return this; + } + + /** + *

A unique identifier for the event.

+ *

A unique identifier for the event.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public TimeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ *

An ISO-8601 timestamp indicating when the event physically occurred.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("time") + public DataStage time(@NotNull OffsetDateTime time) { + this.time = Objects.requireNonNull(time, "time must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("data") + public A0TenantStage data(@NotNull EventStreamCloudEventConnectionCreatedData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); + return this; + } + + /** + *

The auth0 tenant ID to which the event is associated.

+ *

The auth0 tenant ID to which the event is associated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0tenant") + public A0StreamStage a0Tenant(@NotNull String a0Tenant) { + this.a0Tenant = Objects.requireNonNull(a0Tenant, "a0Tenant must not be null"); + return this; + } + + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ *

The auth0 event stream ID of the stream the event was delivered on.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0stream") + public _FinalStage a0Stream(@NotNull String a0Stream) { + this.a0Stream = Objects.requireNonNull(a0Stream, "a0Stream must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose) { + this.a0Purpose = Optional.ofNullable(a0Purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "a0purpose", nulls = Nulls.SKIP) + public _FinalStage a0Purpose(Optional a0Purpose) { + this.a0Purpose = a0Purpose; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedCloudEvent build() { + return new EventStreamCloudEventConnectionCreatedCloudEvent( + specversion, type, source, id, time, data, a0Tenant, a0Stream, a0Purpose, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEventTypeEnum.java new file mode 100644 index 000000000..f1851ae51 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedCloudEventTypeEnum.java @@ -0,0 +1,77 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedCloudEventTypeEnum { + public static final EventStreamCloudEventConnectionCreatedCloudEventTypeEnum CONNECTION_CREATED = + new EventStreamCloudEventConnectionCreatedCloudEventTypeEnum( + Value.CONNECTION_CREATED, "connection.created"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedCloudEventTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedCloudEventTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedCloudEventTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedCloudEventTypeEnum valueOf(String value) { + switch (value) { + case "connection.created": + return CONNECTION_CREATED; + default: + return new EventStreamCloudEventConnectionCreatedCloudEventTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_CREATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionCreated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java new file mode 100644 index 000000000..7e6962de6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedData.java @@ -0,0 +1,152 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedData.Builder.class) +public final class EventStreamCloudEventConnectionCreatedData { + private final EventStreamCloudEventConnectionCreatedObject object; + + private final Optional context; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedData( + EventStreamCloudEventConnectionCreatedObject object, + Optional context, + Map additionalProperties) { + this.object = object; + this.context = context; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("object") + public EventStreamCloudEventConnectionCreatedObject getObject() { + return object; + } + + @JsonProperty("context") + public Optional getContext() { + return context; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedData + && equalTo((EventStreamCloudEventConnectionCreatedData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedData other) { + return object.equals(other.object) && context.equals(other.context); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.object, this.context); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ObjectStage builder() { + return new Builder(); + } + + public interface ObjectStage { + _FinalStage object(@NotNull EventStreamCloudEventConnectionCreatedObject object); + + Builder from(EventStreamCloudEventConnectionCreatedData other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedData build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage context(Optional context); + + _FinalStage context(EventStreamCloudEventContext context); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ObjectStage, _FinalStage { + private EventStreamCloudEventConnectionCreatedObject object; + + private Optional context = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedData other) { + object(other.getObject()); + context(other.getContext()); + return this; + } + + @java.lang.Override + @JsonSetter("object") + public _FinalStage object(@NotNull EventStreamCloudEventConnectionCreatedObject object) { + this.object = Objects.requireNonNull(object, "object must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage context(EventStreamCloudEventContext context) { + this.context = Optional.ofNullable(context); + return this; + } + + @java.lang.Override + @JsonSetter(value = "context", nulls = Nulls.SKIP) + public _FinalStage context(Optional context) { + this.context = context; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedData build() { + return new EventStreamCloudEventConnectionCreatedData(object, context, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject.java new file mode 100644 index 000000000..f0e3c2ebf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject.java @@ -0,0 +1,218 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; + +@JsonDeserialize(using = EventStreamCloudEventConnectionCreatedObject.Deserializer.class) +public final class EventStreamCloudEventConnectionCreatedObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionCreatedObject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionCreatedObject7) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject + && equalTo((EventStreamCloudEventConnectionCreatedObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject0 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 0); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject1 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 1); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject2 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 2); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject3 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 3); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject4 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 4); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject5 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 5); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject6 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 6); + } + + public static EventStreamCloudEventConnectionCreatedObject of(EventStreamCloudEventConnectionCreatedObject7 value) { + return new EventStreamCloudEventConnectionCreatedObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionCreatedObject0 value); + + T visit(EventStreamCloudEventConnectionCreatedObject1 value); + + T visit(EventStreamCloudEventConnectionCreatedObject2 value); + + T visit(EventStreamCloudEventConnectionCreatedObject3 value); + + T visit(EventStreamCloudEventConnectionCreatedObject4 value); + + T visit(EventStreamCloudEventConnectionCreatedObject5 value); + + T visit(EventStreamCloudEventConnectionCreatedObject6 value); + + T visit(EventStreamCloudEventConnectionCreatedObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionCreatedObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject2.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject3.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject4.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject5.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject6.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionCreatedObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java new file mode 100644 index 000000000..5ca7a3a2f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0 { + private final Optional authentication; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional connectedAccounts; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject0StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.connectedAccounts = connectedAccounts; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0 + && equalTo((EventStreamCloudEventConnectionCreatedObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0 other) { + return authentication.equals(other.authentication) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && connectedAccounts.equals(other.connectedAccounts) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.connectedAccounts, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject0 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject0Authentication authentication); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject0Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject0Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject0StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject0 other) { + authentication(other.getAuthentication()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + connectedAccounts(other.getConnectedAccounts()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject0StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject0Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject0Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject0Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject0 build() { + return new EventStreamCloudEventConnectionCreatedObject0( + authentication, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + connectedAccounts, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Authentication.java new file mode 100644 index 000000000..af0dd326c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject0Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject0Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject0Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject0Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts.java new file mode 100644 index 000000000..597d653fd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts.java @@ -0,0 +1,150 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts( + boolean active, Optional crossAppAccess, Map additionalProperties) { + this.active = active; + this.crossAppAccess = crossAppAccess; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @JsonProperty("cross_app_access") + public Optional getCrossAppAccess() { + return crossAppAccess; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts other) { + return active == other.active && crossAppAccess.equals(other.crossAppAccess); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.crossAppAccess); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage crossAppAccess(Optional crossAppAccess); + + _FinalStage crossAppAccess(Boolean crossAppAccess); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + private Optional crossAppAccess = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts other) { + active(other.getActive()); + crossAppAccess(other.getCrossAppAccess()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccess(Boolean crossAppAccess) { + this.crossAppAccess = Optional.ofNullable(crossAppAccess); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access", nulls = Nulls.SKIP) + public _FinalStage crossAppAccess(Optional crossAppAccess) { + this.crossAppAccess = crossAppAccess; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject0ConnectedAccounts( + active, crossAppAccess, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Metadata.java new file mode 100644 index 000000000..5576d0d39 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject0Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject0Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java new file mode 100644 index 000000000..b424019fa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional discoveryUrl, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.discoveryUrl = discoveryUrl; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0Options + && equalTo((EventStreamCloudEventConnectionCreatedObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && discoveryUrl.equals(other.discoveryUrl) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.discoveryUrl, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionCreatedObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject0Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap attributeMap); + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + _FinalStage discoveryUrl(Optional discoveryUrl); + + _FinalStage discoveryUrl(String discoveryUrl); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject0Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + discoveryUrl(other.getDiscoveryUrl()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + @java.lang.Override + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public _FinalStage discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject0Options build() { + return new EventStreamCloudEventConnectionCreatedObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + discoveryUrl, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap.java new file mode 100644 index 000000000..47922b918 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..55d3848db --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum BIND_ALL = + new EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BIND_ALL: + return visitor.visitBindAll(); + case USE_MAP: + return visitor.visitUseMap(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BIND_ALL, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBindAll(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings.java new file mode 100644 index 000000000..e1f4cfbac --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..58e9be576 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..5f5631cd6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..71f9d577c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedObject0OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..10026ed5a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java new file mode 100644 index 000000000..1b2376775 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionCreatedObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..6b04468bd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..324f5aa14 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..f898f2fa9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..3676e7672 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..425f260bc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum.java new file mode 100644 index 000000000..4602550a9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum.java @@ -0,0 +1,87 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum(Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FRONT_CHANNEL: + return visitor.visitFrontChannel(); + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionCreatedObject0OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + FRONT_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitFrontChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0StrategyEnum.java new file mode 100644 index 000000000..e45f7559b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject0StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject0StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionCreatedObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject0StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject0StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedObject0StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java new file mode 100644 index 000000000..4ba0e61cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject1StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1 + && equalTo((EventStreamCloudEventConnectionCreatedObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject1 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject1Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject1Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject1StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject1 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject1StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject1Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject1Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject1Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject1 build() { + return new EventStreamCloudEventConnectionCreatedObject1( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Authentication.java new file mode 100644 index 000000000..bf4591767 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject1Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject1Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject1Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject1Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts.java new file mode 100644 index 000000000..9fb604aaa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject1ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Metadata.java new file mode 100644 index 000000000..b244e8ac1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject1Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject1Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java new file mode 100644 index 000000000..faeb2e6b2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional domain, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.domain = domain; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1Options + && equalTo((EventStreamCloudEventConnectionCreatedObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && domain.equals(other.domain) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.domain, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionCreatedObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject1Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap attributeMap); + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject1Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + domain(other.getDomain()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject1Options build() { + return new EventStreamCloudEventConnectionCreatedObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + domain, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap.java new file mode 100644 index 000000000..fff8c956a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..a92a9b558 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum BASIC_PROFILE = + new EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USE_MAP: + return visitor.visitUseMap(); + case BASIC_PROFILE: + return visitor.visitBasicProfile(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BASIC_PROFILE, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBasicProfile(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings.java new file mode 100644 index 000000000..2239e4de6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..61f29d228 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..ad88d752c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..6bd9b8286 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedObject1OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..067247f47 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java new file mode 100644 index 000000000..88253d136 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionCreatedObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..769c4b04b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..7a6cf8138 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..4fab17a05 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..1f915d6a4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..5fe7b3cb0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum.java new file mode 100644 index 000000000..49fd7ae77 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionCreatedObject1OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1StrategyEnum.java new file mode 100644 index 000000000..76f2b9203 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject1StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject1StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionCreatedObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject1StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject1StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OKTA: + return visitor.visitOkta(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionCreatedObject1StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OKTA, + + UNKNOWN + } + + public interface Visitor { + T visitOkta(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java new file mode 100644 index 000000000..0310c754d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject2StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2 + && equalTo((EventStreamCloudEventConnectionCreatedObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject2 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject2Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject2Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject2StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject2StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject2Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject2Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject2Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2 build() { + return new EventStreamCloudEventConnectionCreatedObject2( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java new file mode 100644 index 000000000..94c239ca1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject2Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java new file mode 100644 index 000000000..352b45ea2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject2ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java new file mode 100644 index 000000000..d3957e915 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject2Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java new file mode 100644 index 000000000..54e7ec82d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2Options.java @@ -0,0 +1,1086 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional debug; + + private final Optional deflate; + + private final Optional destinationUrl; + + private final Optional disableSignout; + + private final Optional> fieldsMap; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional recipientUrl, + Optional requestTemplate, + Optional signOutEndpoint, + Optional userIdAttribute, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signOutEndpoint = signOutEndpoint; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. + */ + @JsonProperty("debug") + public Optional getDebug() { + return debug; + } + + /** + * @return When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. + */ + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; + } + + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. + */ + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + /** + * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. + */ + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + /** + * @return HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. + */ + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + /** + * @return Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template + */ + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + /** + * @return Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. + */ + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + /** + * @return Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2Options + && equalTo((EventStreamCloudEventConnectionCreatedObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signOutEndpoint.equals(other.signOutEndpoint) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.recipientUrl, + this.requestTemplate, + this.signOutEndpoint, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional + assertionDecryptionSettings = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional debug = Optional.empty(); + + private Optional deflate = Optional.empty(); + + private Optional destinationUrl = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional recipientUrl = Optional.empty(); + + private Optional requestTemplate = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signOutEndpoint(other.getSignOutEndpoint()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public Builder assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + public Builder assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm( + EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public Builder expires(Optional expires) { + this.expires = expires; + return this; + } + + public Builder expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding( + EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm( + EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public Builder signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + public Builder signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(EventStreamCloudEventConnectionCreatedObject2OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes.

+ */ + @JsonSetter(value = "debug", nulls = Nulls.SKIP) + public Builder debug(Optional debug) { + this.debug = debug; + return this; + } + + public Builder debug(Boolean debug) { + this.debug = Optional.ofNullable(debug); + return this; + } + + /** + *

When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding.

+ */ + @JsonSetter(value = "deflate", nulls = Nulls.SKIP) + public Builder deflate(Optional deflate) { + this.deflate = deflate; + return this; + } + + public Builder deflate(Boolean deflate) { + this.deflate = Optional.ofNullable(deflate); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "destinationUrl", nulls = Nulls.SKIP) + public Builder destinationUrl(Optional destinationUrl) { + this.destinationUrl = destinationUrl; + return this; + } + + public Builder destinationUrl(String destinationUrl) { + this.destinationUrl = Optional.ofNullable(destinationUrl); + return this; + } + + /** + *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

+ */ + @JsonSetter(value = "disableSignout", nulls = Nulls.SKIP) + public Builder disableSignout(Optional disableSignout) { + this.disableSignout = disableSignout; + return this; + } + + public Builder disableSignout(Boolean disableSignout) { + this.disableSignout = Optional.ofNullable(disableSignout); + return this; + } + + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) + public Builder fieldsMap(Optional> fieldsMap) { + this.fieldsMap = fieldsMap; + return this; + } + + public Builder fieldsMap(Map fieldsMap) { + this.fieldsMap = Optional.ofNullable(fieldsMap); + return this; + } + + /** + *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + return this; + } + + public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = Optional.ofNullable(globalTokenRevocationJwtIss); + return this; + } + + /** + *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + return this; + } + + public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = Optional.ofNullable(globalTokenRevocationJwtSub); + return this; + } + + /** + *

HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.

+ */ + @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) + public Builder metadataUrl(Optional metadataUrl) { + this.metadataUrl = metadataUrl; + return this; + } + + public Builder metadataUrl(String metadataUrl) { + this.metadataUrl = Optional.ofNullable(metadataUrl); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) + public Builder recipientUrl(Optional recipientUrl) { + this.recipientUrl = recipientUrl; + return this; + } + + public Builder recipientUrl(String recipientUrl) { + this.recipientUrl = Optional.ofNullable(recipientUrl); + return this; + } + + /** + *

Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template

+ */ + @JsonSetter(value = "requestTemplate", nulls = Nulls.SKIP) + public Builder requestTemplate(Optional requestTemplate) { + this.requestTemplate = requestTemplate; + return this; + } + + public Builder requestTemplate(String requestTemplate) { + this.requestTemplate = Optional.ofNullable(requestTemplate); + return this; + } + + /** + *

Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.

+ */ + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; + return this; + } + + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); + return this; + } + + /** + *

Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2Options build() { + return new EventStreamCloudEventConnectionCreatedObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + recipientUrl, + requestTemplate, + signOutEndpoint, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..c395c276d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..a7f0a4e1e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..f4da7da96 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java new file mode 100644 index 000000000..57df241b0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..5357af2f2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..0962ed0e8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..9bf9a47ef --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..6bfa770a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionCreatedObject2OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java new file mode 100644 index 000000000..ddeaa43a4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject2OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject2OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionCreatedObject2OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java new file mode 100644 index 000000000..77521ce7d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject2StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject2StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionCreatedObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject2StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject2StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SAMLP: + return visitor.visitSamlp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionCreatedObject2StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SAMLP, + + UNKNOWN + } + + public interface Visitor { + T visitSamlp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java new file mode 100644 index 000000000..bbdf5d6bb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3 + && equalTo((EventStreamCloudEventConnectionCreatedObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject3 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject3Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject3Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject3StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject3Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject3Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject3Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3 build() { + return new EventStreamCloudEventConnectionCreatedObject3( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java new file mode 100644 index 000000000..dd1badd10 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject3Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java new file mode 100644 index 000000000..4a878d0cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject3ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java new file mode 100644 index 000000000..2da97499d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject3Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject3Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java new file mode 100644 index 000000000..a4cfb06aa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3Options.java @@ -0,0 +1,980 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final String pingFederateBaseUrl; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + String pingFederateBaseUrl, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return URL provided by PingFederate which returns information used for creating the connection + */ + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3Options + && equalTo((EventStreamCloudEventConnectionCreatedObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.pingFederateBaseUrl); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ */ + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(EventStreamCloudEventConnectionCreatedObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings); + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + _FinalStage digestAlgorithm( + Optional digestAlgorithm); + + _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum digestAlgorithm); + + /** + *

Domain aliases for the connection

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + _FinalStage expires(Optional expires); + + _FinalStage expires(OffsetDateTime expires); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated( + Optional idpinitiated); + + _FinalStage idpinitiated(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated idpinitiated); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage protocolBinding( + Optional protocolBinding); + + _FinalStage protocolBinding( + EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm); + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage subject(Optional subject); + + _FinalStage subject(EventStreamCloudEventConnectionCreatedObject3OptionsSubject subject); + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional + assertionDecryptionSettings = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + return this; + } + + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ *

URL provided by PingFederate which returns information used for creating the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage subject(EventStreamCloudEventConnectionCreatedObject3OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding( + EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @java.lang.Override + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public _FinalStage expires(Optional expires) { + this.expires = expires; + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + /** + *

Domain aliases for the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3Options build() { + return new EventStreamCloudEventConnectionCreatedObject3Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + pingFederateBaseUrl, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..5fe45c800 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..5da5b1eda --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..5b996059d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java new file mode 100644 index 000000000..52115e271 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..d703acb88 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..6bafef1ff --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..20d39fe0d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..c5d755332 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionCreatedObject3OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java new file mode 100644 index 000000000..779ca1afb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject3OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject3OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionCreatedObject3OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java new file mode 100644 index 000000000..43e0dff27 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject3StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject3StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionCreatedObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject3StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject3StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PINGFEDERATE: + return visitor.visitPingfederate(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionCreatedObject3StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PINGFEDERATE, + + UNKNOWN + } + + public interface Visitor { + T visitPingfederate(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java new file mode 100644 index 000000000..7ab401808 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4 + && equalTo((EventStreamCloudEventConnectionCreatedObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject4 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject4Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject4Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject4 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject4StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject4Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject4Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject4Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject4 build() { + return new EventStreamCloudEventConnectionCreatedObject4( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java new file mode 100644 index 000000000..2b72f6ed3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject4Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject4Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject4Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject4Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java new file mode 100644 index 000000000..c808f8ab6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject4ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java new file mode 100644 index 000000000..4ea04e9b0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject4Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject4Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java new file mode 100644 index 000000000..5dead2eef --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4Options.java @@ -0,0 +1,564 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject4Options { + private final Optional adfsServer; + + private final Optional certRolloverNotification; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> nonPersistentAttrs; + + private final Optional> prevThumbprints; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject4Options( + Optional adfsServer, + Optional certRolloverNotification, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> nonPersistentAttrs, + Optional> prevThumbprints, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.adfsServer = adfsServer; + this.certRolloverNotification = certRolloverNotification; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.nonPersistentAttrs = nonPersistentAttrs; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. + */ + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + /** + * @return Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject4Options + && equalTo((EventStreamCloudEventConnectionCreatedObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject4Options other) { + return adfsServer.equals(other.adfsServer) + && certRolloverNotification.equals(other.certRolloverNotification) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adfsServer, + this.certRolloverNotification, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.nonPersistentAttrs, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional adfsServer = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject4Options other) { + adfsServer(other.getAdfsServer()); + certRolloverNotification(other.getCertRolloverNotification()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.

+ */ + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + /** + *

Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Tenant domain

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject4Options build() { + return new EventStreamCloudEventConnectionCreatedObject4Options( + adfsServer, + certRolloverNotification, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + nonPersistentAttrs, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..ccb21afe0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject4OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..d44f2a0c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionCreatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java new file mode 100644 index 000000000..5fb4a75cf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject4StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject4StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionCreatedObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject4StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject4StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ADFS: + return visitor.visitAdfs(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionCreatedObject4StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java new file mode 100644 index 000000000..70293f1c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5.java @@ -0,0 +1,515 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5 + && equalTo((EventStreamCloudEventConnectionCreatedObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject5 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject5Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy; + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject5 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject5Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject5Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject5Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject5 build() { + return new EventStreamCloudEventConnectionCreatedObject5( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java new file mode 100644 index 000000000..cbf22b680 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject5Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject5Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject5Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject5Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java new file mode 100644 index 000000000..f92318f2f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject5ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java new file mode 100644 index 000000000..01ddbe4bd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject5Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject5Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java new file mode 100644 index 000000000..fec1b1020 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5Options.java @@ -0,0 +1,657 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject5Options { + private final Optional agentIp; + + private final Optional agentMode; + + private final Optional agentVersion; + + private final Optional bruteForceProtection; + + private final Optional certAuth; + + private final Optional> certs; + + private final Optional disableCache; + + private final Optional disableSelfServiceChangePassword; + + private final Optional> domainAliases; + + private final Optional iconUrl; + + private final Optional> ips; + + private final Optional kerberos; + + private final Optional> nonPersistentAttrs; + + private final Optional + setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject5Options( + Optional agentIp, + Optional agentMode, + Optional agentVersion, + Optional bruteForceProtection, + Optional certAuth, + Optional> certs, + Optional disableCache, + Optional disableSelfServiceChangePassword, + Optional> domainAliases, + Optional iconUrl, + Optional> ips, + Optional kerberos, + Optional> nonPersistentAttrs, + Optional + setUserRootAttributes, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Map additionalProperties) { + this.agentIp = agentIp; + this.agentMode = agentMode; + this.agentVersion = agentVersion; + this.bruteForceProtection = bruteForceProtection; + this.certAuth = certAuth; + this.certs = certs; + this.disableCache = disableCache; + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + this.domainAliases = domainAliases; + this.iconUrl = iconUrl; + this.ips = ips; + this.kerberos = kerberos; + this.nonPersistentAttrs = nonPersistentAttrs; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). + */ + @JsonProperty("agentIP") + public Optional getAgentIp() { + return agentIp; + } + + /** + * @return When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). + */ + @JsonProperty("agentMode") + public Optional getAgentMode() { + return agentMode; + } + + /** + * @return Version identifier of the installed AD connector agent software (managed by the AD Connector agent). + */ + @JsonProperty("agentVersion") + public Optional getAgentVersion() { + return agentVersion; + } + + /** + * @return Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + /** + * @return Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint + */ + @JsonProperty("certAuth") + public Optional getCertAuth() { + return certAuth; + } + + /** + * @return Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). + */ + @JsonProperty("certs") + public Optional> getCerts() { + return certs; + } + + /** + * @return When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory + */ + @JsonProperty("disable_cache") + public Optional getDisableCache() { + return disableCache; + } + + /** + * @return When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets + */ + @JsonProperty("disable_self_service_change_password") + public Optional getDisableSelfServiceChangePassword() { + return disableSelfServiceChangePassword; + } + + /** + * @return List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. + */ + @JsonProperty("ips") + public Optional> getIps() { + return ips; + } + + /** + * @return Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges + */ + @JsonProperty("kerberos") + public Optional getKerberos() { + return kerberos; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Primary AD domain hint used for HRD and discovery. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject5Options + && equalTo((EventStreamCloudEventConnectionCreatedObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject5Options other) { + return agentIp.equals(other.agentIp) + && agentMode.equals(other.agentMode) + && agentVersion.equals(other.agentVersion) + && bruteForceProtection.equals(other.bruteForceProtection) + && certAuth.equals(other.certAuth) + && certs.equals(other.certs) + && disableCache.equals(other.disableCache) + && disableSelfServiceChangePassword.equals(other.disableSelfServiceChangePassword) + && domainAliases.equals(other.domainAliases) + && iconUrl.equals(other.iconUrl) + && ips.equals(other.ips) + && kerberos.equals(other.kerberos) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.agentIp, + this.agentMode, + this.agentVersion, + this.bruteForceProtection, + this.certAuth, + this.certs, + this.disableCache, + this.disableSelfServiceChangePassword, + this.domainAliases, + this.iconUrl, + this.ips, + this.kerberos, + this.nonPersistentAttrs, + this.setUserRootAttributes, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional agentIp = Optional.empty(); + + private Optional agentMode = Optional.empty(); + + private Optional agentVersion = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional certAuth = Optional.empty(); + + private Optional> certs = Optional.empty(); + + private Optional disableCache = Optional.empty(); + + private Optional disableSelfServiceChangePassword = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> ips = Optional.empty(); + + private Optional kerberos = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject5Options other) { + agentIp(other.getAgentIp()); + agentMode(other.getAgentMode()); + agentVersion(other.getAgentVersion()); + bruteForceProtection(other.getBruteForceProtection()); + certAuth(other.getCertAuth()); + certs(other.getCerts()); + disableCache(other.getDisableCache()); + disableSelfServiceChangePassword(other.getDisableSelfServiceChangePassword()); + domainAliases(other.getDomainAliases()); + iconUrl(other.getIconUrl()); + ips(other.getIps()); + kerberos(other.getKerberos()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentIP", nulls = Nulls.SKIP) + public Builder agentIp(Optional agentIp) { + this.agentIp = agentIp; + return this; + } + + public Builder agentIp(String agentIp) { + this.agentIp = Optional.ofNullable(agentIp); + return this; + } + + /** + *

When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentMode", nulls = Nulls.SKIP) + public Builder agentMode(Optional agentMode) { + this.agentMode = agentMode; + return this; + } + + public Builder agentMode(Boolean agentMode) { + this.agentMode = Optional.ofNullable(agentMode); + return this; + } + + /** + *

Version identifier of the installed AD connector agent software (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentVersion", nulls = Nulls.SKIP) + public Builder agentVersion(Optional agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + public Builder agentVersion(String agentVersion) { + this.agentVersion = Optional.ofNullable(agentVersion); + return this; + } + + /** + *

Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures.

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + /** + *

Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint

+ */ + @JsonSetter(value = "certAuth", nulls = Nulls.SKIP) + public Builder certAuth(Optional certAuth) { + this.certAuth = certAuth; + return this; + } + + public Builder certAuth(Boolean certAuth) { + this.certAuth = Optional.ofNullable(certAuth); + return this; + } + + /** + *

Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "certs", nulls = Nulls.SKIP) + public Builder certs(Optional> certs) { + this.certs = certs; + return this; + } + + public Builder certs(List certs) { + this.certs = Optional.ofNullable(certs); + return this; + } + + /** + *

When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory

+ */ + @JsonSetter(value = "disable_cache", nulls = Nulls.SKIP) + public Builder disableCache(Optional disableCache) { + this.disableCache = disableCache; + return this; + } + + public Builder disableCache(Boolean disableCache) { + this.disableCache = Optional.ofNullable(disableCache); + return this; + } + + /** + *

When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets

+ */ + @JsonSetter(value = "disable_self_service_change_password", nulls = Nulls.SKIP) + public Builder disableSelfServiceChangePassword(Optional disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + return this; + } + + public Builder disableSelfServiceChangePassword(Boolean disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = Optional.ofNullable(disableSelfServiceChangePassword); + return this; + } + + /** + *

List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication.

+ */ + @JsonSetter(value = "ips", nulls = Nulls.SKIP) + public Builder ips(Optional> ips) { + this.ips = ips; + return this; + } + + public Builder ips(List ips) { + this.ips = Optional.ofNullable(ips); + return this; + } + + /** + *

Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges

+ */ + @JsonSetter(value = "kerberos", nulls = Nulls.SKIP) + public Builder kerberos(Optional kerberos) { + this.kerberos = kerberos; + return this; + } + + public Builder kerberos(Boolean kerberos) { + this.kerberos = Optional.ofNullable(kerberos); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + /** + *

The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Primary AD domain hint used for HRD and discovery.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + public EventStreamCloudEventConnectionCreatedObject5Options build() { + return new EventStreamCloudEventConnectionCreatedObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + nonPersistentAttrs, + setUserRootAttributes, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..0a89c126f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject5OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java new file mode 100644 index 000000000..caacd5cfe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject5StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject5StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject5StrategyEnum AD = + new EventStreamCloudEventConnectionCreatedObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject5StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject5StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AD: + return visitor.visitAd(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionCreatedObject5StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java new file mode 100644 index 000000000..4296b9c9c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6 + && equalTo((EventStreamCloudEventConnectionCreatedObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject6 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject6Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject6Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject6StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject6Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject6Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject6Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6 build() { + return new EventStreamCloudEventConnectionCreatedObject6( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java new file mode 100644 index 000000000..d3dc3e4a4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject6Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java new file mode 100644 index 000000000..af4973bc2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject6ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java new file mode 100644 index 000000000..2938537c2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject6Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject6Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java new file mode 100644 index 000000000..01441213d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6Options.java @@ -0,0 +1,1112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6Options { + private final Optional adminAccessTokenExpiresin; + + private final Optional allowSettingLoginScopes; + + private final Optional apiEnableGroups; + + private final Optional apiEnableUsers; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional email; + + private final Optional extAgreedTerms; + + private final Optional extGroups; + + private final Optional extGroupsExtended; + + private final Optional extIsAdmin; + + private final Optional extIsSuspended; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional handleLoginFromSocial; + + private final Optional iconUrl; + + private final Optional mapUserIdToId; + + private final Optional> nonPersistentAttrs; + + private final Optional profile; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6Options( + Optional adminAccessTokenExpiresin, + Optional allowSettingLoginScopes, + Optional apiEnableGroups, + Optional apiEnableUsers, + String clientId, + Optional domain, + Optional> domainAliases, + Optional email, + Optional extAgreedTerms, + Optional extGroups, + Optional extGroupsExtended, + Optional extIsAdmin, + Optional extIsSuspended, + Optional + federatedConnectionsAccessTokens, + Optional handleLoginFromSocial, + Optional iconUrl, + Optional mapUserIdToId, + Optional> nonPersistentAttrs, + Optional profile, + Optional> scope, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional> upstreamParams, + Map additionalProperties) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; + this.apiEnableUsers = apiEnableUsers; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.email = email; + this.extAgreedTerms = extAgreedTerms; + this.extGroups = extGroups; + this.extGroupsExtended = extGroupsExtended; + this.extIsAdmin = extIsAdmin; + this.extIsSuspended = extIsSuspended; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.handleLoginFromSocial = handleLoginFromSocial; + this.iconUrl = iconUrl; + this.mapUserIdToId = mapUserIdToId; + this.nonPersistentAttrs = nonPersistentAttrs; + this.profile = profile; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. + */ + @JsonProperty("admin_access_token_expiresin") + public Optional getAdminAccessTokenExpiresin() { + return adminAccessTokenExpiresin; + } + + /** + * @return When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. + */ + @JsonProperty("allow_setting_login_scopes") + public Optional getAllowSettingLoginScopes() { + return allowSettingLoginScopes; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. + */ + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return Primary Google Workspace domain name that users must belong to. + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return Whether the OAuth flow requests the email scope. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Fetches the agreedToTerms flag from the Google Directory profile. + */ + @JsonProperty("ext_agreed_terms") + public Optional getExtAgreedTerms() { + return extAgreedTerms; + } + + /** + * @return Enables enrichment with Google group memberships (required for ext_groups_extended). + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true. + */ + @JsonProperty("ext_groups_extended") + public Optional getExtGroupsExtended() { + return extGroupsExtended; + } + + /** + * @return Fetches the Google Directory admin flag for the signing-in user. + */ + @JsonProperty("ext_is_admin") + public Optional getExtIsAdmin() { + return extIsAdmin; + } + + /** + * @return Fetches the Google Directory suspended flag for the signing-in user. + */ + @JsonProperty("ext_is_suspended") + public Optional getExtIsSuspended() { + return extIsSuspended; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. + */ + @JsonProperty("handle_login_from_social") + public Optional getHandleLoginFromSocial() { + return handleLoginFromSocial; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. + */ + @JsonProperty("map_user_id_to_id") + public Optional getMapUserIdToId() { + return mapUserIdToId; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether the OAuth flow requests the profile scope. + */ + @JsonProperty("profile") + public Optional getProfile() { + return profile; + } + + /** + * @return Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The Google Workspace primary domain used to identify the organization during authentication. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6Options + && equalTo((EventStreamCloudEventConnectionCreatedObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject6Options other) { + return adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) + && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) + && apiEnableUsers.equals(other.apiEnableUsers) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && email.equals(other.email) + && extAgreedTerms.equals(other.extAgreedTerms) + && extGroups.equals(other.extGroups) + && extGroupsExtended.equals(other.extGroupsExtended) + && extIsAdmin.equals(other.extIsAdmin) + && extIsSuspended.equals(other.extIsSuspended) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && handleLoginFromSocial.equals(other.handleLoginFromSocial) + && iconUrl.equals(other.iconUrl) + && mapUserIdToId.equals(other.mapUserIdToId) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && profile.equals(other.profile) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adminAccessTokenExpiresin, + this.allowSettingLoginScopes, + this.apiEnableGroups, + this.apiEnableUsers, + this.clientId, + this.domain, + this.domainAliases, + this.email, + this.extAgreedTerms, + this.extGroups, + this.extGroupsExtended, + this.extIsAdmin, + this.extIsSuspended, + this.federatedConnectionsAccessTokens, + this.handleLoginFromSocial, + this.iconUrl, + this.mapUserIdToId, + this.nonPersistentAttrs, + this.profile, + this.scope, + this.setUserRootAttributes, + this.tenantDomain, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionCreatedObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin); + + _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin); + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes); + + _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + _FinalStage email(Optional email); + + _FinalStage email(Boolean email); + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + _FinalStage extAgreedTerms(Optional extAgreedTerms); + + _FinalStage extAgreedTerms(Boolean extAgreedTerms); + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + _FinalStage extGroupsExtended(Optional extGroupsExtended); + + _FinalStage extGroupsExtended(Boolean extGroupsExtended); + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + _FinalStage extIsAdmin(Optional extIsAdmin); + + _FinalStage extIsAdmin(Boolean extIsAdmin); + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); + + _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + _FinalStage mapUserIdToId(Optional mapUserIdToId); + + _FinalStage mapUserIdToId(Boolean mapUserIdToId); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + _FinalStage profile(Optional profile); + + _FinalStage profile(Boolean profile); + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional> upstreamParams = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional profile = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional mapUserIdToId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional handleLoginFromSocial = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extIsAdmin = Optional.empty(); + + private Optional extGroupsExtended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); + + private Optional email = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + private Optional apiEnableGroups = Optional.empty(); + + private Optional allowSettingLoginScopes = Optional.empty(); + + private Optional adminAccessTokenExpiresin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject6Options other) { + adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); + allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); + apiEnableUsers(other.getApiEnableUsers()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + email(other.getEmail()); + extAgreedTerms(other.getExtAgreedTerms()); + extGroups(other.getExtGroups()); + extGroupsExtended(other.getExtGroupsExtended()); + extIsAdmin(other.getExtIsAdmin()); + extIsSuspended(other.getExtIsSuspended()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + handleLoginFromSocial(other.getHandleLoginFromSocial()); + iconUrl(other.getIconUrl()); + mapUserIdToId(other.getMapUserIdToId()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + profile(other.getProfile()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage profile(Boolean profile) { + this.profile = Optional.ofNullable(profile); + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + @java.lang.Override + @JsonSetter(value = "profile", nulls = Nulls.SKIP) + public _FinalStage profile(Optional profile) { + this.profile = profile; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage mapUserIdToId(Boolean mapUserIdToId) { + this.mapUserIdToId = Optional.ofNullable(mapUserIdToId); + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + @java.lang.Override + @JsonSetter(value = "map_user_id_to_id", nulls = Nulls.SKIP) + public _FinalStage mapUserIdToId(Optional mapUserIdToId) { + this.mapUserIdToId = mapUserIdToId; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial) { + this.handleLoginFromSocial = Optional.ofNullable(handleLoginFromSocial); + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "handle_login_from_social", nulls = Nulls.SKIP) + public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial) { + this.handleLoginFromSocial = handleLoginFromSocial; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsAdmin(Boolean extIsAdmin) { + this.extIsAdmin = Optional.ofNullable(extIsAdmin); + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_admin", nulls = Nulls.SKIP) + public _FinalStage extIsAdmin(Optional extIsAdmin) { + this.extIsAdmin = extIsAdmin; + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroupsExtended(Boolean extGroupsExtended) { + this.extGroupsExtended = Optional.ofNullable(extGroupsExtended); + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups_extended", nulls = Nulls.SKIP) + public _FinalStage extGroupsExtended(Optional extGroupsExtended) { + this.extGroupsExtended = extGroupsExtended; + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage email(Boolean email) { + this.email = Optional.ofNullable(email); + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes) { + this.allowSettingLoginScopes = Optional.ofNullable(allowSettingLoginScopes); + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + @java.lang.Override + @JsonSetter(value = "allow_setting_login_scopes", nulls = Nulls.SKIP) + public _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes) { + this.allowSettingLoginScopes = allowSettingLoginScopes; + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = Optional.ofNullable(adminAccessTokenExpiresin); + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_access_token_expiresin", nulls = Nulls.SKIP) + public _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6Options build() { + return new EventStreamCloudEventConnectionCreatedObject6Options( + adminAccessTokenExpiresin, + allowSettingLoginScopes, + apiEnableGroups, + apiEnableUsers, + clientId, + domain, + domainAliases, + email, + extAgreedTerms, + extGroups, + extGroupsExtended, + extIsAdmin, + extIsSuspended, + federatedConnectionsAccessTokens, + handleLoginFromSocial, + iconUrl, + mapUserIdToId, + nonPersistentAttrs, + profile, + scope, + setUserRootAttributes, + tenantDomain, + upstreamParams, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..e3ad1414d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedObject6OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..d02b3cf9c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject6OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java new file mode 100644 index 000000000..e9338cfca --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject6StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject6StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionCreatedObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject6StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject6StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionCreatedObject6StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GOOGLE_APPS, + + UNKNOWN + } + + public interface Visitor { + T visitGoogleApps(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java new file mode 100644 index 000000000..ad6347893 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionCreatedObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7 + && equalTo((EventStreamCloudEventConnectionCreatedObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionCreatedObject7 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject7Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionCreatedObject7Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionCreatedObject7StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionCreatedObject7Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionCreatedObject7Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionCreatedObject7Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7 build() { + return new EventStreamCloudEventConnectionCreatedObject7( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java new file mode 100644 index 000000000..06ff95881 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7Authentication + && equalTo((EventStreamCloudEventConnectionCreatedObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7Authentication build() { + return new EventStreamCloudEventConnectionCreatedObject7Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java new file mode 100644 index 000000000..fc5785030 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionCreatedObject7ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java new file mode 100644 index 000000000..ee65b8112 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionCreatedObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionCreatedObject7Metadata build() { + return new EventStreamCloudEventConnectionCreatedObject7Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java new file mode 100644 index 000000000..20bc92b97 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7Options.java @@ -0,0 +1,1297 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionCreatedObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7Options { + private final Optional apiEnableUsers; + + private final Optional appDomain; + + private final Optional appId; + + private final Optional basicProfile; + + private final Optional certRolloverNotification; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional extGroups; + + private final Optional extNestedGroups; + + private final Optional extProfile; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional granted; + + private final Optional iconUrl; + + private final Optional identityApi; + + private final Optional maxGroupsToRetrieve; + + private final Optional> nonPersistentAttrs; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional tenantDomain; + + private final Optional tenantId; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional useWsfed; + + private final Optional useCommonEndpoint; + + private final Optional useridAttribute; + + private final Optional waadProtocol; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7Options( + Optional apiEnableUsers, + Optional appDomain, + Optional appId, + Optional basicProfile, + Optional certRolloverNotification, + String clientId, + Optional domain, + Optional> domainAliases, + Optional extGroups, + Optional extNestedGroups, + Optional extProfile, + Optional + federatedConnectionsAccessTokens, + Optional granted, + Optional iconUrl, + Optional identityApi, + Optional maxGroupsToRetrieve, + Optional> nonPersistentAttrs, + Optional> scope, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional tenantDomain, + Optional tenantId, + Optional> thumbprints, + Optional> upstreamParams, + Optional useWsfed, + Optional useCommonEndpoint, + Optional useridAttribute, + Optional waadProtocol, + Map additionalProperties) { + this.apiEnableUsers = apiEnableUsers; + this.appDomain = appDomain; + this.appId = appId; + this.basicProfile = basicProfile; + this.certRolloverNotification = certRolloverNotification; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.extGroups = extGroups; + this.extNestedGroups = extNestedGroups; + this.extProfile = extProfile; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.granted = granted; + this.iconUrl = iconUrl; + this.identityApi = identityApi; + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + this.nonPersistentAttrs = nonPersistentAttrs; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.tenantDomain = tenantDomain; + this.tenantId = tenantId; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.useWsfed = useWsfed; + this.useCommonEndpoint = useCommonEndpoint; + this.useridAttribute = useridAttribute; + this.waadProtocol = waadProtocol; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enable users API + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. + */ + @JsonProperty("app_domain") + public Optional getAppDomain() { + return appDomain; + } + + /** + * @return The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. + */ + @JsonProperty("app_id") + public Optional getAppId() { + return appId; + } + + /** + * @return Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. + */ + @JsonProperty("basic_profile") + public Optional getBasicProfile() { + return basicProfile; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. + */ + @JsonProperty("ext_nested_groups") + public Optional getExtNestedGroups() { + return extNestedGroups; + } + + /** + * @return When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. + */ + @JsonProperty("ext_profile") + public Optional getExtProfile() { + return extProfile; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. + */ + @JsonProperty("granted") + public Optional getGranted() { + return granted; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("identity_api") + public Optional getIdentityApi() { + return identityApi; + } + + /** + * @return Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. + */ + @JsonProperty("max_groups_to_retrieve") + public Optional getMaxGroupsToRetrieve() { + return maxGroupsToRetrieve; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. + */ + @JsonProperty("tenantId") + public Optional getTenantId() { + return tenantId; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. + */ + @JsonProperty("use_wsfed") + public Optional getUseWsfed() { + return useWsfed; + } + + /** + * @return When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. + */ + @JsonProperty("useCommonEndpoint") + public Optional getUseCommonEndpoint() { + return useCommonEndpoint; + } + + @JsonProperty("userid_attribute") + public Optional getUseridAttribute() { + return useridAttribute; + } + + @JsonProperty("waad_protocol") + public Optional getWaadProtocol() { + return waadProtocol; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7Options + && equalTo((EventStreamCloudEventConnectionCreatedObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionCreatedObject7Options other) { + return apiEnableUsers.equals(other.apiEnableUsers) + && appDomain.equals(other.appDomain) + && appId.equals(other.appId) + && basicProfile.equals(other.basicProfile) + && certRolloverNotification.equals(other.certRolloverNotification) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && extGroups.equals(other.extGroups) + && extNestedGroups.equals(other.extNestedGroups) + && extProfile.equals(other.extProfile) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && granted.equals(other.granted) + && iconUrl.equals(other.iconUrl) + && identityApi.equals(other.identityApi) + && maxGroupsToRetrieve.equals(other.maxGroupsToRetrieve) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && tenantDomain.equals(other.tenantDomain) + && tenantId.equals(other.tenantId) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && useWsfed.equals(other.useWsfed) + && useCommonEndpoint.equals(other.useCommonEndpoint) + && useridAttribute.equals(other.useridAttribute) + && waadProtocol.equals(other.waadProtocol); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.apiEnableUsers, + this.appDomain, + this.appId, + this.basicProfile, + this.certRolloverNotification, + this.clientId, + this.domain, + this.domainAliases, + this.extGroups, + this.extNestedGroups, + this.extProfile, + this.federatedConnectionsAccessTokens, + this.granted, + this.iconUrl, + this.identityApi, + this.maxGroupsToRetrieve, + this.nonPersistentAttrs, + this.scope, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.tenantDomain, + this.tenantId, + this.thumbprints, + this.upstreamParams, + this.useWsfed, + this.useCommonEndpoint, + this.useridAttribute, + this.waadProtocol); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionCreatedObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + _FinalStage appDomain(Optional appDomain); + + _FinalStage appDomain(String appDomain); + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); + + _FinalStage appId(String appId); + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); + + _FinalStage basicProfile(Boolean basicProfile); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + _FinalStage extNestedGroups(Optional extNestedGroups); + + _FinalStage extNestedGroups(Boolean extNestedGroups); + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi( + Optional identityApi); + + _FinalStage identityApi(EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum identityApi); + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute( + Optional useridAttribute); + + _FinalStage useridAttribute( + EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol(EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = + Optional.empty(); + + private Optional useridAttribute = + Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantId = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional maxGroupsToRetrieve = Optional.empty(); + + private Optional identityApi = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional basicProfile = Optional.empty(); + + private Optional appId = Optional.empty(); + + private Optional appDomain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionCreatedObject7Options other) { + apiEnableUsers(other.getApiEnableUsers()); + appDomain(other.getAppDomain()); + appId(other.getAppId()); + basicProfile(other.getBasicProfile()); + certRolloverNotification(other.getCertRolloverNotification()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + extGroups(other.getExtGroups()); + extNestedGroups(other.getExtNestedGroups()); + extProfile(other.getExtProfile()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + granted(other.getGranted()); + iconUrl(other.getIconUrl()); + identityApi(other.getIdentityApi()); + maxGroupsToRetrieve(other.getMaxGroupsToRetrieve()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + tenantDomain(other.getTenantDomain()); + tenantId(other.getTenantId()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + useWsfed(other.getUseWsfed()); + useCommonEndpoint(other.getUseCommonEndpoint()); + useridAttribute(other.getUseridAttribute()); + waadProtocol(other.getWaadProtocol()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage waadProtocol( + EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); + return this; + } + + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol( + Optional waadProtocol) { + this.waadProtocol = waadProtocol; + return this; + } + + @java.lang.Override + public _FinalStage useridAttribute( + EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); + return this; + } + + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute( + Optional useridAttribute) { + this.useridAttribute = useridAttribute; + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useWsfed(Boolean useWsfed) { + this.useWsfed = Optional.ofNullable(useWsfed); + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + return this; + } + + @java.lang.Override + public _FinalStage identityApi( + EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum identityApi) { + this.identityApi = Optional.ofNullable(identityApi); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi( + Optional identityApi) { + this.identityApi = identityApi; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage granted(Boolean granted) { + this.granted = Optional.ofNullable(granted); + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) + public _FinalStage extNestedGroups(Optional extNestedGroups) { + this.extNestedGroups = extNestedGroups; + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public _FinalStage basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; + return this; + } + + /** + *

Enable users API

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7Options build() { + return new EventStreamCloudEventConnectionCreatedObject7Options( + apiEnableUsers, + appDomain, + appId, + basicProfile, + certRolloverNotification, + clientId, + domain, + domainAliases, + extGroups, + extNestedGroups, + extProfile, + federatedConnectionsAccessTokens, + granted, + iconUrl, + identityApi, + maxGroupsToRetrieve, + nonPersistentAttrs, + scope, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + tenantDomain, + tenantId, + thumbprints, + upstreamParams, + useWsfed, + useCommonEndpoint, + useridAttribute, + waadProtocol, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..75c6b9408 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionCreatedObject7OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java new file mode 100644 index 000000000..9ff5ee862 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = new EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AZURE_ACTIVE_DIRECTORY_V10: + return visitor.visitAzureActiveDirectoryV10(); + case MICROSOFT_IDENTITY_PLATFORM_V20: + return visitor.visitMicrosoftIdentityPlatformV20(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum valueOf(String value) { + switch (value) { + case "azure-active-directory-v1.0": + return AZURE_ACTIVE_DIRECTORY_V10; + case "microsoft-identity-platform-v2.0": + return MICROSOFT_IDENTITY_PLATFORM_V20; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsIdentityApiEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + MICROSOFT_IDENTITY_PLATFORM_V20, + + AZURE_ACTIVE_DIRECTORY_V10, + + UNKNOWN + } + + public interface Visitor { + T visitMicrosoftIdentityPlatformV20(); + + T visitAzureActiveDirectoryV10(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..4fc07b8e0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..d360605ea --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java new file mode 100644 index 000000000..54ca576ea --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SUB: + return visitor.visitSub(); + case OID: + return visitor.visitOid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum valueOf(String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsUseridAttributeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OID, + + SUB, + + UNKNOWN + } + + public interface Visitor { + T visitOid(); + + T visitSub(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java new file mode 100644 index 000000000..1da1e1b00 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID_CONNECT: + return visitor.visitOpenidConnect(); + case WS_FEDERATION: + return visitor.visitWsFederation(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionCreatedObject7OptionsWaadProtocolEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WS_FEDERATION, + + OPENID_CONNECT, + + UNKNOWN + } + + public interface Visitor { + T visitWsFederation(); + + T visitOpenidConnect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java new file mode 100644 index 000000000..226570f09 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedObject7StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedObject7StrategyEnum { + public static final EventStreamCloudEventConnectionCreatedObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionCreatedObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedObject7StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionCreatedObject7StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WAAD: + return visitor.visitWaad(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionCreatedObject7StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java new file mode 100644 index 000000000..58e16549c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionCreatedTypeEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionCreatedTypeEnum { + public static final EventStreamCloudEventConnectionCreatedTypeEnum CONNECTION_CREATED = + new EventStreamCloudEventConnectionCreatedTypeEnum(Value.CONNECTION_CREATED, "connection.created"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionCreatedTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionCreatedTypeEnum + && this.string.equals(((EventStreamCloudEventConnectionCreatedTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionCreatedTypeEnum valueOf(String value) { + switch (value) { + case "connection.created": + return CONNECTION_CREATED; + default: + return new EventStreamCloudEventConnectionCreatedTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_CREATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionCreated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java new file mode 100644 index 000000000..540c8747f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeleted.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeleted.Builder.class) +public final class EventStreamCloudEventConnectionDeleted { + private final String offset; + + private final EventStreamCloudEventConnectionDeletedCloudEvent event; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeleted( + String offset, + EventStreamCloudEventConnectionDeletedCloudEvent event, + Map additionalProperties) { + this.offset = offset; + this.event = event; + this.additionalProperties = additionalProperties; + } + + /** + * @return Opaque cursor representing position in the stream. Pass as the from query parameter to resume. + */ + @JsonProperty("offset") + public String getOffset() { + return offset; + } + + @JsonProperty("event") + public EventStreamCloudEventConnectionDeletedCloudEvent getEvent() { + return event; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeleted + && equalTo((EventStreamCloudEventConnectionDeleted) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeleted other) { + return offset.equals(other.offset) && event.equals(other.event); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.offset, this.event); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OffsetStage builder() { + return new Builder(); + } + + public interface OffsetStage { + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ */ + EventStage offset(@NotNull String offset); + + Builder from(EventStreamCloudEventConnectionDeleted other); + } + + public interface EventStage { + _FinalStage event(@NotNull EventStreamCloudEventConnectionDeletedCloudEvent event); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeleted build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OffsetStage, EventStage, _FinalStage { + private String offset; + + private EventStreamCloudEventConnectionDeletedCloudEvent event; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeleted other) { + offset(other.getOffset()); + event(other.getEvent()); + return this; + } + + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("offset") + public EventStage offset(@NotNull String offset) { + this.offset = Objects.requireNonNull(offset, "offset must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("event") + public _FinalStage event(@NotNull EventStreamCloudEventConnectionDeletedCloudEvent event) { + this.event = Objects.requireNonNull(event, "event must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeleted build() { + return new EventStreamCloudEventConnectionDeleted(offset, event, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java new file mode 100644 index 000000000..eb4457332 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEvent.java @@ -0,0 +1,396 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedCloudEvent.Builder.class) +public final class EventStreamCloudEventConnectionDeletedCloudEvent { + private final EventStreamCloudEventSpecVersionEnum specversion; + + private final EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type; + + private final String source; + + private final String id; + + private final OffsetDateTime time; + + private final EventStreamCloudEventConnectionDeletedData data; + + private final String a0Tenant; + + private final String a0Stream; + + private final Optional a0Purpose; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedCloudEvent( + EventStreamCloudEventSpecVersionEnum specversion, + EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type, + String source, + String id, + OffsetDateTime time, + EventStreamCloudEventConnectionDeletedData data, + String a0Tenant, + String a0Stream, + Optional a0Purpose, + Map additionalProperties) { + this.specversion = specversion; + this.type = type; + this.source = source; + this.id = id; + this.time = time; + this.data = data; + this.a0Tenant = a0Tenant; + this.a0Stream = a0Stream; + this.a0Purpose = a0Purpose; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("specversion") + public EventStreamCloudEventSpecVersionEnum getSpecversion() { + return specversion; + } + + @JsonProperty("type") + public EventStreamCloudEventConnectionDeletedCloudEventTypeEnum getType() { + return type; + } + + /** + * @return The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'. + */ + @JsonProperty("source") + public String getSource() { + return source; + } + + /** + * @return A unique identifier for the event. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return An ISO-8601 timestamp indicating when the event physically occurred. + */ + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + @JsonProperty("data") + public EventStreamCloudEventConnectionDeletedData getData() { + return data; + } + + /** + * @return The auth0 tenant ID to which the event is associated. + */ + @JsonProperty("a0tenant") + public String getA0Tenant() { + return a0Tenant; + } + + /** + * @return The auth0 event stream ID of the stream the event was delivered on. + */ + @JsonProperty("a0stream") + public String getA0Stream() { + return a0Stream; + } + + @JsonProperty("a0purpose") + public Optional getA0Purpose() { + return a0Purpose; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedCloudEvent + && equalTo((EventStreamCloudEventConnectionDeletedCloudEvent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedCloudEvent other) { + return specversion.equals(other.specversion) + && type.equals(other.type) + && source.equals(other.source) + && id.equals(other.id) + && time.equals(other.time) + && data.equals(other.data) + && a0Tenant.equals(other.a0Tenant) + && a0Stream.equals(other.a0Stream) + && a0Purpose.equals(other.a0Purpose); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.specversion, + this.type, + this.source, + this.id, + this.time, + this.data, + this.a0Tenant, + this.a0Stream, + this.a0Purpose); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SpecversionStage builder() { + return new Builder(); + } + + public interface SpecversionStage { + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); + + Builder from(EventStreamCloudEventConnectionDeletedCloudEvent other); + } + + public interface TypeStage { + SourceStage type(@NotNull EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type); + } + + public interface SourceStage { + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ */ + IdStage source(@NotNull String source); + } + + public interface IdStage { + /** + *

A unique identifier for the event.

+ */ + TimeStage id(@NotNull String id); + } + + public interface TimeStage { + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ */ + DataStage time(@NotNull OffsetDateTime time); + } + + public interface DataStage { + A0TenantStage data(@NotNull EventStreamCloudEventConnectionDeletedData data); + } + + public interface A0TenantStage { + /** + *

The auth0 tenant ID to which the event is associated.

+ */ + A0StreamStage a0Tenant(@NotNull String a0Tenant); + } + + public interface A0StreamStage { + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ */ + _FinalStage a0Stream(@NotNull String a0Stream); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedCloudEvent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage a0Purpose(Optional a0Purpose); + + _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements SpecversionStage, + TypeStage, + SourceStage, + IdStage, + TimeStage, + DataStage, + A0TenantStage, + A0StreamStage, + _FinalStage { + private EventStreamCloudEventSpecVersionEnum specversion; + + private EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type; + + private String source; + + private String id; + + private OffsetDateTime time; + + private EventStreamCloudEventConnectionDeletedData data; + + private String a0Tenant; + + private String a0Stream; + + private Optional a0Purpose = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedCloudEvent other) { + specversion(other.getSpecversion()); + type(other.getType()); + source(other.getSource()); + id(other.getId()); + time(other.getTime()); + data(other.getData()); + a0Tenant(other.getA0Tenant()); + a0Stream(other.getA0Stream()); + a0Purpose(other.getA0Purpose()); + return this; + } + + @java.lang.Override + @JsonSetter("specversion") + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { + this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public SourceStage type(@NotNull EventStreamCloudEventConnectionDeletedCloudEventTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("source") + public IdStage source(@NotNull String source) { + this.source = Objects.requireNonNull(source, "source must not be null"); + return this; + } + + /** + *

A unique identifier for the event.

+ *

A unique identifier for the event.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public TimeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ *

An ISO-8601 timestamp indicating when the event physically occurred.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("time") + public DataStage time(@NotNull OffsetDateTime time) { + this.time = Objects.requireNonNull(time, "time must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("data") + public A0TenantStage data(@NotNull EventStreamCloudEventConnectionDeletedData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); + return this; + } + + /** + *

The auth0 tenant ID to which the event is associated.

+ *

The auth0 tenant ID to which the event is associated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0tenant") + public A0StreamStage a0Tenant(@NotNull String a0Tenant) { + this.a0Tenant = Objects.requireNonNull(a0Tenant, "a0Tenant must not be null"); + return this; + } + + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ *

The auth0 event stream ID of the stream the event was delivered on.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0stream") + public _FinalStage a0Stream(@NotNull String a0Stream) { + this.a0Stream = Objects.requireNonNull(a0Stream, "a0Stream must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose) { + this.a0Purpose = Optional.ofNullable(a0Purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "a0purpose", nulls = Nulls.SKIP) + public _FinalStage a0Purpose(Optional a0Purpose) { + this.a0Purpose = a0Purpose; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedCloudEvent build() { + return new EventStreamCloudEventConnectionDeletedCloudEvent( + specversion, type, source, id, time, data, a0Tenant, a0Stream, a0Purpose, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java new file mode 100644 index 000000000..9ede038d9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedCloudEventTypeEnum.java @@ -0,0 +1,77 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedCloudEventTypeEnum { + public static final EventStreamCloudEventConnectionDeletedCloudEventTypeEnum CONNECTION_DELETED = + new EventStreamCloudEventConnectionDeletedCloudEventTypeEnum( + Value.CONNECTION_DELETED, "connection.deleted"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedCloudEventTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedCloudEventTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedCloudEventTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedCloudEventTypeEnum valueOf(String value) { + switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; + default: + return new EventStreamCloudEventConnectionDeletedCloudEventTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_DELETED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionDeleted(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java new file mode 100644 index 000000000..5c37f09e5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedData.java @@ -0,0 +1,152 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedData.Builder.class) +public final class EventStreamCloudEventConnectionDeletedData { + private final EventStreamCloudEventConnectionDeletedObject object; + + private final Optional context; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedData( + EventStreamCloudEventConnectionDeletedObject object, + Optional context, + Map additionalProperties) { + this.object = object; + this.context = context; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("object") + public EventStreamCloudEventConnectionDeletedObject getObject() { + return object; + } + + @JsonProperty("context") + public Optional getContext() { + return context; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedData + && equalTo((EventStreamCloudEventConnectionDeletedData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedData other) { + return object.equals(other.object) && context.equals(other.context); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.object, this.context); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ObjectStage builder() { + return new Builder(); + } + + public interface ObjectStage { + _FinalStage object(@NotNull EventStreamCloudEventConnectionDeletedObject object); + + Builder from(EventStreamCloudEventConnectionDeletedData other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedData build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage context(Optional context); + + _FinalStage context(EventStreamCloudEventContext context); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ObjectStage, _FinalStage { + private EventStreamCloudEventConnectionDeletedObject object; + + private Optional context = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedData other) { + object(other.getObject()); + context(other.getContext()); + return this; + } + + @java.lang.Override + @JsonSetter("object") + public _FinalStage object(@NotNull EventStreamCloudEventConnectionDeletedObject object) { + this.object = Objects.requireNonNull(object, "object must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage context(EventStreamCloudEventContext context) { + this.context = Optional.ofNullable(context); + return this; + } + + @java.lang.Override + @JsonSetter(value = "context", nulls = Nulls.SKIP) + public _FinalStage context(Optional context) { + this.context = context; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedData build() { + return new EventStreamCloudEventConnectionDeletedData(object, context, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java new file mode 100644 index 000000000..c8180b9d6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject.java @@ -0,0 +1,218 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; + +@JsonDeserialize(using = EventStreamCloudEventConnectionDeletedObject.Deserializer.class) +public final class EventStreamCloudEventConnectionDeletedObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionDeletedObject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionDeletedObject7) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject + && equalTo((EventStreamCloudEventConnectionDeletedObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject0 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 0); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject1 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 1); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject2 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 2); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject3 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 3); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject4 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 4); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject5 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 5); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject6 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 6); + } + + public static EventStreamCloudEventConnectionDeletedObject of(EventStreamCloudEventConnectionDeletedObject7 value) { + return new EventStreamCloudEventConnectionDeletedObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionDeletedObject0 value); + + T visit(EventStreamCloudEventConnectionDeletedObject1 value); + + T visit(EventStreamCloudEventConnectionDeletedObject2 value); + + T visit(EventStreamCloudEventConnectionDeletedObject3 value); + + T visit(EventStreamCloudEventConnectionDeletedObject4 value); + + T visit(EventStreamCloudEventConnectionDeletedObject5 value); + + T visit(EventStreamCloudEventConnectionDeletedObject6 value); + + T visit(EventStreamCloudEventConnectionDeletedObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionDeletedObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject2.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject3.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject4.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject5.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject6.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionDeletedObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java new file mode 100644 index 000000000..817394a24 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0 { + private final Optional authentication; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional connectedAccounts; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.connectedAccounts = connectedAccounts; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0 + && equalTo((EventStreamCloudEventConnectionDeletedObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0 other) { + return authentication.equals(other.authentication) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && connectedAccounts.equals(other.connectedAccounts) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.connectedAccounts, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject0 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject0Authentication authentication); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject0Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject0Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0 other) { + authentication(other.getAuthentication()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + connectedAccounts(other.getConnectedAccounts()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject0StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject0Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject0Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject0Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0 build() { + return new EventStreamCloudEventConnectionDeletedObject0( + authentication, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + connectedAccounts, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java new file mode 100644 index 000000000..334700184 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject0Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java new file mode 100644 index 000000000..f7d362baf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.java @@ -0,0 +1,150 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts( + boolean active, Optional crossAppAccess, Map additionalProperties) { + this.active = active; + this.crossAppAccess = crossAppAccess; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @JsonProperty("cross_app_access") + public Optional getCrossAppAccess() { + return crossAppAccess; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts other) { + return active == other.active && crossAppAccess.equals(other.crossAppAccess); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.crossAppAccess); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage crossAppAccess(Optional crossAppAccess); + + _FinalStage crossAppAccess(Boolean crossAppAccess); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + private Optional crossAppAccess = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts other) { + active(other.getActive()); + crossAppAccess(other.getCrossAppAccess()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccess(Boolean crossAppAccess) { + this.crossAppAccess = Optional.ofNullable(crossAppAccess); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access", nulls = Nulls.SKIP) + public _FinalStage crossAppAccess(Optional crossAppAccess) { + this.crossAppAccess = crossAppAccess; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject0ConnectedAccounts( + active, crossAppAccess, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java new file mode 100644 index 000000000..172afd881 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject0Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject0Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java new file mode 100644 index 000000000..daf0272c1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional discoveryUrl, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.discoveryUrl = discoveryUrl; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0Options + && equalTo((EventStreamCloudEventConnectionDeletedObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && discoveryUrl.equals(other.discoveryUrl) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.discoveryUrl, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap attributeMap); + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + _FinalStage discoveryUrl(Optional discoveryUrl); + + _FinalStage discoveryUrl(String discoveryUrl); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + discoveryUrl(other.getDiscoveryUrl()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + @java.lang.Override + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public _FinalStage discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0Options build() { + return new EventStreamCloudEventConnectionDeletedObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + discoveryUrl, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java new file mode 100644 index 000000000..5e99d1347 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..f71aa3348 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum BIND_ALL = + new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BIND_ALL: + return visitor.visitBindAll(); + case USE_MAP: + return visitor.visitUseMap(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BIND_ALL, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBindAll(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java new file mode 100644 index 000000000..33abd9a08 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..759ee0900 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..b7a40364a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..efea7ae37 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..8ef666463 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java new file mode 100644 index 000000000..dea16359e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..c31b145f4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..7d3a6548a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..db2bc7785 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..ec8c01dd4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..36e85b119 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java new file mode 100644 index 000000000..68837e93a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum.java @@ -0,0 +1,87 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FRONT_CHANNEL: + return visitor.visitFrontChannel(); + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionDeletedObject0OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + FRONT_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitFrontChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java new file mode 100644 index 000000000..e5c8d30a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject0StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject0StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionDeletedObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject0StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject0StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedObject0StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java new file mode 100644 index 000000000..4ae5c52fc --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1 + && equalTo((EventStreamCloudEventConnectionDeletedObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject1 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject1Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject1Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject1StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject1Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject1Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject1Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1 build() { + return new EventStreamCloudEventConnectionDeletedObject1( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java new file mode 100644 index 000000000..27c4cf7d2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject1Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java new file mode 100644 index 000000000..ddd382827 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject1ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java new file mode 100644 index 000000000..11672d61b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject1Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject1Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java new file mode 100644 index 000000000..77422546d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional domain, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.domain = domain; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1Options + && equalTo((EventStreamCloudEventConnectionDeletedObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && domain.equals(other.domain) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.domain, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap attributeMap); + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + domain(other.getDomain()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1Options build() { + return new EventStreamCloudEventConnectionDeletedObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + domain, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java new file mode 100644 index 000000000..a14bb7bc2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..c8f7309e9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum BASIC_PROFILE = + new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USE_MAP: + return visitor.visitUseMap(); + case BASIC_PROFILE: + return visitor.visitBasicProfile(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BASIC_PROFILE, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBasicProfile(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java new file mode 100644 index 000000000..97b638374 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..b03b2ca83 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..a04f3bf23 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..57d40975b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..0d6544318 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java new file mode 100644 index 000000000..c3382601d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionDeletedObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..ce4014d70 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..bc91bed99 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..675a8ce11 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..1fefbdcc0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..3f4a51006 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java new file mode 100644 index 000000000..d7488b650 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionDeletedObject1OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java new file mode 100644 index 000000000..f668f7d1a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject1StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject1StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionDeletedObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject1StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject1StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OKTA: + return visitor.visitOkta(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionDeletedObject1StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OKTA, + + UNKNOWN + } + + public interface Visitor { + T visitOkta(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java new file mode 100644 index 000000000..341ffcd52 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2 + && equalTo((EventStreamCloudEventConnectionDeletedObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject2 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject2Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject2Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject2StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject2Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject2Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject2Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2 build() { + return new EventStreamCloudEventConnectionDeletedObject2( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java new file mode 100644 index 000000000..564e5b891 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject2Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java new file mode 100644 index 000000000..dff04fdf2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject2ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java new file mode 100644 index 000000000..640584a38 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject2Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java new file mode 100644 index 000000000..f45c5d3a5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2Options.java @@ -0,0 +1,1086 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional debug; + + private final Optional deflate; + + private final Optional destinationUrl; + + private final Optional disableSignout; + + private final Optional> fieldsMap; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional recipientUrl, + Optional requestTemplate, + Optional signOutEndpoint, + Optional userIdAttribute, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signOutEndpoint = signOutEndpoint; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. + */ + @JsonProperty("debug") + public Optional getDebug() { + return debug; + } + + /** + * @return When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. + */ + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; + } + + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. + */ + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + /** + * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. + */ + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + /** + * @return HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. + */ + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + /** + * @return Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template + */ + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + /** + * @return Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. + */ + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + /** + * @return Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2Options + && equalTo((EventStreamCloudEventConnectionDeletedObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signOutEndpoint.equals(other.signOutEndpoint) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.recipientUrl, + this.requestTemplate, + this.signOutEndpoint, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional + assertionDecryptionSettings = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional debug = Optional.empty(); + + private Optional deflate = Optional.empty(); + + private Optional destinationUrl = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional recipientUrl = Optional.empty(); + + private Optional requestTemplate = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signOutEndpoint(other.getSignOutEndpoint()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public Builder assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + public Builder assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm( + EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public Builder expires(Optional expires) { + this.expires = expires; + return this; + } + + public Builder expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding( + EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm( + EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public Builder signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + public Builder signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(EventStreamCloudEventConnectionDeletedObject2OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes.

+ */ + @JsonSetter(value = "debug", nulls = Nulls.SKIP) + public Builder debug(Optional debug) { + this.debug = debug; + return this; + } + + public Builder debug(Boolean debug) { + this.debug = Optional.ofNullable(debug); + return this; + } + + /** + *

When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding.

+ */ + @JsonSetter(value = "deflate", nulls = Nulls.SKIP) + public Builder deflate(Optional deflate) { + this.deflate = deflate; + return this; + } + + public Builder deflate(Boolean deflate) { + this.deflate = Optional.ofNullable(deflate); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "destinationUrl", nulls = Nulls.SKIP) + public Builder destinationUrl(Optional destinationUrl) { + this.destinationUrl = destinationUrl; + return this; + } + + public Builder destinationUrl(String destinationUrl) { + this.destinationUrl = Optional.ofNullable(destinationUrl); + return this; + } + + /** + *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

+ */ + @JsonSetter(value = "disableSignout", nulls = Nulls.SKIP) + public Builder disableSignout(Optional disableSignout) { + this.disableSignout = disableSignout; + return this; + } + + public Builder disableSignout(Boolean disableSignout) { + this.disableSignout = Optional.ofNullable(disableSignout); + return this; + } + + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) + public Builder fieldsMap(Optional> fieldsMap) { + this.fieldsMap = fieldsMap; + return this; + } + + public Builder fieldsMap(Map fieldsMap) { + this.fieldsMap = Optional.ofNullable(fieldsMap); + return this; + } + + /** + *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + return this; + } + + public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = Optional.ofNullable(globalTokenRevocationJwtIss); + return this; + } + + /** + *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + return this; + } + + public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = Optional.ofNullable(globalTokenRevocationJwtSub); + return this; + } + + /** + *

HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.

+ */ + @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) + public Builder metadataUrl(Optional metadataUrl) { + this.metadataUrl = metadataUrl; + return this; + } + + public Builder metadataUrl(String metadataUrl) { + this.metadataUrl = Optional.ofNullable(metadataUrl); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) + public Builder recipientUrl(Optional recipientUrl) { + this.recipientUrl = recipientUrl; + return this; + } + + public Builder recipientUrl(String recipientUrl) { + this.recipientUrl = Optional.ofNullable(recipientUrl); + return this; + } + + /** + *

Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template

+ */ + @JsonSetter(value = "requestTemplate", nulls = Nulls.SKIP) + public Builder requestTemplate(Optional requestTemplate) { + this.requestTemplate = requestTemplate; + return this; + } + + public Builder requestTemplate(String requestTemplate) { + this.requestTemplate = Optional.ofNullable(requestTemplate); + return this; + } + + /** + *

Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.

+ */ + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; + return this; + } + + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); + return this; + } + + /** + *

Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2Options build() { + return new EventStreamCloudEventConnectionDeletedObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + recipientUrl, + requestTemplate, + signOutEndpoint, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..871aba58a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..7b2cf2535 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..4870408d1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java new file mode 100644 index 000000000..e1b222492 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..1dc322a6d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..abc02369d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..49053668f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..90eba2155 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionDeletedObject2OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java new file mode 100644 index 000000000..5334bc9d9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject2OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject2OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionDeletedObject2OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java new file mode 100644 index 000000000..3495bc8ef --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject2StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject2StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionDeletedObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject2StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject2StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SAMLP: + return visitor.visitSamlp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionDeletedObject2StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SAMLP, + + UNKNOWN + } + + public interface Visitor { + T visitSamlp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java new file mode 100644 index 000000000..2a2e4b800 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3 + && equalTo((EventStreamCloudEventConnectionDeletedObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject3 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject3Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject3Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject3StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject3Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject3Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject3Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3 build() { + return new EventStreamCloudEventConnectionDeletedObject3( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java new file mode 100644 index 000000000..045d9cf6f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject3Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java new file mode 100644 index 000000000..48ea4a67d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject3ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java new file mode 100644 index 000000000..cd8ea9b51 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject3Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject3Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java new file mode 100644 index 000000000..63646efb7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3Options.java @@ -0,0 +1,980 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final String pingFederateBaseUrl; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + String pingFederateBaseUrl, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return URL provided by PingFederate which returns information used for creating the connection + */ + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3Options + && equalTo((EventStreamCloudEventConnectionDeletedObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.pingFederateBaseUrl); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ */ + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(EventStreamCloudEventConnectionDeletedObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings); + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + _FinalStage digestAlgorithm( + Optional digestAlgorithm); + + _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum digestAlgorithm); + + /** + *

Domain aliases for the connection

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + _FinalStage expires(Optional expires); + + _FinalStage expires(OffsetDateTime expires); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated( + Optional idpinitiated); + + _FinalStage idpinitiated(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated idpinitiated); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage protocolBinding( + Optional protocolBinding); + + _FinalStage protocolBinding( + EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm); + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage subject(Optional subject); + + _FinalStage subject(EventStreamCloudEventConnectionDeletedObject3OptionsSubject subject); + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional + assertionDecryptionSettings = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + return this; + } + + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ *

URL provided by PingFederate which returns information used for creating the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage subject(EventStreamCloudEventConnectionDeletedObject3OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding( + EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @java.lang.Override + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public _FinalStage expires(Optional expires) { + this.expires = expires; + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + /** + *

Domain aliases for the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3Options build() { + return new EventStreamCloudEventConnectionDeletedObject3Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + pingFederateBaseUrl, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..b354f8061 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..f63325d05 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..7e81d5aa1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java new file mode 100644 index 000000000..b39a8bfe9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..101516fe5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..5de0aa209 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..d3f5ef73c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..8503b7ce2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionDeletedObject3OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java new file mode 100644 index 000000000..e9ba608bd --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject3OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject3OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionDeletedObject3OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java new file mode 100644 index 000000000..a582b2e0f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject3StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject3StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionDeletedObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject3StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject3StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PINGFEDERATE: + return visitor.visitPingfederate(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionDeletedObject3StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PINGFEDERATE, + + UNKNOWN + } + + public interface Visitor { + T visitPingfederate(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java new file mode 100644 index 000000000..1f6b58026 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4 + && equalTo((EventStreamCloudEventConnectionDeletedObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject4 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject4Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject4Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject4 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject4StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject4Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject4Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject4Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject4 build() { + return new EventStreamCloudEventConnectionDeletedObject4( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java new file mode 100644 index 000000000..67b443a39 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject4Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject4Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject4Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject4Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java new file mode 100644 index 000000000..bd71b87c6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject4ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java new file mode 100644 index 000000000..9845b38db --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject4Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject4Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java new file mode 100644 index 000000000..a8c531168 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4Options.java @@ -0,0 +1,564 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject4Options { + private final Optional adfsServer; + + private final Optional certRolloverNotification; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> nonPersistentAttrs; + + private final Optional> prevThumbprints; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject4Options( + Optional adfsServer, + Optional certRolloverNotification, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> nonPersistentAttrs, + Optional> prevThumbprints, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.adfsServer = adfsServer; + this.certRolloverNotification = certRolloverNotification; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.nonPersistentAttrs = nonPersistentAttrs; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. + */ + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + /** + * @return Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject4Options + && equalTo((EventStreamCloudEventConnectionDeletedObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject4Options other) { + return adfsServer.equals(other.adfsServer) + && certRolloverNotification.equals(other.certRolloverNotification) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adfsServer, + this.certRolloverNotification, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.nonPersistentAttrs, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional adfsServer = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject4Options other) { + adfsServer(other.getAdfsServer()); + certRolloverNotification(other.getCertRolloverNotification()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.

+ */ + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + /** + *

Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Tenant domain

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject4Options build() { + return new EventStreamCloudEventConnectionDeletedObject4Options( + adfsServer, + certRolloverNotification, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + nonPersistentAttrs, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..53c9c1cea --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject4OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..fbee8844e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionDeletedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java new file mode 100644 index 000000000..cd59a31d9 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject4StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject4StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionDeletedObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject4StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject4StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ADFS: + return visitor.visitAdfs(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionDeletedObject4StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java new file mode 100644 index 000000000..98eb21f85 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5.java @@ -0,0 +1,515 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5 + && equalTo((EventStreamCloudEventConnectionDeletedObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject5 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject5Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy; + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject5 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject5Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject5Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject5Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject5 build() { + return new EventStreamCloudEventConnectionDeletedObject5( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java new file mode 100644 index 000000000..c1137d471 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject5Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject5Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject5Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject5Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java new file mode 100644 index 000000000..198d1a709 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject5ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java new file mode 100644 index 000000000..71f3f57af --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject5Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject5Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java new file mode 100644 index 000000000..44efba7a2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5Options.java @@ -0,0 +1,657 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject5Options { + private final Optional agentIp; + + private final Optional agentMode; + + private final Optional agentVersion; + + private final Optional bruteForceProtection; + + private final Optional certAuth; + + private final Optional> certs; + + private final Optional disableCache; + + private final Optional disableSelfServiceChangePassword; + + private final Optional> domainAliases; + + private final Optional iconUrl; + + private final Optional> ips; + + private final Optional kerberos; + + private final Optional> nonPersistentAttrs; + + private final Optional + setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject5Options( + Optional agentIp, + Optional agentMode, + Optional agentVersion, + Optional bruteForceProtection, + Optional certAuth, + Optional> certs, + Optional disableCache, + Optional disableSelfServiceChangePassword, + Optional> domainAliases, + Optional iconUrl, + Optional> ips, + Optional kerberos, + Optional> nonPersistentAttrs, + Optional + setUserRootAttributes, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Map additionalProperties) { + this.agentIp = agentIp; + this.agentMode = agentMode; + this.agentVersion = agentVersion; + this.bruteForceProtection = bruteForceProtection; + this.certAuth = certAuth; + this.certs = certs; + this.disableCache = disableCache; + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + this.domainAliases = domainAliases; + this.iconUrl = iconUrl; + this.ips = ips; + this.kerberos = kerberos; + this.nonPersistentAttrs = nonPersistentAttrs; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). + */ + @JsonProperty("agentIP") + public Optional getAgentIp() { + return agentIp; + } + + /** + * @return When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). + */ + @JsonProperty("agentMode") + public Optional getAgentMode() { + return agentMode; + } + + /** + * @return Version identifier of the installed AD connector agent software (managed by the AD Connector agent). + */ + @JsonProperty("agentVersion") + public Optional getAgentVersion() { + return agentVersion; + } + + /** + * @return Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + /** + * @return Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint + */ + @JsonProperty("certAuth") + public Optional getCertAuth() { + return certAuth; + } + + /** + * @return Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). + */ + @JsonProperty("certs") + public Optional> getCerts() { + return certs; + } + + /** + * @return When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory + */ + @JsonProperty("disable_cache") + public Optional getDisableCache() { + return disableCache; + } + + /** + * @return When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets + */ + @JsonProperty("disable_self_service_change_password") + public Optional getDisableSelfServiceChangePassword() { + return disableSelfServiceChangePassword; + } + + /** + * @return List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. + */ + @JsonProperty("ips") + public Optional> getIps() { + return ips; + } + + /** + * @return Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges + */ + @JsonProperty("kerberos") + public Optional getKerberos() { + return kerberos; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Primary AD domain hint used for HRD and discovery. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject5Options + && equalTo((EventStreamCloudEventConnectionDeletedObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject5Options other) { + return agentIp.equals(other.agentIp) + && agentMode.equals(other.agentMode) + && agentVersion.equals(other.agentVersion) + && bruteForceProtection.equals(other.bruteForceProtection) + && certAuth.equals(other.certAuth) + && certs.equals(other.certs) + && disableCache.equals(other.disableCache) + && disableSelfServiceChangePassword.equals(other.disableSelfServiceChangePassword) + && domainAliases.equals(other.domainAliases) + && iconUrl.equals(other.iconUrl) + && ips.equals(other.ips) + && kerberos.equals(other.kerberos) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.agentIp, + this.agentMode, + this.agentVersion, + this.bruteForceProtection, + this.certAuth, + this.certs, + this.disableCache, + this.disableSelfServiceChangePassword, + this.domainAliases, + this.iconUrl, + this.ips, + this.kerberos, + this.nonPersistentAttrs, + this.setUserRootAttributes, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional agentIp = Optional.empty(); + + private Optional agentMode = Optional.empty(); + + private Optional agentVersion = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional certAuth = Optional.empty(); + + private Optional> certs = Optional.empty(); + + private Optional disableCache = Optional.empty(); + + private Optional disableSelfServiceChangePassword = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> ips = Optional.empty(); + + private Optional kerberos = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject5Options other) { + agentIp(other.getAgentIp()); + agentMode(other.getAgentMode()); + agentVersion(other.getAgentVersion()); + bruteForceProtection(other.getBruteForceProtection()); + certAuth(other.getCertAuth()); + certs(other.getCerts()); + disableCache(other.getDisableCache()); + disableSelfServiceChangePassword(other.getDisableSelfServiceChangePassword()); + domainAliases(other.getDomainAliases()); + iconUrl(other.getIconUrl()); + ips(other.getIps()); + kerberos(other.getKerberos()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentIP", nulls = Nulls.SKIP) + public Builder agentIp(Optional agentIp) { + this.agentIp = agentIp; + return this; + } + + public Builder agentIp(String agentIp) { + this.agentIp = Optional.ofNullable(agentIp); + return this; + } + + /** + *

When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentMode", nulls = Nulls.SKIP) + public Builder agentMode(Optional agentMode) { + this.agentMode = agentMode; + return this; + } + + public Builder agentMode(Boolean agentMode) { + this.agentMode = Optional.ofNullable(agentMode); + return this; + } + + /** + *

Version identifier of the installed AD connector agent software (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentVersion", nulls = Nulls.SKIP) + public Builder agentVersion(Optional agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + public Builder agentVersion(String agentVersion) { + this.agentVersion = Optional.ofNullable(agentVersion); + return this; + } + + /** + *

Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures.

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + /** + *

Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint

+ */ + @JsonSetter(value = "certAuth", nulls = Nulls.SKIP) + public Builder certAuth(Optional certAuth) { + this.certAuth = certAuth; + return this; + } + + public Builder certAuth(Boolean certAuth) { + this.certAuth = Optional.ofNullable(certAuth); + return this; + } + + /** + *

Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "certs", nulls = Nulls.SKIP) + public Builder certs(Optional> certs) { + this.certs = certs; + return this; + } + + public Builder certs(List certs) { + this.certs = Optional.ofNullable(certs); + return this; + } + + /** + *

When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory

+ */ + @JsonSetter(value = "disable_cache", nulls = Nulls.SKIP) + public Builder disableCache(Optional disableCache) { + this.disableCache = disableCache; + return this; + } + + public Builder disableCache(Boolean disableCache) { + this.disableCache = Optional.ofNullable(disableCache); + return this; + } + + /** + *

When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets

+ */ + @JsonSetter(value = "disable_self_service_change_password", nulls = Nulls.SKIP) + public Builder disableSelfServiceChangePassword(Optional disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + return this; + } + + public Builder disableSelfServiceChangePassword(Boolean disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = Optional.ofNullable(disableSelfServiceChangePassword); + return this; + } + + /** + *

List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication.

+ */ + @JsonSetter(value = "ips", nulls = Nulls.SKIP) + public Builder ips(Optional> ips) { + this.ips = ips; + return this; + } + + public Builder ips(List ips) { + this.ips = Optional.ofNullable(ips); + return this; + } + + /** + *

Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges

+ */ + @JsonSetter(value = "kerberos", nulls = Nulls.SKIP) + public Builder kerberos(Optional kerberos) { + this.kerberos = kerberos; + return this; + } + + public Builder kerberos(Boolean kerberos) { + this.kerberos = Optional.ofNullable(kerberos); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + /** + *

The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Primary AD domain hint used for HRD and discovery.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + public EventStreamCloudEventConnectionDeletedObject5Options build() { + return new EventStreamCloudEventConnectionDeletedObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + nonPersistentAttrs, + setUserRootAttributes, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..92898feed --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject5OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java new file mode 100644 index 000000000..720d6e245 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject5StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject5StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject5StrategyEnum AD = + new EventStreamCloudEventConnectionDeletedObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject5StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject5StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AD: + return visitor.visitAd(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionDeletedObject5StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java new file mode 100644 index 000000000..ccba98654 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6 + && equalTo((EventStreamCloudEventConnectionDeletedObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject6 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject6Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject6Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject6StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject6Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject6Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject6Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6 build() { + return new EventStreamCloudEventConnectionDeletedObject6( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java new file mode 100644 index 000000000..3b7995c65 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject6Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java new file mode 100644 index 000000000..6db0e020f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject6ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java new file mode 100644 index 000000000..768131cf3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject6Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject6Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java new file mode 100644 index 000000000..7904b2bb0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6Options.java @@ -0,0 +1,1112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6Options { + private final Optional adminAccessTokenExpiresin; + + private final Optional allowSettingLoginScopes; + + private final Optional apiEnableGroups; + + private final Optional apiEnableUsers; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional email; + + private final Optional extAgreedTerms; + + private final Optional extGroups; + + private final Optional extGroupsExtended; + + private final Optional extIsAdmin; + + private final Optional extIsSuspended; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional handleLoginFromSocial; + + private final Optional iconUrl; + + private final Optional mapUserIdToId; + + private final Optional> nonPersistentAttrs; + + private final Optional profile; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6Options( + Optional adminAccessTokenExpiresin, + Optional allowSettingLoginScopes, + Optional apiEnableGroups, + Optional apiEnableUsers, + String clientId, + Optional domain, + Optional> domainAliases, + Optional email, + Optional extAgreedTerms, + Optional extGroups, + Optional extGroupsExtended, + Optional extIsAdmin, + Optional extIsSuspended, + Optional + federatedConnectionsAccessTokens, + Optional handleLoginFromSocial, + Optional iconUrl, + Optional mapUserIdToId, + Optional> nonPersistentAttrs, + Optional profile, + Optional> scope, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional> upstreamParams, + Map additionalProperties) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; + this.apiEnableUsers = apiEnableUsers; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.email = email; + this.extAgreedTerms = extAgreedTerms; + this.extGroups = extGroups; + this.extGroupsExtended = extGroupsExtended; + this.extIsAdmin = extIsAdmin; + this.extIsSuspended = extIsSuspended; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.handleLoginFromSocial = handleLoginFromSocial; + this.iconUrl = iconUrl; + this.mapUserIdToId = mapUserIdToId; + this.nonPersistentAttrs = nonPersistentAttrs; + this.profile = profile; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. + */ + @JsonProperty("admin_access_token_expiresin") + public Optional getAdminAccessTokenExpiresin() { + return adminAccessTokenExpiresin; + } + + /** + * @return When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. + */ + @JsonProperty("allow_setting_login_scopes") + public Optional getAllowSettingLoginScopes() { + return allowSettingLoginScopes; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. + */ + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return Primary Google Workspace domain name that users must belong to. + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return Whether the OAuth flow requests the email scope. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Fetches the agreedToTerms flag from the Google Directory profile. + */ + @JsonProperty("ext_agreed_terms") + public Optional getExtAgreedTerms() { + return extAgreedTerms; + } + + /** + * @return Enables enrichment with Google group memberships (required for ext_groups_extended). + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true. + */ + @JsonProperty("ext_groups_extended") + public Optional getExtGroupsExtended() { + return extGroupsExtended; + } + + /** + * @return Fetches the Google Directory admin flag for the signing-in user. + */ + @JsonProperty("ext_is_admin") + public Optional getExtIsAdmin() { + return extIsAdmin; + } + + /** + * @return Fetches the Google Directory suspended flag for the signing-in user. + */ + @JsonProperty("ext_is_suspended") + public Optional getExtIsSuspended() { + return extIsSuspended; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. + */ + @JsonProperty("handle_login_from_social") + public Optional getHandleLoginFromSocial() { + return handleLoginFromSocial; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. + */ + @JsonProperty("map_user_id_to_id") + public Optional getMapUserIdToId() { + return mapUserIdToId; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether the OAuth flow requests the profile scope. + */ + @JsonProperty("profile") + public Optional getProfile() { + return profile; + } + + /** + * @return Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The Google Workspace primary domain used to identify the organization during authentication. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6Options + && equalTo((EventStreamCloudEventConnectionDeletedObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject6Options other) { + return adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) + && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) + && apiEnableUsers.equals(other.apiEnableUsers) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && email.equals(other.email) + && extAgreedTerms.equals(other.extAgreedTerms) + && extGroups.equals(other.extGroups) + && extGroupsExtended.equals(other.extGroupsExtended) + && extIsAdmin.equals(other.extIsAdmin) + && extIsSuspended.equals(other.extIsSuspended) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && handleLoginFromSocial.equals(other.handleLoginFromSocial) + && iconUrl.equals(other.iconUrl) + && mapUserIdToId.equals(other.mapUserIdToId) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && profile.equals(other.profile) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adminAccessTokenExpiresin, + this.allowSettingLoginScopes, + this.apiEnableGroups, + this.apiEnableUsers, + this.clientId, + this.domain, + this.domainAliases, + this.email, + this.extAgreedTerms, + this.extGroups, + this.extGroupsExtended, + this.extIsAdmin, + this.extIsSuspended, + this.federatedConnectionsAccessTokens, + this.handleLoginFromSocial, + this.iconUrl, + this.mapUserIdToId, + this.nonPersistentAttrs, + this.profile, + this.scope, + this.setUserRootAttributes, + this.tenantDomain, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin); + + _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin); + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes); + + _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + _FinalStage email(Optional email); + + _FinalStage email(Boolean email); + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + _FinalStage extAgreedTerms(Optional extAgreedTerms); + + _FinalStage extAgreedTerms(Boolean extAgreedTerms); + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + _FinalStage extGroupsExtended(Optional extGroupsExtended); + + _FinalStage extGroupsExtended(Boolean extGroupsExtended); + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + _FinalStage extIsAdmin(Optional extIsAdmin); + + _FinalStage extIsAdmin(Boolean extIsAdmin); + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); + + _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + _FinalStage mapUserIdToId(Optional mapUserIdToId); + + _FinalStage mapUserIdToId(Boolean mapUserIdToId); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + _FinalStage profile(Optional profile); + + _FinalStage profile(Boolean profile); + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional> upstreamParams = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional profile = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional mapUserIdToId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional handleLoginFromSocial = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extIsAdmin = Optional.empty(); + + private Optional extGroupsExtended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); + + private Optional email = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + private Optional apiEnableGroups = Optional.empty(); + + private Optional allowSettingLoginScopes = Optional.empty(); + + private Optional adminAccessTokenExpiresin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject6Options other) { + adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); + allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); + apiEnableUsers(other.getApiEnableUsers()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + email(other.getEmail()); + extAgreedTerms(other.getExtAgreedTerms()); + extGroups(other.getExtGroups()); + extGroupsExtended(other.getExtGroupsExtended()); + extIsAdmin(other.getExtIsAdmin()); + extIsSuspended(other.getExtIsSuspended()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + handleLoginFromSocial(other.getHandleLoginFromSocial()); + iconUrl(other.getIconUrl()); + mapUserIdToId(other.getMapUserIdToId()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + profile(other.getProfile()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage profile(Boolean profile) { + this.profile = Optional.ofNullable(profile); + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + @java.lang.Override + @JsonSetter(value = "profile", nulls = Nulls.SKIP) + public _FinalStage profile(Optional profile) { + this.profile = profile; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage mapUserIdToId(Boolean mapUserIdToId) { + this.mapUserIdToId = Optional.ofNullable(mapUserIdToId); + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + @java.lang.Override + @JsonSetter(value = "map_user_id_to_id", nulls = Nulls.SKIP) + public _FinalStage mapUserIdToId(Optional mapUserIdToId) { + this.mapUserIdToId = mapUserIdToId; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial) { + this.handleLoginFromSocial = Optional.ofNullable(handleLoginFromSocial); + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "handle_login_from_social", nulls = Nulls.SKIP) + public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial) { + this.handleLoginFromSocial = handleLoginFromSocial; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsAdmin(Boolean extIsAdmin) { + this.extIsAdmin = Optional.ofNullable(extIsAdmin); + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_admin", nulls = Nulls.SKIP) + public _FinalStage extIsAdmin(Optional extIsAdmin) { + this.extIsAdmin = extIsAdmin; + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroupsExtended(Boolean extGroupsExtended) { + this.extGroupsExtended = Optional.ofNullable(extGroupsExtended); + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups_extended", nulls = Nulls.SKIP) + public _FinalStage extGroupsExtended(Optional extGroupsExtended) { + this.extGroupsExtended = extGroupsExtended; + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage email(Boolean email) { + this.email = Optional.ofNullable(email); + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes) { + this.allowSettingLoginScopes = Optional.ofNullable(allowSettingLoginScopes); + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + @java.lang.Override + @JsonSetter(value = "allow_setting_login_scopes", nulls = Nulls.SKIP) + public _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes) { + this.allowSettingLoginScopes = allowSettingLoginScopes; + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = Optional.ofNullable(adminAccessTokenExpiresin); + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_access_token_expiresin", nulls = Nulls.SKIP) + public _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6Options build() { + return new EventStreamCloudEventConnectionDeletedObject6Options( + adminAccessTokenExpiresin, + allowSettingLoginScopes, + apiEnableGroups, + apiEnableUsers, + clientId, + domain, + domainAliases, + email, + extAgreedTerms, + extGroups, + extGroupsExtended, + extIsAdmin, + extIsSuspended, + federatedConnectionsAccessTokens, + handleLoginFromSocial, + iconUrl, + mapUserIdToId, + nonPersistentAttrs, + profile, + scope, + setUserRootAttributes, + tenantDomain, + upstreamParams, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..38900ced8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject6OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..67e83fdcf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject6OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java new file mode 100644 index 000000000..908c47beb --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject6StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject6StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionDeletedObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject6StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject6StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionDeletedObject6StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GOOGLE_APPS, + + UNKNOWN + } + + public interface Visitor { + T visitGoogleApps(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java new file mode 100644 index 000000000..4c72a540b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionDeletedObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7 + && equalTo((EventStreamCloudEventConnectionDeletedObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionDeletedObject7 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject7Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionDeletedObject7Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionDeletedObject7StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionDeletedObject7Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionDeletedObject7Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionDeletedObject7Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7 build() { + return new EventStreamCloudEventConnectionDeletedObject7( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java new file mode 100644 index 000000000..e98c2972c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7Authentication + && equalTo((EventStreamCloudEventConnectionDeletedObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7Authentication build() { + return new EventStreamCloudEventConnectionDeletedObject7Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java new file mode 100644 index 000000000..22ee69c88 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionDeletedObject7ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java new file mode 100644 index 000000000..b290f82f3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionDeletedObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionDeletedObject7Metadata build() { + return new EventStreamCloudEventConnectionDeletedObject7Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java new file mode 100644 index 000000000..cfd7eb1ce --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7Options.java @@ -0,0 +1,1297 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionDeletedObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7Options { + private final Optional apiEnableUsers; + + private final Optional appDomain; + + private final Optional appId; + + private final Optional basicProfile; + + private final Optional certRolloverNotification; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional extGroups; + + private final Optional extNestedGroups; + + private final Optional extProfile; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional granted; + + private final Optional iconUrl; + + private final Optional identityApi; + + private final Optional maxGroupsToRetrieve; + + private final Optional> nonPersistentAttrs; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional tenantDomain; + + private final Optional tenantId; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional useWsfed; + + private final Optional useCommonEndpoint; + + private final Optional useridAttribute; + + private final Optional waadProtocol; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7Options( + Optional apiEnableUsers, + Optional appDomain, + Optional appId, + Optional basicProfile, + Optional certRolloverNotification, + String clientId, + Optional domain, + Optional> domainAliases, + Optional extGroups, + Optional extNestedGroups, + Optional extProfile, + Optional + federatedConnectionsAccessTokens, + Optional granted, + Optional iconUrl, + Optional identityApi, + Optional maxGroupsToRetrieve, + Optional> nonPersistentAttrs, + Optional> scope, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional tenantDomain, + Optional tenantId, + Optional> thumbprints, + Optional> upstreamParams, + Optional useWsfed, + Optional useCommonEndpoint, + Optional useridAttribute, + Optional waadProtocol, + Map additionalProperties) { + this.apiEnableUsers = apiEnableUsers; + this.appDomain = appDomain; + this.appId = appId; + this.basicProfile = basicProfile; + this.certRolloverNotification = certRolloverNotification; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.extGroups = extGroups; + this.extNestedGroups = extNestedGroups; + this.extProfile = extProfile; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.granted = granted; + this.iconUrl = iconUrl; + this.identityApi = identityApi; + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + this.nonPersistentAttrs = nonPersistentAttrs; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.tenantDomain = tenantDomain; + this.tenantId = tenantId; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.useWsfed = useWsfed; + this.useCommonEndpoint = useCommonEndpoint; + this.useridAttribute = useridAttribute; + this.waadProtocol = waadProtocol; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enable users API + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. + */ + @JsonProperty("app_domain") + public Optional getAppDomain() { + return appDomain; + } + + /** + * @return The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. + */ + @JsonProperty("app_id") + public Optional getAppId() { + return appId; + } + + /** + * @return Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. + */ + @JsonProperty("basic_profile") + public Optional getBasicProfile() { + return basicProfile; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. + */ + @JsonProperty("ext_nested_groups") + public Optional getExtNestedGroups() { + return extNestedGroups; + } + + /** + * @return When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. + */ + @JsonProperty("ext_profile") + public Optional getExtProfile() { + return extProfile; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. + */ + @JsonProperty("granted") + public Optional getGranted() { + return granted; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("identity_api") + public Optional getIdentityApi() { + return identityApi; + } + + /** + * @return Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. + */ + @JsonProperty("max_groups_to_retrieve") + public Optional getMaxGroupsToRetrieve() { + return maxGroupsToRetrieve; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. + */ + @JsonProperty("tenantId") + public Optional getTenantId() { + return tenantId; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. + */ + @JsonProperty("use_wsfed") + public Optional getUseWsfed() { + return useWsfed; + } + + /** + * @return When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. + */ + @JsonProperty("useCommonEndpoint") + public Optional getUseCommonEndpoint() { + return useCommonEndpoint; + } + + @JsonProperty("userid_attribute") + public Optional getUseridAttribute() { + return useridAttribute; + } + + @JsonProperty("waad_protocol") + public Optional getWaadProtocol() { + return waadProtocol; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7Options + && equalTo((EventStreamCloudEventConnectionDeletedObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionDeletedObject7Options other) { + return apiEnableUsers.equals(other.apiEnableUsers) + && appDomain.equals(other.appDomain) + && appId.equals(other.appId) + && basicProfile.equals(other.basicProfile) + && certRolloverNotification.equals(other.certRolloverNotification) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && extGroups.equals(other.extGroups) + && extNestedGroups.equals(other.extNestedGroups) + && extProfile.equals(other.extProfile) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && granted.equals(other.granted) + && iconUrl.equals(other.iconUrl) + && identityApi.equals(other.identityApi) + && maxGroupsToRetrieve.equals(other.maxGroupsToRetrieve) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && tenantDomain.equals(other.tenantDomain) + && tenantId.equals(other.tenantId) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && useWsfed.equals(other.useWsfed) + && useCommonEndpoint.equals(other.useCommonEndpoint) + && useridAttribute.equals(other.useridAttribute) + && waadProtocol.equals(other.waadProtocol); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.apiEnableUsers, + this.appDomain, + this.appId, + this.basicProfile, + this.certRolloverNotification, + this.clientId, + this.domain, + this.domainAliases, + this.extGroups, + this.extNestedGroups, + this.extProfile, + this.federatedConnectionsAccessTokens, + this.granted, + this.iconUrl, + this.identityApi, + this.maxGroupsToRetrieve, + this.nonPersistentAttrs, + this.scope, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.tenantDomain, + this.tenantId, + this.thumbprints, + this.upstreamParams, + this.useWsfed, + this.useCommonEndpoint, + this.useridAttribute, + this.waadProtocol); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionDeletedObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + _FinalStage appDomain(Optional appDomain); + + _FinalStage appDomain(String appDomain); + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); + + _FinalStage appId(String appId); + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); + + _FinalStage basicProfile(Boolean basicProfile); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + _FinalStage extNestedGroups(Optional extNestedGroups); + + _FinalStage extNestedGroups(Boolean extNestedGroups); + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi( + Optional identityApi); + + _FinalStage identityApi(EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum identityApi); + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute( + Optional useridAttribute); + + _FinalStage useridAttribute( + EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol(EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = + Optional.empty(); + + private Optional useridAttribute = + Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantId = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional maxGroupsToRetrieve = Optional.empty(); + + private Optional identityApi = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional basicProfile = Optional.empty(); + + private Optional appId = Optional.empty(); + + private Optional appDomain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionDeletedObject7Options other) { + apiEnableUsers(other.getApiEnableUsers()); + appDomain(other.getAppDomain()); + appId(other.getAppId()); + basicProfile(other.getBasicProfile()); + certRolloverNotification(other.getCertRolloverNotification()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + extGroups(other.getExtGroups()); + extNestedGroups(other.getExtNestedGroups()); + extProfile(other.getExtProfile()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + granted(other.getGranted()); + iconUrl(other.getIconUrl()); + identityApi(other.getIdentityApi()); + maxGroupsToRetrieve(other.getMaxGroupsToRetrieve()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + tenantDomain(other.getTenantDomain()); + tenantId(other.getTenantId()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + useWsfed(other.getUseWsfed()); + useCommonEndpoint(other.getUseCommonEndpoint()); + useridAttribute(other.getUseridAttribute()); + waadProtocol(other.getWaadProtocol()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage waadProtocol( + EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); + return this; + } + + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol( + Optional waadProtocol) { + this.waadProtocol = waadProtocol; + return this; + } + + @java.lang.Override + public _FinalStage useridAttribute( + EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); + return this; + } + + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute( + Optional useridAttribute) { + this.useridAttribute = useridAttribute; + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useWsfed(Boolean useWsfed) { + this.useWsfed = Optional.ofNullable(useWsfed); + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + return this; + } + + @java.lang.Override + public _FinalStage identityApi( + EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum identityApi) { + this.identityApi = Optional.ofNullable(identityApi); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi( + Optional identityApi) { + this.identityApi = identityApi; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage granted(Boolean granted) { + this.granted = Optional.ofNullable(granted); + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) + public _FinalStage extNestedGroups(Optional extNestedGroups) { + this.extNestedGroups = extNestedGroups; + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public _FinalStage basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; + return this; + } + + /** + *

Enable users API

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7Options build() { + return new EventStreamCloudEventConnectionDeletedObject7Options( + apiEnableUsers, + appDomain, + appId, + basicProfile, + certRolloverNotification, + clientId, + domain, + domainAliases, + extGroups, + extNestedGroups, + extProfile, + federatedConnectionsAccessTokens, + granted, + iconUrl, + identityApi, + maxGroupsToRetrieve, + nonPersistentAttrs, + scope, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + tenantDomain, + tenantId, + thumbprints, + upstreamParams, + useWsfed, + useCommonEndpoint, + useridAttribute, + waadProtocol, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..0902bcd4f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionDeletedObject7OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java new file mode 100644 index 000000000..ab3577ae8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = new EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AZURE_ACTIVE_DIRECTORY_V10: + return visitor.visitAzureActiveDirectoryV10(); + case MICROSOFT_IDENTITY_PLATFORM_V20: + return visitor.visitMicrosoftIdentityPlatformV20(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum valueOf(String value) { + switch (value) { + case "azure-active-directory-v1.0": + return AZURE_ACTIVE_DIRECTORY_V10; + case "microsoft-identity-platform-v2.0": + return MICROSOFT_IDENTITY_PLATFORM_V20; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsIdentityApiEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + MICROSOFT_IDENTITY_PLATFORM_V20, + + AZURE_ACTIVE_DIRECTORY_V10, + + UNKNOWN + } + + public interface Visitor { + T visitMicrosoftIdentityPlatformV20(); + + T visitAzureActiveDirectoryV10(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..dba951e1d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..3aed2c1c3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java new file mode 100644 index 000000000..40911d83f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SUB: + return visitor.visitSub(); + case OID: + return visitor.visitOid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum valueOf(String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsUseridAttributeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OID, + + SUB, + + UNKNOWN + } + + public interface Visitor { + T visitOid(); + + T visitSub(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java new file mode 100644 index 000000000..2e0c4ba80 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID_CONNECT: + return visitor.visitOpenidConnect(); + case WS_FEDERATION: + return visitor.visitWsFederation(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionDeletedObject7OptionsWaadProtocolEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WS_FEDERATION, + + OPENID_CONNECT, + + UNKNOWN + } + + public interface Visitor { + T visitWsFederation(); + + T visitOpenidConnect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java new file mode 100644 index 000000000..5ffde5749 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedObject7StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedObject7StrategyEnum { + public static final EventStreamCloudEventConnectionDeletedObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionDeletedObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedObject7StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionDeletedObject7StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WAAD: + return visitor.visitWaad(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionDeletedObject7StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java new file mode 100644 index 000000000..e9f99505c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionDeletedTypeEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionDeletedTypeEnum { + public static final EventStreamCloudEventConnectionDeletedTypeEnum CONNECTION_DELETED = + new EventStreamCloudEventConnectionDeletedTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionDeletedTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionDeletedTypeEnum + && this.string.equals(((EventStreamCloudEventConnectionDeletedTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionDeletedTypeEnum valueOf(String value) { + switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; + default: + return new EventStreamCloudEventConnectionDeletedTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_DELETED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionDeleted(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java new file mode 100644 index 000000000..28790617d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdated.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdated.Builder.class) +public final class EventStreamCloudEventConnectionUpdated { + private final String offset; + + private final EventStreamCloudEventConnectionUpdatedCloudEvent event; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdated( + String offset, + EventStreamCloudEventConnectionUpdatedCloudEvent event, + Map additionalProperties) { + this.offset = offset; + this.event = event; + this.additionalProperties = additionalProperties; + } + + /** + * @return Opaque cursor representing position in the stream. Pass as the from query parameter to resume. + */ + @JsonProperty("offset") + public String getOffset() { + return offset; + } + + @JsonProperty("event") + public EventStreamCloudEventConnectionUpdatedCloudEvent getEvent() { + return event; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdated + && equalTo((EventStreamCloudEventConnectionUpdated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdated other) { + return offset.equals(other.offset) && event.equals(other.event); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.offset, this.event); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static OffsetStage builder() { + return new Builder(); + } + + public interface OffsetStage { + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ */ + EventStage offset(@NotNull String offset); + + Builder from(EventStreamCloudEventConnectionUpdated other); + } + + public interface EventStage { + _FinalStage event(@NotNull EventStreamCloudEventConnectionUpdatedCloudEvent event); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdated build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements OffsetStage, EventStage, _FinalStage { + private String offset; + + private EventStreamCloudEventConnectionUpdatedCloudEvent event; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdated other) { + offset(other.getOffset()); + event(other.getEvent()); + return this; + } + + /** + *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ *

Opaque cursor representing position in the stream. Pass as the from query parameter to resume.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("offset") + public EventStage offset(@NotNull String offset) { + this.offset = Objects.requireNonNull(offset, "offset must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("event") + public _FinalStage event(@NotNull EventStreamCloudEventConnectionUpdatedCloudEvent event) { + this.event = Objects.requireNonNull(event, "event must not be null"); + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdated build() { + return new EventStreamCloudEventConnectionUpdated(offset, event, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java new file mode 100644 index 000000000..3bbeb7109 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEvent.java @@ -0,0 +1,396 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedCloudEvent.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedCloudEvent { + private final EventStreamCloudEventSpecVersionEnum specversion; + + private final EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type; + + private final String source; + + private final String id; + + private final OffsetDateTime time; + + private final EventStreamCloudEventConnectionUpdatedData data; + + private final String a0Tenant; + + private final String a0Stream; + + private final Optional a0Purpose; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedCloudEvent( + EventStreamCloudEventSpecVersionEnum specversion, + EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type, + String source, + String id, + OffsetDateTime time, + EventStreamCloudEventConnectionUpdatedData data, + String a0Tenant, + String a0Stream, + Optional a0Purpose, + Map additionalProperties) { + this.specversion = specversion; + this.type = type; + this.source = source; + this.id = id; + this.time = time; + this.data = data; + this.a0Tenant = a0Tenant; + this.a0Stream = a0Stream; + this.a0Purpose = a0Purpose; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("specversion") + public EventStreamCloudEventSpecVersionEnum getSpecversion() { + return specversion; + } + + @JsonProperty("type") + public EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum getType() { + return type; + } + + /** + * @return The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'. + */ + @JsonProperty("source") + public String getSource() { + return source; + } + + /** + * @return A unique identifier for the event. + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return An ISO-8601 timestamp indicating when the event physically occurred. + */ + @JsonProperty("time") + public OffsetDateTime getTime() { + return time; + } + + @JsonProperty("data") + public EventStreamCloudEventConnectionUpdatedData getData() { + return data; + } + + /** + * @return The auth0 tenant ID to which the event is associated. + */ + @JsonProperty("a0tenant") + public String getA0Tenant() { + return a0Tenant; + } + + /** + * @return The auth0 event stream ID of the stream the event was delivered on. + */ + @JsonProperty("a0stream") + public String getA0Stream() { + return a0Stream; + } + + @JsonProperty("a0purpose") + public Optional getA0Purpose() { + return a0Purpose; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedCloudEvent + && equalTo((EventStreamCloudEventConnectionUpdatedCloudEvent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedCloudEvent other) { + return specversion.equals(other.specversion) + && type.equals(other.type) + && source.equals(other.source) + && id.equals(other.id) + && time.equals(other.time) + && data.equals(other.data) + && a0Tenant.equals(other.a0Tenant) + && a0Stream.equals(other.a0Stream) + && a0Purpose.equals(other.a0Purpose); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.specversion, + this.type, + this.source, + this.id, + this.time, + this.data, + this.a0Tenant, + this.a0Stream, + this.a0Purpose); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static SpecversionStage builder() { + return new Builder(); + } + + public interface SpecversionStage { + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); + + Builder from(EventStreamCloudEventConnectionUpdatedCloudEvent other); + } + + public interface TypeStage { + SourceStage type(@NotNull EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type); + } + + public interface SourceStage { + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ */ + IdStage source(@NotNull String source); + } + + public interface IdStage { + /** + *

A unique identifier for the event.

+ */ + TimeStage id(@NotNull String id); + } + + public interface TimeStage { + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ */ + DataStage time(@NotNull OffsetDateTime time); + } + + public interface DataStage { + A0TenantStage data(@NotNull EventStreamCloudEventConnectionUpdatedData data); + } + + public interface A0TenantStage { + /** + *

The auth0 tenant ID to which the event is associated.

+ */ + A0StreamStage a0Tenant(@NotNull String a0Tenant); + } + + public interface A0StreamStage { + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ */ + _FinalStage a0Stream(@NotNull String a0Stream); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedCloudEvent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage a0Purpose(Optional a0Purpose); + + _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder + implements SpecversionStage, + TypeStage, + SourceStage, + IdStage, + TimeStage, + DataStage, + A0TenantStage, + A0StreamStage, + _FinalStage { + private EventStreamCloudEventSpecVersionEnum specversion; + + private EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type; + + private String source; + + private String id; + + private OffsetDateTime time; + + private EventStreamCloudEventConnectionUpdatedData data; + + private String a0Tenant; + + private String a0Stream; + + private Optional a0Purpose = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedCloudEvent other) { + specversion(other.getSpecversion()); + type(other.getType()); + source(other.getSource()); + id(other.getId()); + time(other.getTime()); + data(other.getData()); + a0Tenant(other.getA0Tenant()); + a0Stream(other.getA0Stream()); + a0Purpose(other.getA0Purpose()); + return this; + } + + @java.lang.Override + @JsonSetter("specversion") + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { + this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("type") + public SourceStage type(@NotNull EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum type) { + this.type = Objects.requireNonNull(type, "type must not be null"); + return this; + } + + /** + *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ *

The source of the event. This will take the form 'urn:auth0:<tenant>.<domain>'.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("source") + public IdStage source(@NotNull String source) { + this.source = Objects.requireNonNull(source, "source must not be null"); + return this; + } + + /** + *

A unique identifier for the event.

+ *

A unique identifier for the event.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public TimeStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

An ISO-8601 timestamp indicating when the event physically occurred.

+ *

An ISO-8601 timestamp indicating when the event physically occurred.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("time") + public DataStage time(@NotNull OffsetDateTime time) { + this.time = Objects.requireNonNull(time, "time must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("data") + public A0TenantStage data(@NotNull EventStreamCloudEventConnectionUpdatedData data) { + this.data = Objects.requireNonNull(data, "data must not be null"); + return this; + } + + /** + *

The auth0 tenant ID to which the event is associated.

+ *

The auth0 tenant ID to which the event is associated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0tenant") + public A0StreamStage a0Tenant(@NotNull String a0Tenant) { + this.a0Tenant = Objects.requireNonNull(a0Tenant, "a0Tenant must not be null"); + return this; + } + + /** + *

The auth0 event stream ID of the stream the event was delivered on.

+ *

The auth0 event stream ID of the stream the event was delivered on.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("a0stream") + public _FinalStage a0Stream(@NotNull String a0Stream) { + this.a0Stream = Objects.requireNonNull(a0Stream, "a0Stream must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage a0Purpose(EventStreamCloudEventA0PurposeEnum a0Purpose) { + this.a0Purpose = Optional.ofNullable(a0Purpose); + return this; + } + + @java.lang.Override + @JsonSetter(value = "a0purpose", nulls = Nulls.SKIP) + public _FinalStage a0Purpose(Optional a0Purpose) { + this.a0Purpose = a0Purpose; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedCloudEvent build() { + return new EventStreamCloudEventConnectionUpdatedCloudEvent( + specversion, type, source, id, time, data, a0Tenant, a0Stream, a0Purpose, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java new file mode 100644 index 000000000..f6b203852 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum.java @@ -0,0 +1,77 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum CONNECTION_UPDATED = + new EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum( + Value.CONNECTION_UPDATED, "connection.updated"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum valueOf(String value) { + switch (value) { + case "connection.updated": + return CONNECTION_UPDATED; + default: + return new EventStreamCloudEventConnectionUpdatedCloudEventTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_UPDATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionUpdated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java new file mode 100644 index 000000000..9c0ee247f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedData.java @@ -0,0 +1,152 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedData.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedData { + private final EventStreamCloudEventConnectionUpdatedObject object; + + private final Optional context; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedData( + EventStreamCloudEventConnectionUpdatedObject object, + Optional context, + Map additionalProperties) { + this.object = object; + this.context = context; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("object") + public EventStreamCloudEventConnectionUpdatedObject getObject() { + return object; + } + + @JsonProperty("context") + public Optional getContext() { + return context; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedData + && equalTo((EventStreamCloudEventConnectionUpdatedData) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedData other) { + return object.equals(other.object) && context.equals(other.context); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.object, this.context); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ObjectStage builder() { + return new Builder(); + } + + public interface ObjectStage { + _FinalStage object(@NotNull EventStreamCloudEventConnectionUpdatedObject object); + + Builder from(EventStreamCloudEventConnectionUpdatedData other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedData build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage context(Optional context); + + _FinalStage context(EventStreamCloudEventContext context); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ObjectStage, _FinalStage { + private EventStreamCloudEventConnectionUpdatedObject object; + + private Optional context = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedData other) { + object(other.getObject()); + context(other.getContext()); + return this; + } + + @java.lang.Override + @JsonSetter("object") + public _FinalStage object(@NotNull EventStreamCloudEventConnectionUpdatedObject object) { + this.object = Objects.requireNonNull(object, "object must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage context(EventStreamCloudEventContext context) { + this.context = Optional.ofNullable(context); + return this; + } + + @java.lang.Override + @JsonSetter(value = "context", nulls = Nulls.SKIP) + public _FinalStage context(Optional context) { + this.context = context; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedData build() { + return new EventStreamCloudEventConnectionUpdatedData(object, context, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java new file mode 100644 index 000000000..db70f4908 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject.java @@ -0,0 +1,218 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import java.io.IOException; +import java.util.Map; +import java.util.Objects; + +@JsonDeserialize(using = EventStreamCloudEventConnectionUpdatedObject.Deserializer.class) +public final class EventStreamCloudEventConnectionUpdatedObject { + private final Object value; + + private final int type; + + private EventStreamCloudEventConnectionUpdatedObject(Object value, int type) { + this.value = value; + this.type = type; + } + + @JsonValue + public Object get() { + return this.value; + } + + @SuppressWarnings("unchecked") + public T visit(Visitor visitor) { + if (this.type == 0) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject0) this.value); + } else if (this.type == 1) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject1) this.value); + } else if (this.type == 2) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject2) this.value); + } else if (this.type == 3) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject3) this.value); + } else if (this.type == 4) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject4) this.value); + } else if (this.type == 5) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject5) this.value); + } else if (this.type == 6) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject6) this.value); + } else if (this.type == 7) { + return visitor.visit((EventStreamCloudEventConnectionUpdatedObject7) this.value); + } + throw new IllegalStateException("Failed to visit value. This should never happen."); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject + && equalTo((EventStreamCloudEventConnectionUpdatedObject) other); + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return this.value.toString(); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject0 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 0); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject1 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 1); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject2 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 2); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject3 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 3); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject4 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 4); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject5 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 5); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject6 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 6); + } + + public static EventStreamCloudEventConnectionUpdatedObject of(EventStreamCloudEventConnectionUpdatedObject7 value) { + return new EventStreamCloudEventConnectionUpdatedObject(value, 7); + } + + public interface Visitor { + T visit(EventStreamCloudEventConnectionUpdatedObject0 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject1 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject2 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject3 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject4 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject5 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject6 value); + + T visit(EventStreamCloudEventConnectionUpdatedObject7 value); + } + + static final class Deserializer extends StdDeserializer { + Deserializer() { + super(EventStreamCloudEventConnectionUpdatedObject.class); + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject deserialize(JsonParser p, DeserializationContext context) + throws IOException { + Object value = p.readValueAs(Object.class); + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject0.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject1.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject2.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject3.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject4.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject5.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject6.class)); + } catch (RuntimeException e) { + } + } + if (value instanceof Map + && ((Map) value).containsKey("id") + && ((Map) value).containsKey("name") + && ((Map) value).containsKey("strategy")) { + try { + return of(ObjectMappers.JSON_MAPPER.convertValue( + value, EventStreamCloudEventConnectionUpdatedObject7.class)); + } catch (RuntimeException e) { + } + } + throw new JsonParseException(p, "Failed to deserialize"); + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java new file mode 100644 index 000000000..7dc8afcd5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0 { + private final Optional authentication; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional connectedAccounts; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0( + Optional authentication, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional connectedAccounts, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.connectedAccounts = connectedAccounts; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject0StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0 + && equalTo((EventStreamCloudEventConnectionUpdatedObject0) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0 other) { + return authentication.equals(other.authentication) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && connectedAccounts.equals(other.connectedAccounts) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.connectedAccounts, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject0Authentication authentication); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject0Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts connectedAccounts); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject0Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0 other) { + authentication(other.getAuthentication()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + connectedAccounts(other.getConnectedAccounts()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject0StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject0Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject0Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject0Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0 build() { + return new EventStreamCloudEventConnectionUpdatedObject0( + authentication, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + connectedAccounts, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java new file mode 100644 index 000000000..17e19d1ca --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject0Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject0Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java new file mode 100644 index 000000000..7baaa9d92 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.java @@ -0,0 +1,150 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts { + private final boolean active; + + private final Optional crossAppAccess; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts( + boolean active, Optional crossAppAccess, Map additionalProperties) { + this.active = active; + this.crossAppAccess = crossAppAccess; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @JsonProperty("cross_app_access") + public Optional getCrossAppAccess() { + return crossAppAccess; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts other) { + return active == other.active && crossAppAccess.equals(other.crossAppAccess); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.crossAppAccess); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage crossAppAccess(Optional crossAppAccess); + + _FinalStage crossAppAccess(Boolean crossAppAccess); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + private Optional crossAppAccess = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts other) { + active(other.getActive()); + crossAppAccess(other.getCrossAppAccess()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public _FinalStage crossAppAccess(Boolean crossAppAccess) { + this.crossAppAccess = Optional.ofNullable(crossAppAccess); + return this; + } + + @java.lang.Override + @JsonSetter(value = "cross_app_access", nulls = Nulls.SKIP) + public _FinalStage crossAppAccess(Optional crossAppAccess) { + this.crossAppAccess = crossAppAccess; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject0ConnectedAccounts( + active, crossAppAccess, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java new file mode 100644 index 000000000..cde119ee2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject0Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject0Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject0Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java new file mode 100644 index 000000000..20cf83ccf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional discoveryUrl; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional discoveryUrl, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.discoveryUrl = discoveryUrl; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features. + */ + @JsonProperty("discovery_url") + public Optional getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject0Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && discoveryUrl.equals(other.discoveryUrl) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.discoveryUrl, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap attributeMap); + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + _FinalStage discoveryUrl(Optional discoveryUrl); + + _FinalStage discoveryUrl(String discoveryUrl); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional discoveryUrl = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + discoveryUrl(other.getDiscoveryUrl()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage discoveryUrl(String discoveryUrl) { + this.discoveryUrl = Optional.ofNullable(discoveryUrl); + return this; + } + + /** + *

URL of the identity provider's OIDC Discovery endpoint (/.well-known/openid-configuration). When provided and oidc_metadata is empty, Auth0 automatically retrieves the provider's configuration including endpoints and supported features.

+ */ + @java.lang.Override + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public _FinalStage discoveryUrl(Optional discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0Options build() { + return new EventStreamCloudEventConnectionUpdatedObject0Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + discoveryUrl, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java new file mode 100644 index 000000000..d32bae336 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..ee1209cf5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum BIND_ALL = + new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum( + Value.BIND_ALL, "bind_all"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BIND_ALL: + return visitor.visitBindAll(); + case USE_MAP: + return visitor.visitUseMap(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "bind_all": + return BIND_ALL; + case "use_map": + return USE_MAP; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BIND_ALL, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBindAll(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java new file mode 100644 index 000000000..b1aa71c0a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..ed860681b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..127691d7c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..2b090aa4a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..e438cacf7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java new file mode 100644 index 000000000..fcabc733d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedObject0OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..7f7fee85a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..5d24645e5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..0d39bfbb4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..2ef74fe71 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..0d621dc38 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java new file mode 100644 index 000000000..639129c35 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum.java @@ -0,0 +1,87 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum FRONT_CHANNEL = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value.FRONT_CHANNEL, "front_channel"); + + public static final EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case FRONT_CHANNEL: + return visitor.visitFrontChannel(); + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum valueOf(String value) { + switch (value) { + case "front_channel": + return FRONT_CHANNEL; + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionUpdatedObject0OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + FRONT_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitFrontChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java new file mode 100644 index 000000000..e42d29de8 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject0StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject0StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject0StrategyEnum OIDC = + new EventStreamCloudEventConnectionUpdatedObject0StrategyEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject0StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject0StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject0StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject0StrategyEnum valueOf(String value) { + switch (value) { + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedObject0StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java new file mode 100644 index 000000000..dd610e70c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject1StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1 + && equalTo((EventStreamCloudEventConnectionUpdatedObject1) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject1Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject1Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject1Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject1StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject1Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject1Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject1Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1 build() { + return new EventStreamCloudEventConnectionUpdatedObject1( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java new file mode 100644 index 000000000..dd46f52f3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject1Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject1Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java new file mode 100644 index 000000000..c5a822400 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject1ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java new file mode 100644 index 000000000..9c091c474 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject1Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject1Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject1Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java new file mode 100644 index 000000000..ad642bbff --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1Options.java @@ -0,0 +1,1242 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1Options { + private final Optional authorizationEndpoint; + + private final String clientId; + + private final Optional connectionSettings; + + private final Optional> domainAliases; + + private final Optional dpopSigningAlg; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional iconUrl; + + private final Optional idTokenSessionExpirySupported; + + private final Optional> + idTokenSignedResponseAlgs; + + private final Optional issuer; + + private final Optional jwksUri; + + private final Optional> nonPersistentAttrs; + + private final Optional oidcMetadata; + + private final Optional schemaVersion; + + private final Optional scope; + + private final Optional sendBackChannelNonce; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional tokenEndpoint; + + private final Optional + tokenEndpointAuthMethod; + + private final Optional + tokenEndpointAuthSigningAlg; + + private final Optional + tokenEndpointJwtcaAudFormat; + + private final Optional> upstreamParams; + + private final Optional userinfoEndpoint; + + private final Optional attributeMap; + + private final Optional domain; + + private final Optional type; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1Options( + Optional authorizationEndpoint, + String clientId, + Optional connectionSettings, + Optional> domainAliases, + Optional dpopSigningAlg, + Optional + federatedConnectionsAccessTokens, + Optional iconUrl, + Optional idTokenSessionExpirySupported, + Optional> + idTokenSignedResponseAlgs, + Optional issuer, + Optional jwksUri, + Optional> nonPersistentAttrs, + Optional oidcMetadata, + Optional schemaVersion, + Optional scope, + Optional sendBackChannelNonce, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional tokenEndpoint, + Optional + tokenEndpointAuthMethod, + Optional + tokenEndpointAuthSigningAlg, + Optional + tokenEndpointJwtcaAudFormat, + Optional> upstreamParams, + Optional userinfoEndpoint, + Optional attributeMap, + Optional domain, + Optional type, + Map additionalProperties) { + this.authorizationEndpoint = authorizationEndpoint; + this.clientId = clientId; + this.connectionSettings = connectionSettings; + this.domainAliases = domainAliases; + this.dpopSigningAlg = dpopSigningAlg; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.iconUrl = iconUrl; + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.nonPersistentAttrs = nonPersistentAttrs; + this.oidcMetadata = oidcMetadata; + this.schemaVersion = schemaVersion; + this.scope = scope; + this.sendBackChannelNonce = sendBackChannelNonce; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + this.upstreamParams = upstreamParams; + this.userinfoEndpoint = userinfoEndpoint; + this.attributeMap = attributeMap; + this.domain = domain; + this.type = type; + this.additionalProperties = additionalProperties; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public Optional getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + @JsonProperty("connection_settings") + public Optional getConnectionSettings() { + return connectionSettings; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + @JsonProperty("dpop_signing_alg") + public Optional getDpopSigningAlg() { + return dpopSigningAlg; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry. + */ + @JsonProperty("id_token_session_expiry_supported") + public Optional getIdTokenSessionExpirySupported() { + return idTokenSessionExpirySupported; + } + + /** + * @return List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta. + */ + @JsonProperty("id_token_signed_response_algs") + public Optional> + getIdTokenSignedResponseAlgs() { + return idTokenSignedResponseAlgs; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public Optional getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public Optional getJwksUri() { + return jwksUri; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("oidc_metadata") + public Optional getOidcMetadata() { + return oidcMetadata; + } + + @JsonProperty("schema_version") + public Optional getSchemaVersion() { + return schemaVersion; + } + + /** + * @return Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider. + */ + @JsonProperty("scope") + public Optional getScope() { + return scope; + } + + /** + * @return When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation. + */ + @JsonProperty("send_back_channel_nonce") + public Optional getSendBackChannelNonce() { + return sendBackChannelNonce; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + @JsonProperty("token_endpoint_auth_method") + public Optional + getTokenEndpointAuthMethod() { + return tokenEndpointAuthMethod; + } + + @JsonProperty("token_endpoint_auth_signing_alg") + public Optional + getTokenEndpointAuthSigningAlg() { + return tokenEndpointAuthSigningAlg; + } + + @JsonProperty("token_endpoint_jwtca_aud_format") + public Optional + getTokenEndpointJwtcaAudFormat() { + return tokenEndpointJwtcaAudFormat; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + @JsonProperty("attribute_map") + public Optional getAttributeMap() { + return attributeMap; + } + + /** + * @return Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + @JsonProperty("type") + public Optional getType() { + return type; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject1Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1Options other) { + return authorizationEndpoint.equals(other.authorizationEndpoint) + && clientId.equals(other.clientId) + && connectionSettings.equals(other.connectionSettings) + && domainAliases.equals(other.domainAliases) + && dpopSigningAlg.equals(other.dpopSigningAlg) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && iconUrl.equals(other.iconUrl) + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && idTokenSignedResponseAlgs.equals(other.idTokenSignedResponseAlgs) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && oidcMetadata.equals(other.oidcMetadata) + && schemaVersion.equals(other.schemaVersion) + && scope.equals(other.scope) + && sendBackChannelNonce.equals(other.sendBackChannelNonce) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) + && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) + && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) + && upstreamParams.equals(other.upstreamParams) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && attributeMap.equals(other.attributeMap) + && domain.equals(other.domain) + && type.equals(other.type); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authorizationEndpoint, + this.clientId, + this.connectionSettings, + this.domainAliases, + this.dpopSigningAlg, + this.federatedConnectionsAccessTokens, + this.iconUrl, + this.idTokenSessionExpirySupported, + this.idTokenSignedResponseAlgs, + this.issuer, + this.jwksUri, + this.nonPersistentAttrs, + this.oidcMetadata, + this.schemaVersion, + this.scope, + this.sendBackChannelNonce, + this.setUserRootAttributes, + this.tenantDomain, + this.tokenEndpoint, + this.tokenEndpointAuthMethod, + this.tokenEndpointAuthSigningAlg, + this.tokenEndpointJwtcaAudFormat, + this.upstreamParams, + this.userinfoEndpoint, + this.attributeMap, + this.domain, + this.type); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + _FinalStage authorizationEndpoint(Optional authorizationEndpoint); + + _FinalStage authorizationEndpoint(String authorizationEndpoint); + + _FinalStage connectionSettings( + Optional connectionSettings); + + _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings connectionSettings); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + _FinalStage dpopSigningAlg( + Optional dpopSigningAlg); + + _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum dpopSigningAlg); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

https url of the icon to be shown

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported); + + _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported); + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs); + + _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs); + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + _FinalStage issuer(Optional issuer); + + _FinalStage issuer(String issuer); + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(Optional jwksUri); + + _FinalStage jwksUri(String jwksUri); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage oidcMetadata( + Optional oidcMetadata); + + _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata oidcMetadata); + + _FinalStage schemaVersion( + Optional schemaVersion); + + _FinalStage schemaVersion(EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum schemaVersion); + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + _FinalStage scope(Optional scope); + + _FinalStage scope(String scope); + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce); + + _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

Tenant domain

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod); + + _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg); + + _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat); + + _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + _FinalStage attributeMap( + Optional attributeMap); + + _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap attributeMap); + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + _FinalStage type(Optional type); + + _FinalStage type(EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum type); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional type = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional attributeMap = + Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional + tokenEndpointJwtcaAudFormat = Optional.empty(); + + private Optional + tokenEndpointAuthSigningAlg = Optional.empty(); + + private Optional + tokenEndpointAuthMethod = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional sendBackChannelNonce = Optional.empty(); + + private Optional scope = Optional.empty(); + + private Optional schemaVersion = + Optional.empty(); + + private Optional oidcMetadata = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional jwksUri = Optional.empty(); + + private Optional issuer = Optional.empty(); + + private Optional> + idTokenSignedResponseAlgs = Optional.empty(); + + private Optional idTokenSessionExpirySupported = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional dpopSigningAlg = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional connectionSettings = + Optional.empty(); + + private Optional authorizationEndpoint = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1Options other) { + authorizationEndpoint(other.getAuthorizationEndpoint()); + clientId(other.getClientId()); + connectionSettings(other.getConnectionSettings()); + domainAliases(other.getDomainAliases()); + dpopSigningAlg(other.getDpopSigningAlg()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + iconUrl(other.getIconUrl()); + idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + idTokenSignedResponseAlgs(other.getIdTokenSignedResponseAlgs()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + oidcMetadata(other.getOidcMetadata()); + schemaVersion(other.getSchemaVersion()); + scope(other.getScope()); + sendBackChannelNonce(other.getSendBackChannelNonce()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethod(other.getTokenEndpointAuthMethod()); + tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); + tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); + upstreamParams(other.getUpstreamParams()); + userinfoEndpoint(other.getUserinfoEndpoint()); + attributeMap(other.getAttributeMap()); + domain(other.getDomain()); + type(other.getType()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage type(EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum type) { + this.type = Optional.ofNullable(type); + return this; + } + + @java.lang.Override + @JsonSetter(value = "type", nulls = Nulls.SKIP) + public _FinalStage type(Optional type) { + this.type = type; + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Domain of the Okta organization (e.g., dev-123456.okta.com). Should be just the domain of the okta server with no scheme or trailing backslash. Discovery runs only when connection.options.oidc_metadata is empty and a domain is provided

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + @java.lang.Override + public _FinalStage attributeMap(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap attributeMap) { + this.attributeMap = Optional.ofNullable(attributeMap); + return this; + } + + @java.lang.Override + @JsonSetter(value = "attribute_map", nulls = Nulls.SKIP) + public _FinalStage attributeMap( + Optional attributeMap) { + this.attributeMap = attributeMap; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointJwtcaAudFormat( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = Optional.ofNullable(tokenEndpointJwtcaAudFormat); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_jwtca_aud_format", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointJwtcaAudFormat( + Optional + tokenEndpointJwtcaAudFormat) { + this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = Optional.ofNullable(tokenEndpointAuthSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlg( + Optional + tokenEndpointAuthSigningAlg) { + this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; + return this; + } + + @java.lang.Override + public _FinalStage tokenEndpointAuthMethod( + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = Optional.ofNullable(tokenEndpointAuthMethod); + return this; + } + + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_method", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethod( + Optional + tokenEndpointAuthMethod) { + this.tokenEndpointAuthMethod = tokenEndpointAuthMethod; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

Tenant domain

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Tenant domain

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage sendBackChannelNonce(Boolean sendBackChannelNonce) { + this.sendBackChannelNonce = Optional.ofNullable(sendBackChannelNonce); + return this; + } + + /** + *

When true and type is 'back_channel', includes a cryptographic nonce in authorization requests to prevent replay attacks. The identity provider must include this nonce in the ID token for validation.

+ */ + @java.lang.Override + @JsonSetter(value = "send_back_channel_nonce", nulls = Nulls.SKIP) + public _FinalStage sendBackChannelNonce(Optional sendBackChannelNonce) { + this.sendBackChannelNonce = sendBackChannelNonce; + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(String scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Space-separated list of OAuth 2.0 scopes requested during authorization. Must include 'openid' (required by OIDC spec). Common values: 'openid profile email'. Additional scopes depend on the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional scope) { + this.scope = scope; + return this; + } + + @java.lang.Override + public _FinalStage schemaVersion( + EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum schemaVersion) { + this.schemaVersion = Optional.ofNullable(schemaVersion); + return this; + } + + @java.lang.Override + @JsonSetter(value = "schema_version", nulls = Nulls.SKIP) + public _FinalStage schemaVersion( + Optional schemaVersion) { + this.schemaVersion = schemaVersion; + return this; + } + + @java.lang.Override + public _FinalStage oidcMetadata(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata oidcMetadata) { + this.oidcMetadata = Optional.ofNullable(oidcMetadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public _FinalStage oidcMetadata( + Optional oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage jwksUri(String jwksUri) { + this.jwksUri = Optional.ofNullable(jwksUri); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + @java.lang.Override + @JsonSetter(value = "jwks_uri", nulls = Nulls.SKIP) + public _FinalStage jwksUri(Optional jwksUri) { + this.jwksUri = jwksUri; + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage issuer(String issuer) { + this.issuer = Optional.ofNullable(issuer); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "issuer", nulls = Nulls.SKIP) + public _FinalStage issuer(Optional issuer) { + this.issuer = issuer; + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSignedResponseAlgs( + List + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = Optional.ofNullable(idTokenSignedResponseAlgs); + return this; + } + + /** + *

List of algorithms allowed to verify the ID tokens. Applicable when strategy=oidc or okta.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signed_response_algs", nulls = Nulls.SKIP) + public _FinalStage idTokenSignedResponseAlgs( + Optional> + idTokenSignedResponseAlgs) { + this.idTokenSignedResponseAlgs = idTokenSignedResponseAlgs; + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = Optional.ofNullable(idTokenSessionExpirySupported); + return this; + } + + /** + *

Indicates whether the identity provider supports session expiry via the id_token. If true, the system will use the session_expiry claim in the id_token to determine session expiry.

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_session_expiry_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSessionExpirySupported(Optional idTokenSessionExpirySupported) { + this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + return this; + } + + /** + *

https url of the icon to be shown

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + @java.lang.Override + public _FinalStage dpopSigningAlg( + EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum dpopSigningAlg) { + this.dpopSigningAlg = Optional.ofNullable(dpopSigningAlg); + return this; + } + + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlg( + Optional dpopSigningAlg) { + this.dpopSigningAlg = dpopSigningAlg; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage connectionSettings( + EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings connectionSettings) { + this.connectionSettings = Optional.ofNullable(connectionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connection_settings", nulls = Nulls.SKIP) + public _FinalStage connectionSettings( + Optional connectionSettings) { + this.connectionSettings = connectionSettings; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage authorizationEndpoint(String authorizationEndpoint) { + this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + @java.lang.Override + @JsonSetter(value = "authorization_endpoint", nulls = Nulls.SKIP) + public _FinalStage authorizationEndpoint(Optional authorizationEndpoint) { + this.authorizationEndpoint = authorizationEndpoint; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1Options build() { + return new EventStreamCloudEventConnectionUpdatedObject1Options( + authorizationEndpoint, + clientId, + connectionSettings, + domainAliases, + dpopSigningAlg, + federatedConnectionsAccessTokens, + iconUrl, + idTokenSessionExpirySupported, + idTokenSignedResponseAlgs, + issuer, + jwksUri, + nonPersistentAttrs, + oidcMetadata, + schemaVersion, + scope, + sendBackChannelNonce, + setUserRootAttributes, + tenantDomain, + tokenEndpoint, + tokenEndpointAuthMethod, + tokenEndpointAuthSigningAlg, + tokenEndpointJwtcaAudFormat, + upstreamParams, + userinfoEndpoint, + attributeMap, + domain, + type, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java new file mode 100644 index 000000000..445297413 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap { + private final Optional> attributes; + + private final Optional userinfoScope; + + private final Optional mappingMode; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap( + Optional> attributes, + Optional userinfoScope, + Optional mappingMode, + Map additionalProperties) { + this.attributes = attributes; + this.userinfoScope = userinfoScope; + this.mappingMode = mappingMode; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("attributes") + public Optional> getAttributes() { + return attributes; + } + + /** + * @return Scopes to send to the IdP's Userinfo endpoint + */ + @JsonProperty("userinfo_scope") + public Optional getUserinfoScope() { + return userinfoScope; + } + + @JsonProperty("mapping_mode") + public Optional getMappingMode() { + return mappingMode; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap + && equalTo((EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap other) { + return attributes.equals(other.attributes) + && userinfoScope.equals(other.userinfoScope) + && mappingMode.equals(other.mappingMode); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.attributes, this.userinfoScope, this.mappingMode); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional> attributes = Optional.empty(); + + private Optional userinfoScope = Optional.empty(); + + private Optional mappingMode = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap other) { + attributes(other.getAttributes()); + userinfoScope(other.getUserinfoScope()); + mappingMode(other.getMappingMode()); + return this; + } + + @JsonSetter(value = "attributes", nulls = Nulls.SKIP) + public Builder attributes(Optional> attributes) { + this.attributes = attributes; + return this; + } + + public Builder attributes(Map attributes) { + this.attributes = Optional.ofNullable(attributes); + return this; + } + + /** + *

Scopes to send to the IdP's Userinfo endpoint

+ */ + @JsonSetter(value = "userinfo_scope", nulls = Nulls.SKIP) + public Builder userinfoScope(Optional userinfoScope) { + this.userinfoScope = userinfoScope; + return this; + } + + public Builder userinfoScope(String userinfoScope) { + this.userinfoScope = Optional.ofNullable(userinfoScope); + return this; + } + + @JsonSetter(value = "mapping_mode", nulls = Nulls.SKIP) + public Builder mappingMode( + Optional mappingMode) { + this.mappingMode = mappingMode; + return this; + } + + public Builder mappingMode( + EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum mappingMode) { + this.mappingMode = Optional.ofNullable(mappingMode); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMap( + attributes, userinfoScope, mappingMode, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java new file mode 100644 index 000000000..95ef02f3f --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum USE_MAP = + new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum( + Value.USE_MAP, "use_map"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum BASIC_PROFILE = + new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum( + Value.BASIC_PROFILE, "basic_profile"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case USE_MAP: + return visitor.visitUseMap(); + case BASIC_PROFILE: + return visitor.visitBasicProfile(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum valueOf( + String value) { + switch (value) { + case "use_map": + return USE_MAP; + case "basic_profile": + return BASIC_PROFILE; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsAttributeMapMappingModeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + BASIC_PROFILE, + + USE_MAP, + + UNKNOWN + } + + public interface Visitor { + T visitBasicProfile(); + + T visitUseMap(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java new file mode 100644 index 000000000..75b94a430 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings { + private final Optional pkce; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings( + Optional pkce, + Map additionalProperties) { + this.pkce = pkce; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("pkce") + public Optional getPkce() { + return pkce; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings other) { + return pkce.equals(other.pkce); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.pkce); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional pkce = + Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings other) { + pkce(other.getPkce()); + return this; + } + + @JsonSetter(value = "pkce", nulls = Nulls.SKIP) + public Builder pkce( + Optional pkce) { + this.pkce = pkce; + return this; + } + + public Builder pkce(EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum pkce) { + this.pkce = Optional.ofNullable(pkce); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettings( + pkce, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java new file mode 100644 index 000000000..d52cd1c01 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum.java @@ -0,0 +1,112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum S256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value.S256, "S256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum AUTO = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value.AUTO, "auto"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum DISABLED = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum( + Value.DISABLED, "disabled"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum PLAIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value.PLAIN, "plain"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case S256: + return visitor.visitS256(); + case AUTO: + return visitor.visitAuto(); + case DISABLED: + return visitor.visitDisabled(); + case PLAIN: + return visitor.visitPlain(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum valueOf(String value) { + switch (value) { + case "S256": + return S256; + case "auto": + return AUTO; + case "disabled": + return DISABLED; + case "plain": + return PLAIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsConnectionSettingsPkceEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + AUTO, + + S256, + + PLAIN, + + DISABLED, + + UNKNOWN + } + + public interface Visitor { + T visitAuto(); + + T visitS256(); + + T visitPlain(); + + T visitDisabled(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java new file mode 100644 index 000000000..896f2e246 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum.java @@ -0,0 +1,110 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ED25519 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ED25519, "Ed25519"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum ES512 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.ES512, "ES512"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ED25519: + return visitor.visitEd25519(); + case ES384: + return visitor.visitEs384(); + case ES256: + return visitor.visitEs256(); + case ES512: + return visitor.visitEs512(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum valueOf(String value) { + switch (value) { + case "Ed25519": + return ED25519; + case "ES384": + return ES384; + case "ES256": + return ES256; + case "ES512": + return ES512; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsDpopSigningAlgEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + ES512, + + ED25519, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitEs512(); + + T visitEd25519(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..b4bb2e6b2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java new file mode 100644 index 000000000..ef6eab782 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum.java @@ -0,0 +1,155 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsIdTokenSignedResponseAlgsItemEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java new file mode 100644 index 000000000..b0d3080e7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.java @@ -0,0 +1,1779 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata { + private final Optional> acrValuesSupported; + + private final String authorizationEndpoint; + + private final Optional> claimTypesSupported; + + private final Optional> claimsLocalesSupported; + + private final Optional claimsParameterSupported; + + private final Optional> claimsSupported; + + private final Optional> displayValuesSupported; + + private final Optional> dpopSigningAlgValuesSupported; + + private final Optional endSessionEndpoint; + + private final Optional> grantTypesSupported; + + private final Optional> idTokenEncryptionAlgValuesSupported; + + private final Optional> idTokenEncryptionEncValuesSupported; + + private final List idTokenSigningAlgValuesSupported; + + private final String issuer; + + private final String jwksUri; + + private final Optional opPolicyUri; + + private final Optional opTosUri; + + private final Optional registrationEndpoint; + + private final Optional> requestObjectEncryptionAlgValuesSupported; + + private final Optional> requestObjectEncryptionEncValuesSupported; + + private final Optional> requestObjectSigningAlgValuesSupported; + + private final Optional requestParameterSupported; + + private final Optional requestUriParameterSupported; + + private final Optional requireRequestUriRegistration; + + private final Optional> responseModesSupported; + + private final Optional> responseTypesSupported; + + private final Optional> scopesSupported; + + private final Optional serviceDocumentation; + + private final Optional> subjectTypesSupported; + + private final Optional tokenEndpoint; + + private final Optional> tokenEndpointAuthMethodsSupported; + + private final Optional> tokenEndpointAuthSigningAlgValuesSupported; + + private final Optional> uiLocalesSupported; + + private final Optional> userinfoEncryptionAlgValuesSupported; + + private final Optional> userinfoEncryptionEncValuesSupported; + + private final Optional userinfoEndpoint; + + private final Optional> userinfoSigningAlgValuesSupported; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata( + Optional> acrValuesSupported, + String authorizationEndpoint, + Optional> claimTypesSupported, + Optional> claimsLocalesSupported, + Optional claimsParameterSupported, + Optional> claimsSupported, + Optional> displayValuesSupported, + Optional> dpopSigningAlgValuesSupported, + Optional endSessionEndpoint, + Optional> grantTypesSupported, + Optional> idTokenEncryptionAlgValuesSupported, + Optional> idTokenEncryptionEncValuesSupported, + List idTokenSigningAlgValuesSupported, + String issuer, + String jwksUri, + Optional opPolicyUri, + Optional opTosUri, + Optional registrationEndpoint, + Optional> requestObjectEncryptionAlgValuesSupported, + Optional> requestObjectEncryptionEncValuesSupported, + Optional> requestObjectSigningAlgValuesSupported, + Optional requestParameterSupported, + Optional requestUriParameterSupported, + Optional requireRequestUriRegistration, + Optional> responseModesSupported, + Optional> responseTypesSupported, + Optional> scopesSupported, + Optional serviceDocumentation, + Optional> subjectTypesSupported, + Optional tokenEndpoint, + Optional> tokenEndpointAuthMethodsSupported, + Optional> tokenEndpointAuthSigningAlgValuesSupported, + Optional> uiLocalesSupported, + Optional> userinfoEncryptionAlgValuesSupported, + Optional> userinfoEncryptionEncValuesSupported, + Optional userinfoEndpoint, + Optional> userinfoSigningAlgValuesSupported, + Map additionalProperties) { + this.acrValuesSupported = acrValuesSupported; + this.authorizationEndpoint = authorizationEndpoint; + this.claimTypesSupported = claimTypesSupported; + this.claimsLocalesSupported = claimsLocalesSupported; + this.claimsParameterSupported = claimsParameterSupported; + this.claimsSupported = claimsSupported; + this.displayValuesSupported = displayValuesSupported; + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + this.endSessionEndpoint = endSessionEndpoint; + this.grantTypesSupported = grantTypesSupported; + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + this.idTokenSigningAlgValuesSupported = idTokenSigningAlgValuesSupported; + this.issuer = issuer; + this.jwksUri = jwksUri; + this.opPolicyUri = opPolicyUri; + this.opTosUri = opTosUri; + this.registrationEndpoint = registrationEndpoint; + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + this.requestParameterSupported = requestParameterSupported; + this.requestUriParameterSupported = requestUriParameterSupported; + this.requireRequestUriRegistration = requireRequestUriRegistration; + this.responseModesSupported = responseModesSupported; + this.responseTypesSupported = responseTypesSupported; + this.scopesSupported = scopesSupported; + this.serviceDocumentation = serviceDocumentation; + this.subjectTypesSupported = subjectTypesSupported; + this.tokenEndpoint = tokenEndpoint; + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + this.uiLocalesSupported = uiLocalesSupported; + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + this.userinfoEndpoint = userinfoEndpoint; + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of the Authentication Context Class References that this OP supports + */ + @JsonProperty("acr_values_supported") + public Optional> getAcrValuesSupported() { + return acrValuesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow. + */ + @JsonProperty("authorization_endpoint") + public String getAuthorizationEndpoint() { + return authorizationEndpoint; + } + + /** + * @return JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims. + */ + @JsonProperty("claim_types_supported") + public Optional> getClaimTypesSupported() { + return claimTypesSupported; + } + + /** + * @return Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values. + */ + @JsonProperty("claims_locales_supported") + public Optional> getClaimsLocalesSupported() { + return claimsLocalesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("claims_parameter_supported") + public Optional getClaimsParameterSupported() { + return claimsParameterSupported; + } + + /** + * @return JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list. + */ + @JsonProperty("claims_supported") + public Optional> getClaimsSupported() { + return claimsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("display_values_supported") + public Optional> getDisplayValuesSupported() { + return displayValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing. + */ + @JsonProperty("dpop_signing_alg_values_supported") + public Optional> getDpopSigningAlgValuesSupported() { + return dpopSigningAlgValuesSupported; + } + + /** + * @return URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme. + */ + @JsonProperty("end_session_endpoint") + public Optional getEndSessionEndpoint() { + return endSessionEndpoint; + } + + /** + * @return A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"]. + */ + @JsonProperty("grant_types_supported") + public Optional> getGrantTypesSupported() { + return grantTypesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT + */ + @JsonProperty("id_token_encryption_alg_values_supported") + public Optional> getIdTokenEncryptionAlgValuesSupported() { + return idTokenEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("id_token_encryption_enc_values_supported") + public Optional> getIdTokenEncryptionEncValuesSupported() { + return idTokenEncryptionEncValuesSupported; + } + + /** + * @return A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518 + */ + @JsonProperty("id_token_signing_alg_values_supported") + public List getIdTokenSigningAlgValuesSupported() { + return idTokenSigningAlgValuesSupported; + } + + /** + * @return The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider. + */ + @JsonProperty("issuer") + public String getIssuer() { + return issuer; + } + + /** + * @return URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures. + */ + @JsonProperty("jwks_uri") + public String getJwksUri() { + return jwksUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_policy_uri") + public Optional getOpPolicyUri() { + return opPolicyUri; + } + + /** + * @return URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given. + */ + @JsonProperty("op_tos_uri") + public Optional getOpTosUri() { + return opTosUri; + } + + /** + * @return URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration + */ + @JsonProperty("registration_endpoint") + public Optional getRegistrationEndpoint() { + return registrationEndpoint; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_alg_values_supported") + public Optional> getRequestObjectEncryptionAlgValuesSupported() { + return requestObjectEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference. + */ + @JsonProperty("request_object_encryption_enc_values_supported") + public Optional> getRequestObjectEncryptionEncValuesSupported() { + return requestObjectEncryptionEncValuesSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256. + */ + @JsonProperty("request_object_signing_alg_values_supported") + public Optional> getRequestObjectSigningAlgValuesSupported() { + return requestObjectSigningAlgValuesSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_parameter_supported") + public Optional getRequestParameterSupported() { + return requestParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false. + */ + @JsonProperty("request_uri_parameter_supported") + public Optional getRequestUriParameterSupported() { + return requestUriParameterSupported; + } + + /** + * @return Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false. + */ + @JsonProperty("require_request_uri_registration") + public Optional getRequireRequestUriRegistration() { + return requireRequestUriRegistration; + } + + /** + * @return A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"] + */ + @JsonProperty("response_modes_supported") + public Optional> getResponseModesSupported() { + return responseModesSupported; + } + + /** + * @return A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values + */ + @JsonProperty("response_types_supported") + public Optional> getResponseTypesSupported() { + return responseTypesSupported; + } + + /** + * @return A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED + */ + @JsonProperty("scopes_supported") + public Optional> getScopesSupported() { + return scopesSupported; + } + + /** + * @return URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation. + */ + @JsonProperty("service_documentation") + public Optional getServiceDocumentation() { + return serviceDocumentation; + } + + /** + * @return A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public + */ + @JsonProperty("subject_types_supported") + public Optional> getSubjectTypesSupported() { + return subjectTypesSupported; + } + + /** + * @return URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow. + */ + @JsonProperty("token_endpoint") + public Optional getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * @return JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749]. + */ + @JsonProperty("token_endpoint_auth_methods_supported") + public Optional> getTokenEndpointAuthMethodsSupported() { + return tokenEndpointAuthMethodsSupported; + } + + /** + * @return JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used. + */ + @JsonProperty("token_endpoint_auth_signing_alg_values_supported") + public Optional> getTokenEndpointAuthSigningAlgValuesSupported() { + return tokenEndpointAuthSigningAlgValuesSupported; + } + + /** + * @return Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values. + */ + @JsonProperty("ui_locales_supported") + public Optional> getUiLocalesSupported() { + return uiLocalesSupported; + } + + /** + * @return JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_alg_values_supported") + public Optional> getUserinfoEncryptionAlgValuesSupported() { + return userinfoEncryptionAlgValuesSupported; + } + + /** + * @return JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. + */ + @JsonProperty("userinfo_encryption_enc_values_supported") + public Optional> getUserinfoEncryptionEncValuesSupported() { + return userinfoEncryptionEncValuesSupported; + } + + /** + * @return Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token. + */ + @JsonProperty("userinfo_endpoint") + public Optional getUserinfoEndpoint() { + return userinfoEndpoint; + } + + /** + * @return JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included. + */ + @JsonProperty("userinfo_signing_alg_values_supported") + public Optional> getUserinfoSigningAlgValuesSupported() { + return userinfoSigningAlgValuesSupported; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata + && equalTo((EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata other) { + return acrValuesSupported.equals(other.acrValuesSupported) + && authorizationEndpoint.equals(other.authorizationEndpoint) + && claimTypesSupported.equals(other.claimTypesSupported) + && claimsLocalesSupported.equals(other.claimsLocalesSupported) + && claimsParameterSupported.equals(other.claimsParameterSupported) + && claimsSupported.equals(other.claimsSupported) + && displayValuesSupported.equals(other.displayValuesSupported) + && dpopSigningAlgValuesSupported.equals(other.dpopSigningAlgValuesSupported) + && endSessionEndpoint.equals(other.endSessionEndpoint) + && grantTypesSupported.equals(other.grantTypesSupported) + && idTokenEncryptionAlgValuesSupported.equals(other.idTokenEncryptionAlgValuesSupported) + && idTokenEncryptionEncValuesSupported.equals(other.idTokenEncryptionEncValuesSupported) + && idTokenSigningAlgValuesSupported.equals(other.idTokenSigningAlgValuesSupported) + && issuer.equals(other.issuer) + && jwksUri.equals(other.jwksUri) + && opPolicyUri.equals(other.opPolicyUri) + && opTosUri.equals(other.opTosUri) + && registrationEndpoint.equals(other.registrationEndpoint) + && requestObjectEncryptionAlgValuesSupported.equals(other.requestObjectEncryptionAlgValuesSupported) + && requestObjectEncryptionEncValuesSupported.equals(other.requestObjectEncryptionEncValuesSupported) + && requestObjectSigningAlgValuesSupported.equals(other.requestObjectSigningAlgValuesSupported) + && requestParameterSupported.equals(other.requestParameterSupported) + && requestUriParameterSupported.equals(other.requestUriParameterSupported) + && requireRequestUriRegistration.equals(other.requireRequestUriRegistration) + && responseModesSupported.equals(other.responseModesSupported) + && responseTypesSupported.equals(other.responseTypesSupported) + && scopesSupported.equals(other.scopesSupported) + && serviceDocumentation.equals(other.serviceDocumentation) + && subjectTypesSupported.equals(other.subjectTypesSupported) + && tokenEndpoint.equals(other.tokenEndpoint) + && tokenEndpointAuthMethodsSupported.equals(other.tokenEndpointAuthMethodsSupported) + && tokenEndpointAuthSigningAlgValuesSupported.equals(other.tokenEndpointAuthSigningAlgValuesSupported) + && uiLocalesSupported.equals(other.uiLocalesSupported) + && userinfoEncryptionAlgValuesSupported.equals(other.userinfoEncryptionAlgValuesSupported) + && userinfoEncryptionEncValuesSupported.equals(other.userinfoEncryptionEncValuesSupported) + && userinfoEndpoint.equals(other.userinfoEndpoint) + && userinfoSigningAlgValuesSupported.equals(other.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.acrValuesSupported, + this.authorizationEndpoint, + this.claimTypesSupported, + this.claimsLocalesSupported, + this.claimsParameterSupported, + this.claimsSupported, + this.displayValuesSupported, + this.dpopSigningAlgValuesSupported, + this.endSessionEndpoint, + this.grantTypesSupported, + this.idTokenEncryptionAlgValuesSupported, + this.idTokenEncryptionEncValuesSupported, + this.idTokenSigningAlgValuesSupported, + this.issuer, + this.jwksUri, + this.opPolicyUri, + this.opTosUri, + this.registrationEndpoint, + this.requestObjectEncryptionAlgValuesSupported, + this.requestObjectEncryptionEncValuesSupported, + this.requestObjectSigningAlgValuesSupported, + this.requestParameterSupported, + this.requestUriParameterSupported, + this.requireRequestUriRegistration, + this.responseModesSupported, + this.responseTypesSupported, + this.scopesSupported, + this.serviceDocumentation, + this.subjectTypesSupported, + this.tokenEndpoint, + this.tokenEndpointAuthMethodsSupported, + this.tokenEndpointAuthSigningAlgValuesSupported, + this.uiLocalesSupported, + this.userinfoEncryptionAlgValuesSupported, + this.userinfoEncryptionEncValuesSupported, + this.userinfoEndpoint, + this.userinfoSigningAlgValuesSupported); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AuthorizationEndpointStage builder() { + return new Builder(); + } + + public interface AuthorizationEndpointStage { + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ */ + IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint); + + Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata other); + } + + public interface IssuerStage { + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ */ + JwksUriStage issuer(@NotNull String issuer); + } + + public interface JwksUriStage { + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ */ + _FinalStage jwksUri(@NotNull String jwksUri); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + _FinalStage acrValuesSupported(Optional> acrValuesSupported); + + _FinalStage acrValuesSupported(List acrValuesSupported); + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + _FinalStage claimTypesSupported(Optional> claimTypesSupported); + + _FinalStage claimTypesSupported(List claimTypesSupported); + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported); + + _FinalStage claimsLocalesSupported(List claimsLocalesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage claimsParameterSupported(Optional claimsParameterSupported); + + _FinalStage claimsParameterSupported(Boolean claimsParameterSupported); + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + _FinalStage claimsSupported(Optional> claimsSupported); + + _FinalStage claimsSupported(List claimsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage displayValuesSupported(Optional> displayValuesSupported); + + _FinalStage displayValuesSupported(List displayValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported); + + _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported); + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + _FinalStage endSessionEndpoint(Optional endSessionEndpoint); + + _FinalStage endSessionEndpoint(String endSessionEndpoint); + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + _FinalStage grantTypesSupported(Optional> grantTypesSupported); + + _FinalStage grantTypesSupported(List grantTypesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + _FinalStage idTokenEncryptionAlgValuesSupported(Optional> idTokenEncryptionAlgValuesSupported); + + _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + _FinalStage idTokenEncryptionEncValuesSupported(Optional> idTokenEncryptionEncValuesSupported); + + _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported); + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported); + + _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opPolicyUri(Optional opPolicyUri); + + _FinalStage opPolicyUri(String opPolicyUri); + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + _FinalStage opTosUri(Optional opTosUri); + + _FinalStage opTosUri(String opTosUri); + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + _FinalStage registrationEndpoint(Optional registrationEndpoint); + + _FinalStage registrationEndpoint(String registrationEndpoint); + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported); + + _FinalStage requestObjectEncryptionAlgValuesSupported(List requestObjectEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported); + + _FinalStage requestObjectEncryptionEncValuesSupported(List requestObjectEncryptionEncValuesSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported); + + _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestParameterSupported(Optional requestParameterSupported); + + _FinalStage requestParameterSupported(Boolean requestParameterSupported); + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported); + + _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported); + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration); + + _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration); + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + _FinalStage responseModesSupported(Optional> responseModesSupported); + + _FinalStage responseModesSupported(List responseModesSupported); + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + _FinalStage responseTypesSupported(Optional> responseTypesSupported); + + _FinalStage responseTypesSupported(List responseTypesSupported); + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + _FinalStage scopesSupported(Optional> scopesSupported); + + _FinalStage scopesSupported(List scopesSupported); + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + _FinalStage serviceDocumentation(Optional serviceDocumentation); + + _FinalStage serviceDocumentation(String serviceDocumentation); + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + _FinalStage subjectTypesSupported(Optional> subjectTypesSupported); + + _FinalStage subjectTypesSupported(List subjectTypesSupported); + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + _FinalStage tokenEndpoint(Optional tokenEndpoint); + + _FinalStage tokenEndpoint(String tokenEndpoint); + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported); + + _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported); + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported); + + _FinalStage tokenEndpointAuthSigningAlgValuesSupported(List tokenEndpointAuthSigningAlgValuesSupported); + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + _FinalStage uiLocalesSupported(Optional> uiLocalesSupported); + + _FinalStage uiLocalesSupported(List uiLocalesSupported); + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionAlgValuesSupported(Optional> userinfoEncryptionAlgValuesSupported); + + _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported); + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + _FinalStage userinfoEncryptionEncValuesSupported(Optional> userinfoEncryptionEncValuesSupported); + + _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported); + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + _FinalStage userinfoEndpoint(Optional userinfoEndpoint); + + _FinalStage userinfoEndpoint(String userinfoEndpoint); + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported); + + _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AuthorizationEndpointStage, IssuerStage, JwksUriStage, _FinalStage { + private String authorizationEndpoint; + + private String issuer; + + private String jwksUri; + + private Optional> userinfoSigningAlgValuesSupported = Optional.empty(); + + private Optional userinfoEndpoint = Optional.empty(); + + private Optional> userinfoEncryptionEncValuesSupported = Optional.empty(); + + private Optional> userinfoEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> uiLocalesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthSigningAlgValuesSupported = Optional.empty(); + + private Optional> tokenEndpointAuthMethodsSupported = Optional.empty(); + + private Optional tokenEndpoint = Optional.empty(); + + private Optional> subjectTypesSupported = Optional.empty(); + + private Optional serviceDocumentation = Optional.empty(); + + private Optional> scopesSupported = Optional.empty(); + + private Optional> responseTypesSupported = Optional.empty(); + + private Optional> responseModesSupported = Optional.empty(); + + private Optional requireRequestUriRegistration = Optional.empty(); + + private Optional requestUriParameterSupported = Optional.empty(); + + private Optional requestParameterSupported = Optional.empty(); + + private Optional> requestObjectSigningAlgValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionEncValuesSupported = Optional.empty(); + + private Optional> requestObjectEncryptionAlgValuesSupported = Optional.empty(); + + private Optional registrationEndpoint = Optional.empty(); + + private Optional opTosUri = Optional.empty(); + + private Optional opPolicyUri = Optional.empty(); + + private List idTokenSigningAlgValuesSupported = new ArrayList<>(); + + private Optional> idTokenEncryptionEncValuesSupported = Optional.empty(); + + private Optional> idTokenEncryptionAlgValuesSupported = Optional.empty(); + + private Optional> grantTypesSupported = Optional.empty(); + + private Optional endSessionEndpoint = Optional.empty(); + + private Optional> dpopSigningAlgValuesSupported = Optional.empty(); + + private Optional> displayValuesSupported = Optional.empty(); + + private Optional> claimsSupported = Optional.empty(); + + private Optional claimsParameterSupported = Optional.empty(); + + private Optional> claimsLocalesSupported = Optional.empty(); + + private Optional> claimTypesSupported = Optional.empty(); + + private Optional> acrValuesSupported = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata other) { + acrValuesSupported(other.getAcrValuesSupported()); + authorizationEndpoint(other.getAuthorizationEndpoint()); + claimTypesSupported(other.getClaimTypesSupported()); + claimsLocalesSupported(other.getClaimsLocalesSupported()); + claimsParameterSupported(other.getClaimsParameterSupported()); + claimsSupported(other.getClaimsSupported()); + displayValuesSupported(other.getDisplayValuesSupported()); + dpopSigningAlgValuesSupported(other.getDpopSigningAlgValuesSupported()); + endSessionEndpoint(other.getEndSessionEndpoint()); + grantTypesSupported(other.getGrantTypesSupported()); + idTokenEncryptionAlgValuesSupported(other.getIdTokenEncryptionAlgValuesSupported()); + idTokenEncryptionEncValuesSupported(other.getIdTokenEncryptionEncValuesSupported()); + idTokenSigningAlgValuesSupported(other.getIdTokenSigningAlgValuesSupported()); + issuer(other.getIssuer()); + jwksUri(other.getJwksUri()); + opPolicyUri(other.getOpPolicyUri()); + opTosUri(other.getOpTosUri()); + registrationEndpoint(other.getRegistrationEndpoint()); + requestObjectEncryptionAlgValuesSupported(other.getRequestObjectEncryptionAlgValuesSupported()); + requestObjectEncryptionEncValuesSupported(other.getRequestObjectEncryptionEncValuesSupported()); + requestObjectSigningAlgValuesSupported(other.getRequestObjectSigningAlgValuesSupported()); + requestParameterSupported(other.getRequestParameterSupported()); + requestUriParameterSupported(other.getRequestUriParameterSupported()); + requireRequestUriRegistration(other.getRequireRequestUriRegistration()); + responseModesSupported(other.getResponseModesSupported()); + responseTypesSupported(other.getResponseTypesSupported()); + scopesSupported(other.getScopesSupported()); + serviceDocumentation(other.getServiceDocumentation()); + subjectTypesSupported(other.getSubjectTypesSupported()); + tokenEndpoint(other.getTokenEndpoint()); + tokenEndpointAuthMethodsSupported(other.getTokenEndpointAuthMethodsSupported()); + tokenEndpointAuthSigningAlgValuesSupported(other.getTokenEndpointAuthSigningAlgValuesSupported()); + uiLocalesSupported(other.getUiLocalesSupported()); + userinfoEncryptionAlgValuesSupported(other.getUserinfoEncryptionAlgValuesSupported()); + userinfoEncryptionEncValuesSupported(other.getUserinfoEncryptionEncValuesSupported()); + userinfoEndpoint(other.getUserinfoEndpoint()); + userinfoSigningAlgValuesSupported(other.getUserinfoSigningAlgValuesSupported()); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ *

URL of the identity provider's OAuth 2.0 authorization endpoint where users are redirected for authentication. Must be a valid HTTPS URL. This endpoint initiates the OAuth 2.0 authorization code flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("authorization_endpoint") + public IssuerStage authorizationEndpoint(@NotNull String authorizationEndpoint) { + this.authorizationEndpoint = + Objects.requireNonNull(authorizationEndpoint, "authorizationEndpoint must not be null"); + return this; + } + + /** + *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ *

The identity provider's unique issuer identifier URL (e.g., https://accounts.google.com). Must match the 'iss' claim in ID tokens from the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("issuer") + public JwksUriStage issuer(@NotNull String issuer) { + this.issuer = Objects.requireNonNull(issuer, "issuer must not be null"); + return this; + } + + /** + *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ *

URL of the identity provider's JSON Web Key Set (JWKS) endpoint containing public keys for signature verification. Auth0 retrieves these keys to validate ID token signatures.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("jwks_uri") + public _FinalStage jwksUri(@NotNull String jwksUri) { + this.jwksUri = Objects.requireNonNull(jwksUri, "jwksUri must not be null"); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoSigningAlgValuesSupported(List userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = Optional.ofNullable(userinfoSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. The value none MAY be included.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoSigningAlgValuesSupported(Optional> userinfoSigningAlgValuesSupported) { + this.userinfoSigningAlgValuesSupported = userinfoSigningAlgValuesSupported; + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEndpoint(String userinfoEndpoint) { + this.userinfoEndpoint = Optional.ofNullable(userinfoEndpoint); + return this; + } + + /** + *

Optional URL of the identity provider's UserInfo endpoint. When configured with attribute mapping, Auth0 calls this endpoint to retrieve additional user profile claims using the access token.

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_endpoint", nulls = Nulls.SKIP) + public _FinalStage userinfoEndpoint(Optional userinfoEndpoint) { + this.userinfoEndpoint = userinfoEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionEncValuesSupported(List userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = Optional.ofNullable(userinfoEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionEncValuesSupported( + Optional> userinfoEncryptionEncValuesSupported) { + this.userinfoEncryptionEncValuesSupported = userinfoEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage userinfoEncryptionAlgValuesSupported(List userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = Optional.ofNullable(userinfoEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE [JWE] encryption algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "userinfo_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage userinfoEncryptionAlgValuesSupported( + Optional> userinfoEncryptionAlgValuesSupported) { + this.userinfoEncryptionAlgValuesSupported = userinfoEncryptionAlgValuesSupported; + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage uiLocalesSupported(List uiLocalesSupported) { + this.uiLocalesSupported = Optional.ofNullable(uiLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for the user interface, represented as a JSON array of BCP47 [RFC5646] language tag values.

+ */ + @java.lang.Override + @JsonSetter(value = "ui_locales_supported", nulls = Nulls.SKIP) + public _FinalStage uiLocalesSupported(Optional> uiLocalesSupported) { + this.uiLocalesSupported = uiLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + List tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = + Optional.ofNullable(tokenEndpointAuthSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthSigningAlgValuesSupported( + Optional> tokenEndpointAuthSigningAlgValuesSupported) { + this.tokenEndpointAuthSigningAlgValuesSupported = tokenEndpointAuthSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpointAuthMethodsSupported(List tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = Optional.ofNullable(tokenEndpointAuthMethodsSupported); + return this; + } + + /** + *

JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 [OpenID.Core]. Other authentication methods MAY be defined by extensions. If omitted, the default is client_secret_basic -- the HTTP Basic Authentication Scheme specified in Section 2.3.1 of OAuth 2.0 [RFC6749].

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint_auth_methods_supported", nulls = Nulls.SKIP) + public _FinalStage tokenEndpointAuthMethodsSupported(Optional> tokenEndpointAuthMethodsSupported) { + this.tokenEndpointAuthMethodsSupported = tokenEndpointAuthMethodsSupported; + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tokenEndpoint(String tokenEndpoint) { + this.tokenEndpoint = Optional.ofNullable(tokenEndpoint); + return this; + } + + /** + *

URL of the identity provider's OAuth 2.0 token endpoint where authorization codes are exchanged for access tokens. Must be a valid HTTPS URL. Required for authorization code flow but optional for implicit flow.

+ */ + @java.lang.Override + @JsonSetter(value = "token_endpoint", nulls = Nulls.SKIP) + public _FinalStage tokenEndpoint(Optional tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage subjectTypesSupported(List subjectTypesSupported) { + this.subjectTypesSupported = Optional.ofNullable(subjectTypesSupported); + return this; + } + + /** + *

A list of the Subject Identifier types that this OP supports. Valid types include pairwise and public

+ */ + @java.lang.Override + @JsonSetter(value = "subject_types_supported", nulls = Nulls.SKIP) + public _FinalStage subjectTypesSupported(Optional> subjectTypesSupported) { + this.subjectTypesSupported = subjectTypesSupported; + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage serviceDocumentation(String serviceDocumentation) { + this.serviceDocumentation = Optional.ofNullable(serviceDocumentation); + return this; + } + + /** + *

URL of a page containing human-readable information that developers might want or need to know when using the OpenID Provider. In particular, if the OpenID Provider does not support Dynamic Client Registration, then information on how to register Clients needs to be provided in this documentation.

+ */ + @java.lang.Override + @JsonSetter(value = "service_documentation", nulls = Nulls.SKIP) + public _FinalStage serviceDocumentation(Optional serviceDocumentation) { + this.serviceDocumentation = serviceDocumentation; + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scopesSupported(List scopesSupported) { + this.scopesSupported = Optional.ofNullable(scopesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used, although those defined in [OpenID.Core] SHOULD be listed, if supported. RECOMMENDED but not REQUIRED

+ */ + @java.lang.Override + @JsonSetter(value = "scopes_supported", nulls = Nulls.SKIP) + public _FinalStage scopesSupported(Optional> scopesSupported) { + this.scopesSupported = scopesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseTypesSupported(List responseTypesSupported) { + this.responseTypesSupported = Optional.ofNullable(responseTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID Providers MUST support the code, id_token, and the token id_token Response Type values

+ */ + @java.lang.Override + @JsonSetter(value = "response_types_supported", nulls = Nulls.SKIP) + public _FinalStage responseTypesSupported(Optional> responseTypesSupported) { + this.responseTypesSupported = responseTypesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage responseModesSupported(List responseModesSupported) { + this.responseModesSupported = Optional.ofNullable(responseModesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 response_mode values that this OP supports. If omitted, the default for Dynamic OpenID Providers is ["query", "fragment"]

+ */ + @java.lang.Override + @JsonSetter(value = "response_modes_supported", nulls = Nulls.SKIP) + public _FinalStage responseModesSupported(Optional> responseModesSupported) { + this.responseModesSupported = responseModesSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requireRequestUriRegistration(Boolean requireRequestUriRegistration) { + this.requireRequestUriRegistration = Optional.ofNullable(requireRequestUriRegistration); + return this; + } + + /** + *

Boolean value specifying whether the OP requires use of the request_uri parameter. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "require_request_uri_registration", nulls = Nulls.SKIP) + public _FinalStage requireRequestUriRegistration(Optional requireRequestUriRegistration) { + this.requireRequestUriRegistration = requireRequestUriRegistration; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestUriParameterSupported(Boolean requestUriParameterSupported) { + this.requestUriParameterSupported = Optional.ofNullable(requestUriParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_uri_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestUriParameterSupported(Optional requestUriParameterSupported) { + this.requestUriParameterSupported = requestUriParameterSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestParameterSupported(Boolean requestParameterSupported) { + this.requestParameterSupported = Optional.ofNullable(requestParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "request_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage requestParameterSupported(Optional requestParameterSupported) { + this.requestParameterSupported = requestParameterSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectSigningAlgValuesSupported(List requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = Optional.ofNullable(requestObjectSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when the Request Object is passed by value (using the request parameter) and when it is passed by reference (using the request_uri parameter). Servers SHOULD support none and RS256.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectSigningAlgValuesSupported( + Optional> requestObjectSigningAlgValuesSupported) { + this.requestObjectSigningAlgValuesSupported = requestObjectSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionEncValuesSupported( + List requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = + Optional.ofNullable(requestObjectEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionEncValuesSupported( + Optional> requestObjectEncryptionEncValuesSupported) { + this.requestObjectEncryptionEncValuesSupported = requestObjectEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage requestObjectEncryptionAlgValuesSupported( + List requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = + Optional.ofNullable(requestObjectEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for Request Objects. These algorithms are used both when the Request Object is passed by value and when it is passed by reference.

+ */ + @java.lang.Override + @JsonSetter(value = "request_object_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage requestObjectEncryptionAlgValuesSupported( + Optional> requestObjectEncryptionAlgValuesSupported) { + this.requestObjectEncryptionAlgValuesSupported = requestObjectEncryptionAlgValuesSupported; + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage registrationEndpoint(String registrationEndpoint) { + this.registrationEndpoint = Optional.ofNullable(registrationEndpoint); + return this; + } + + /** + *

URL of the OPs Dynamic Client Registration Endpoint. RECOMMENDED but not REQUIRED. https://openid.net/specs/openid-connect-discovery-1_0.html#OpenID.Registration

+ */ + @java.lang.Override + @JsonSetter(value = "registration_endpoint", nulls = Nulls.SKIP) + public _FinalStage registrationEndpoint(Optional registrationEndpoint) { + this.registrationEndpoint = registrationEndpoint; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opTosUri(String opTosUri) { + this.opTosUri = Optional.ofNullable(opTosUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about OpenID Providers terms of service. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_tos_uri", nulls = Nulls.SKIP) + public _FinalStage opTosUri(Optional opTosUri) { + this.opTosUri = opTosUri; + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage opPolicyUri(String opPolicyUri) { + this.opPolicyUri = Optional.ofNullable(opPolicyUri); + return this; + } + + /** + *

URL that the OpenID Provider provides to the person registering the Client to read about the OPs requirements on how the Relying Party can use the data provided by the OP. The registration process SHOULD display this URL to the person registering the Client if it is given.

+ */ + @java.lang.Override + @JsonSetter(value = "op_policy_uri", nulls = Nulls.SKIP) + public _FinalStage opPolicyUri(Optional opPolicyUri) { + this.opPolicyUri = opPolicyUri; + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addAllIdTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage addIdTokenSigningAlgValuesSupported(String idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.add(idTokenSigningAlgValuesSupported); + return this; + } + + /** + *

A list of the JWS signing algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT. The algorithm RS256 MUST be included. The value none MAY be supported, but MUST NOT be used unless the Response Type used returns no ID Token from the Authorization Endpoint (such as when using the Authorization Code Flow). https://datatracker.ietf.org/doc/html/rfc7518

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenSigningAlgValuesSupported(List idTokenSigningAlgValuesSupported) { + this.idTokenSigningAlgValuesSupported.clear(); + if (idTokenSigningAlgValuesSupported != null) { + this.idTokenSigningAlgValuesSupported.addAll(idTokenSigningAlgValuesSupported); + } + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionEncValuesSupported(List idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = Optional.ofNullable(idTokenEncryptionEncValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (enc values) supported by the OP for the ID Token to encode the Claims in a JWT [JWT].

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_enc_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionEncValuesSupported( + Optional> idTokenEncryptionEncValuesSupported) { + this.idTokenEncryptionEncValuesSupported = idTokenEncryptionEncValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage idTokenEncryptionAlgValuesSupported(List idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = Optional.ofNullable(idTokenEncryptionAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWE encryption algorithms (alg values) supported by the OP for the ID Token to encode the Claims in a JWT

+ */ + @java.lang.Override + @JsonSetter(value = "id_token_encryption_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage idTokenEncryptionAlgValuesSupported( + Optional> idTokenEncryptionAlgValuesSupported) { + this.idTokenEncryptionAlgValuesSupported = idTokenEncryptionAlgValuesSupported; + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage grantTypesSupported(List grantTypesSupported) { + this.grantTypesSupported = Optional.ofNullable(grantTypesSupported); + return this; + } + + /** + *

A list of the OAuth 2.0 Grant Type values that this OP supports. Dynamic OpenID Providers MUST support the authorization_code and implicit Grant Type values and MAY support other Grant Types. If omitted, the default value is ["authorization_code", "implicit"].

+ */ + @java.lang.Override + @JsonSetter(value = "grant_types_supported", nulls = Nulls.SKIP) + public _FinalStage grantTypesSupported(Optional> grantTypesSupported) { + this.grantTypesSupported = grantTypesSupported; + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage endSessionEndpoint(String endSessionEndpoint) { + this.endSessionEndpoint = Optional.ofNullable(endSessionEndpoint); + return this; + } + + /** + *

URL of the identity provider's logout/end session endpoint. When configured as a static URL, users are redirected here after logging out from Auth0. Must use HTTPS scheme.

+ */ + @java.lang.Override + @JsonSetter(value = "end_session_endpoint", nulls = Nulls.SKIP) + public _FinalStage endSessionEndpoint(Optional endSessionEndpoint) { + this.endSessionEndpoint = endSessionEndpoint; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage dpopSigningAlgValuesSupported(List dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = Optional.ofNullable(dpopSigningAlgValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported for DPoP proof JWT signing.

+ */ + @java.lang.Override + @JsonSetter(value = "dpop_signing_alg_values_supported", nulls = Nulls.SKIP) + public _FinalStage dpopSigningAlgValuesSupported(Optional> dpopSigningAlgValuesSupported) { + this.dpopSigningAlgValuesSupported = dpopSigningAlgValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayValuesSupported(List displayValuesSupported) { + this.displayValuesSupported = Optional.ofNullable(displayValuesSupported); + return this; + } + + /** + *

JSON array containing a list of the JWS signing algorithms (alg values) supported by the Token Endpoint for the signature on the JWT [JWT] used to authenticate the Client at the Token Endpoint for the private_key_jwt and client_secret_jwt authentication methods. Servers SHOULD support RS256. The value none MUST NOT be used.

+ */ + @java.lang.Override + @JsonSetter(value = "display_values_supported", nulls = Nulls.SKIP) + public _FinalStage displayValuesSupported(Optional> displayValuesSupported) { + this.displayValuesSupported = displayValuesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsSupported(List claimsSupported) { + this.claimsSupported = Optional.ofNullable(claimsSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply values for. Note that for privacy or other reasons, this might not be an exhaustive list.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_supported", nulls = Nulls.SKIP) + public _FinalStage claimsSupported(Optional> claimsSupported) { + this.claimsSupported = claimsSupported; + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsParameterSupported(Boolean claimsParameterSupported) { + this.claimsParameterSupported = Optional.ofNullable(claimsParameterSupported); + return this; + } + + /** + *

Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. If omitted, the default value is false.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_parameter_supported", nulls = Nulls.SKIP) + public _FinalStage claimsParameterSupported(Optional claimsParameterSupported) { + this.claimsParameterSupported = claimsParameterSupported; + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimsLocalesSupported(List claimsLocalesSupported) { + this.claimsLocalesSupported = Optional.ofNullable(claimsLocalesSupported); + return this; + } + + /** + *

Languages and scripts supported for values in Claims being returned, represented as a JSON array of BCP47 [RFC5646] language tag values. Not all languages and scripts are necessarily supported for all Claim values.

+ */ + @java.lang.Override + @JsonSetter(value = "claims_locales_supported", nulls = Nulls.SKIP) + public _FinalStage claimsLocalesSupported(Optional> claimsLocalesSupported) { + this.claimsLocalesSupported = claimsLocalesSupported; + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage claimTypesSupported(List claimTypesSupported) { + this.claimTypesSupported = Optional.ofNullable(claimTypesSupported); + return this; + } + + /** + *

JSON array containing a list of the Claim Types that the OpenID Provider supports. These Claim Types are described in Section 5.6 of OpenID Connect Core 1.0 [OpenID.Core]. If omitted, the implementation supports only normal Claims.

+ */ + @java.lang.Override + @JsonSetter(value = "claim_types_supported", nulls = Nulls.SKIP) + public _FinalStage claimTypesSupported(Optional> claimTypesSupported) { + this.claimTypesSupported = claimTypesSupported; + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage acrValuesSupported(List acrValuesSupported) { + this.acrValuesSupported = Optional.ofNullable(acrValuesSupported); + return this; + } + + /** + *

A list of the Authentication Context Class References that this OP supports

+ */ + @java.lang.Override + @JsonSetter(value = "acr_values_supported", nulls = Nulls.SKIP) + public _FinalStage acrValuesSupported(Optional> acrValuesSupported) { + this.acrValuesSupported = acrValuesSupported; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata build() { + return new EventStreamCloudEventConnectionUpdatedObject1OptionsOidcMetadata( + acrValuesSupported, + authorizationEndpoint, + claimTypesSupported, + claimsLocalesSupported, + claimsParameterSupported, + claimsSupported, + displayValuesSupported, + dpopSigningAlgValuesSupported, + endSessionEndpoint, + grantTypesSupported, + idTokenEncryptionAlgValuesSupported, + idTokenEncryptionEncValuesSupported, + idTokenSigningAlgValuesSupported, + issuer, + jwksUri, + opPolicyUri, + opTosUri, + registrationEndpoint, + requestObjectEncryptionAlgValuesSupported, + requestObjectEncryptionEncValuesSupported, + requestObjectSigningAlgValuesSupported, + requestParameterSupported, + requestUriParameterSupported, + requireRequestUriRegistration, + responseModesSupported, + responseTypesSupported, + scopesSupported, + serviceDocumentation, + subjectTypesSupported, + tokenEndpoint, + tokenEndpointAuthMethodsSupported, + tokenEndpointAuthSigningAlgValuesSupported, + uiLocalesSupported, + userinfoEncryptionAlgValuesSupported, + userinfoEncryptionEncValuesSupported, + userinfoEndpoint, + userinfoSigningAlgValuesSupported, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java new file mode 100644 index 000000000..222422311 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum.java @@ -0,0 +1,88 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum OPENID100 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value.OPENID100, "openid-1.0.0"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum OIDC_V4 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value.OIDC_V4, "oidc-v4"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID100: + return visitor.visitOpenid100(); + case OIDC_V4: + return visitor.visitOidcV4(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum valueOf(String value) { + switch (value) { + case "openid-1.0.0": + return OPENID100; + case "oidc-v4": + return OIDC_V4; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsSchemaVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OPENID100, + + OIDC_V4, + + UNKNOWN + } + + public interface Visitor { + T visitOpenid100(); + + T visitOidcV4(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..4713ca52b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java new file mode 100644 index 000000000..efe6e2327 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + PRIVATE_KEY_JWT = new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.PRIVATE_KEY_JWT, "private_key_jwt"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + CLIENT_SECRET_POST = new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.CLIENT_SECRET_POST, "client_secret_post"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PRIVATE_KEY_JWT: + return visitor.visitPrivateKeyJwt(); + case CLIENT_SECRET_POST: + return visitor.visitClientSecretPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum valueOf( + String value) { + switch (value) { + case "private_key_jwt": + return PRIVATE_KEY_JWT; + case "client_secret_post": + return CLIENT_SECRET_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthMethodEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + CLIENT_SECRET_POST, + + PRIVATE_KEY_JWT, + + UNKNOWN + } + + public interface Visitor { + T visitClientSecretPost(); + + T visitPrivateKeyJwt(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java new file mode 100644 index 000000000..30f068cce --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS512 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS512, "RS512"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum ES384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES384, "ES384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum PS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS384, "PS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum ES256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.ES256, "ES256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum PS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.PS256, "PS256"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS384 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS384, "RS384"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum RS256 = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.RS256, "RS256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RS512: + return visitor.visitRs512(); + case ES384: + return visitor.visitEs384(); + case PS384: + return visitor.visitPs384(); + case ES256: + return visitor.visitEs256(); + case PS256: + return visitor.visitPs256(); + case RS384: + return visitor.visitRs384(); + case RS256: + return visitor.visitRs256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum valueOf( + String value) { + switch (value) { + case "RS512": + return RS512; + case "ES384": + return ES384; + case "PS384": + return PS384; + case "ES256": + return ES256; + case "PS256": + return PS256; + case "RS384": + return RS384; + case "RS256": + return RS256; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointAuthSigningAlgEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ES256, + + ES384, + + PS256, + + PS384, + + RS256, + + RS384, + + RS512, + + UNKNOWN + } + + public interface Visitor { + T visitEs256(); + + T visitEs384(); + + T visitPs256(); + + T visitPs384(); + + T visitRs256(); + + T visitRs384(); + + T visitRs512(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java new file mode 100644 index 000000000..948efb558 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum.java @@ -0,0 +1,93 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum ISSUER = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.ISSUER, "issuer"); + + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + TOKEN_ENDPOINT = new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.TOKEN_ENDPOINT, "token_endpoint"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ISSUER: + return visitor.visitIssuer(); + case TOKEN_ENDPOINT: + return visitor.visitTokenEndpoint(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum valueOf( + String value) { + switch (value) { + case "issuer": + return ISSUER; + case "token_endpoint": + return TOKEN_ENDPOINT; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTokenEndpointJwtcaAudFormatEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ISSUER, + + TOKEN_ENDPOINT, + + UNKNOWN + } + + public interface Visitor { + T visitIssuer(); + + T visitTokenEndpoint(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java new file mode 100644 index 000000000..f42ed0187 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum BACK_CHANNEL = + new EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum(Value.BACK_CHANNEL, "back_channel"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BACK_CHANNEL: + return visitor.visitBackChannel(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum valueOf(String value) { + switch (value) { + case "back_channel": + return BACK_CHANNEL; + default: + return new EventStreamCloudEventConnectionUpdatedObject1OptionsTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BACK_CHANNEL, + + UNKNOWN + } + + public interface Visitor { + T visitBackChannel(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java new file mode 100644 index 000000000..3af07bf62 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject1StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject1StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject1StrategyEnum OKTA = + new EventStreamCloudEventConnectionUpdatedObject1StrategyEnum(Value.OKTA, "okta"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject1StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject1StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject1StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OKTA: + return visitor.visitOkta(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject1StrategyEnum valueOf(String value) { + switch (value) { + case "okta": + return OKTA; + default: + return new EventStreamCloudEventConnectionUpdatedObject1StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + OKTA, + + UNKNOWN + } + + public interface Visitor { + T visitOkta(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java new file mode 100644 index 000000000..283096462 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject2StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2 + && equalTo((EventStreamCloudEventConnectionUpdatedObject2) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject2Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject2Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject2Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject2StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject2Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject2Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject2Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2 build() { + return new EventStreamCloudEventConnectionUpdatedObject2( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java new file mode 100644 index 000000000..08b9c64ab --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject2Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject2Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java new file mode 100644 index 000000000..e936d8506 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject2ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java new file mode 100644 index 000000000..c7e8c1249 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject2Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java new file mode 100644 index 000000000..6e4bd2b06 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2Options.java @@ -0,0 +1,1086 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional debug; + + private final Optional deflate; + + private final Optional destinationUrl; + + private final Optional disableSignout; + + private final Optional> fieldsMap; + + private final Optional globalTokenRevocationJwtIss; + + private final Optional globalTokenRevocationJwtSub; + + private final Optional metadataUrl; + + private final Optional recipientUrl; + + private final Optional requestTemplate; + + private final Optional signOutEndpoint; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional debug, + Optional deflate, + Optional destinationUrl, + Optional disableSignout, + Optional> fieldsMap, + Optional globalTokenRevocationJwtIss, + Optional globalTokenRevocationJwtSub, + Optional metadataUrl, + Optional recipientUrl, + Optional requestTemplate, + Optional signOutEndpoint, + Optional userIdAttribute, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.debug = debug; + this.deflate = deflate; + this.destinationUrl = destinationUrl; + this.disableSignout = disableSignout; + this.fieldsMap = fieldsMap; + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + this.metadataUrl = metadataUrl; + this.recipientUrl = recipientUrl; + this.requestTemplate = requestTemplate; + this.signOutEndpoint = signOutEndpoint; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes. + */ + @JsonProperty("debug") + public Optional getDebug() { + return debug; + } + + /** + * @return When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding. + */ + @JsonProperty("deflate") + public Optional getDeflate() { + return deflate; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("destinationUrl") + public Optional getDestinationUrl() { + return destinationUrl; + } + + /** + * @return When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled). + */ + @JsonProperty("disableSignout") + public Optional getDisableSignout() { + return disableSignout; + } + + @JsonProperty("fieldsMap") + public Optional> getFieldsMap() { + return fieldsMap; + } + + /** + * @return Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub. + */ + @JsonProperty("global_token_revocation_jwt_iss") + public Optional getGlobalTokenRevocationJwtIss() { + return globalTokenRevocationJwtIss; + } + + /** + * @return Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss. + */ + @JsonProperty("global_token_revocation_jwt_sub") + public Optional getGlobalTokenRevocationJwtSub() { + return globalTokenRevocationJwtSub; + } + + /** + * @return HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both. + */ + @JsonProperty("metadataUrl") + public Optional getMetadataUrl() { + return metadataUrl; + } + + /** + * @return The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL. + */ + @JsonProperty("recipientUrl") + public Optional getRecipientUrl() { + return recipientUrl; + } + + /** + * @return Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template + */ + @JsonProperty("requestTemplate") + public Optional getRequestTemplate() { + return requestTemplate; + } + + /** + * @return Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false. + */ + @JsonProperty("signOutEndpoint") + public Optional getSignOutEndpoint() { + return signOutEndpoint; + } + + /** + * @return Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject2Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && debug.equals(other.debug) + && deflate.equals(other.deflate) + && destinationUrl.equals(other.destinationUrl) + && disableSignout.equals(other.disableSignout) + && fieldsMap.equals(other.fieldsMap) + && globalTokenRevocationJwtIss.equals(other.globalTokenRevocationJwtIss) + && globalTokenRevocationJwtSub.equals(other.globalTokenRevocationJwtSub) + && metadataUrl.equals(other.metadataUrl) + && recipientUrl.equals(other.recipientUrl) + && requestTemplate.equals(other.requestTemplate) + && signOutEndpoint.equals(other.signOutEndpoint) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.debug, + this.deflate, + this.destinationUrl, + this.disableSignout, + this.fieldsMap, + this.globalTokenRevocationJwtIss, + this.globalTokenRevocationJwtSub, + this.metadataUrl, + this.recipientUrl, + this.requestTemplate, + this.signOutEndpoint, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional + assertionDecryptionSettings = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional debug = Optional.empty(); + + private Optional deflate = Optional.empty(); + + private Optional destinationUrl = Optional.empty(); + + private Optional disableSignout = Optional.empty(); + + private Optional> fieldsMap = Optional.empty(); + + private Optional globalTokenRevocationJwtIss = Optional.empty(); + + private Optional globalTokenRevocationJwtSub = Optional.empty(); + + private Optional metadataUrl = Optional.empty(); + + private Optional recipientUrl = Optional.empty(); + + private Optional requestTemplate = Optional.empty(); + + private Optional signOutEndpoint = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + debug(other.getDebug()); + deflate(other.getDeflate()); + destinationUrl(other.getDestinationUrl()); + disableSignout(other.getDisableSignout()); + fieldsMap(other.getFieldsMap()); + globalTokenRevocationJwtIss(other.getGlobalTokenRevocationJwtIss()); + globalTokenRevocationJwtSub(other.getGlobalTokenRevocationJwtSub()); + metadataUrl(other.getMetadataUrl()); + recipientUrl(other.getRecipientUrl()); + requestTemplate(other.getRequestTemplate()); + signOutEndpoint(other.getSignOutEndpoint()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public Builder assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + public Builder assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public Builder cert(Optional cert) { + this.cert = cert; + return this; + } + + public Builder cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public Builder digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + public Builder digestAlgorithm( + EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public Builder expires(Optional expires) { + this.expires = expires; + return this; + } + + public Builder expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public Builder idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + public Builder idpinitiated(EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public Builder protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + public Builder protocolBinding( + EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public Builder signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + public Builder signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public Builder signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + public Builder signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public Builder signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + public Builder signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public Builder subject(Optional subject) { + this.subject = subject; + return this; + } + + public Builder subject(EventStreamCloudEventConnectionUpdatedObject2OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

When true, enables detailed SAML debugging by issuing 'w' (warning) events in tenant logs containing SAML request/response details. WARNING: Potentially exposes sensitive user information (PII, credentials) and should only be enabled temporarily for debugging purposes.

+ */ + @JsonSetter(value = "debug", nulls = Nulls.SKIP) + public Builder debug(Optional debug) { + this.debug = debug; + return this; + } + + public Builder debug(Boolean debug) { + this.debug = Optional.ofNullable(debug); + return this; + } + + /** + *

When true, enables DEFLATE compression for SAML requests sent via HTTP-Redirect binding.

+ */ + @JsonSetter(value = "deflate", nulls = Nulls.SKIP) + public Builder deflate(Optional deflate) { + this.deflate = deflate; + return this; + } + + public Builder deflate(Boolean deflate) { + this.deflate = Optional.ofNullable(deflate); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "destinationUrl", nulls = Nulls.SKIP) + public Builder destinationUrl(Optional destinationUrl) { + this.destinationUrl = destinationUrl; + return this; + } + + public Builder destinationUrl(String destinationUrl) { + this.destinationUrl = Optional.ofNullable(destinationUrl); + return this; + } + + /** + *

When true, disables sending SAML logout requests (SingleLogoutService) to the identity provider during user sign-out. The user will be logged out of Auth0 but will remain logged into the identity provider. Defaults to false (federated logout enabled).

+ */ + @JsonSetter(value = "disableSignout", nulls = Nulls.SKIP) + public Builder disableSignout(Optional disableSignout) { + this.disableSignout = disableSignout; + return this; + } + + public Builder disableSignout(Boolean disableSignout) { + this.disableSignout = Optional.ofNullable(disableSignout); + return this; + } + + @JsonSetter(value = "fieldsMap", nulls = Nulls.SKIP) + public Builder fieldsMap(Optional> fieldsMap) { + this.fieldsMap = fieldsMap; + return this; + } + + public Builder fieldsMap(Map fieldsMap) { + this.fieldsMap = Optional.ofNullable(fieldsMap); + return this; + } + + /** + *

Expected 'iss' (Issuer) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT issuer matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_sub.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_iss", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtIss(Optional globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = globalTokenRevocationJwtIss; + return this; + } + + public Builder globalTokenRevocationJwtIss(String globalTokenRevocationJwtIss) { + this.globalTokenRevocationJwtIss = Optional.ofNullable(globalTokenRevocationJwtIss); + return this; + } + + /** + *

Expected 'sub' (Subject) claim value for JWT tokens in Global Token Revocation requests from the identity provider. When configured, Auth0 validates the JWT subject matches this value before processing token revocation. Must be used together with global_token_revocation_jwt_iss.

+ */ + @JsonSetter(value = "global_token_revocation_jwt_sub", nulls = Nulls.SKIP) + public Builder globalTokenRevocationJwtSub(Optional globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = globalTokenRevocationJwtSub; + return this; + } + + public Builder globalTokenRevocationJwtSub(String globalTokenRevocationJwtSub) { + this.globalTokenRevocationJwtSub = Optional.ofNullable(globalTokenRevocationJwtSub); + return this; + } + + /** + *

HTTPS URL to the identity provider's SAML metadata document. When provided, Auth0 automatically fetches and parses the metadata to extract signInEndpoint, signOutEndpoint, signingCert, signSAMLRequest, and protocolBinding. Use metadataUrl OR metadataXml, not both.

+ */ + @JsonSetter(value = "metadataUrl", nulls = Nulls.SKIP) + public Builder metadataUrl(Optional metadataUrl) { + this.metadataUrl = metadataUrl; + return this; + } + + public Builder metadataUrl(String metadataUrl) { + this.metadataUrl = Optional.ofNullable(metadataUrl); + return this; + } + + /** + *

The URL where Auth0 will send SAML authentication requests (the Identity Provider's SSO URL). Must be a valid HTTPS URL.

+ */ + @JsonSetter(value = "recipientUrl", nulls = Nulls.SKIP) + public Builder recipientUrl(Optional recipientUrl) { + this.recipientUrl = recipientUrl; + return this; + } + + public Builder recipientUrl(String recipientUrl) { + this.recipientUrl = Optional.ofNullable(recipientUrl); + return this; + } + + /** + *

Custom XML template for SAML authentication requests. Supports variable substitution using @@variableName@@ syntax. When not provided, uses default SAML AuthnRequest template. See https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider#customize-the-request-template

+ */ + @JsonSetter(value = "requestTemplate", nulls = Nulls.SKIP) + public Builder requestTemplate(Optional requestTemplate) { + this.requestTemplate = requestTemplate; + return this; + } + + public Builder requestTemplate(String requestTemplate) { + this.requestTemplate = Optional.ofNullable(requestTemplate); + return this; + } + + /** + *

Identity provider's SAML SingleLogoutService endpoint URL where Auth0 sends logout requests for federated sign-out. When not provided, defaults to signInEndpoint. Only used if disableSignout is false.

+ */ + @JsonSetter(value = "signOutEndpoint", nulls = Nulls.SKIP) + public Builder signOutEndpoint(Optional signOutEndpoint) { + this.signOutEndpoint = signOutEndpoint; + return this; + } + + public Builder signOutEndpoint(String signOutEndpoint) { + this.signOutEndpoint = Optional.ofNullable(signOutEndpoint); + return this; + } + + /** + *

Custom SAML assertion attribute to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single SAML attribute name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2Options build() { + return new EventStreamCloudEventConnectionUpdatedObject2Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + debug, + deflate, + destinationUrl, + disableSignout, + fieldsMap, + globalTokenRevocationJwtIss, + globalTokenRevocationJwtSub, + metadataUrl, + recipientUrl, + requestTemplate, + signOutEndpoint, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..b0c1e5a7a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..644adefc4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..3297ee821 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java new file mode 100644 index 000000000..1374b2628 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..7b2caa35d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..edd2b8df7 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..9ffc6daa5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..04dc4c763 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionUpdatedObject2OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java new file mode 100644 index 000000000..7eb6cabf0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject2OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject2OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject2OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject2OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject2OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject2OptionsSubject build() { + return new EventStreamCloudEventConnectionUpdatedObject2OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java new file mode 100644 index 000000000..ed2fd7cc1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject2StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject2StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject2StrategyEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedObject2StrategyEnum(Value.SAMLP, "samlp"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject2StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject2StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject2StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SAMLP: + return visitor.visitSamlp(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject2StrategyEnum valueOf(String value) { + switch (value) { + case "samlp": + return SAMLP; + default: + return new EventStreamCloudEventConnectionUpdatedObject2StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + SAMLP, + + UNKNOWN + } + + public interface Visitor { + T visitSamlp(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java new file mode 100644 index 000000000..f2a068804 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject3StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3 + && equalTo((EventStreamCloudEventConnectionUpdatedObject3) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject3Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject3Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject3Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject3StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject3Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject3Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject3Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3 build() { + return new EventStreamCloudEventConnectionUpdatedObject3( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java new file mode 100644 index 000000000..d464f52e2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject3Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject3Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java new file mode 100644 index 000000000..a9d50ab6d --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject3ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java new file mode 100644 index 000000000..e86c50a8c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject3Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject3Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject3Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java new file mode 100644 index 000000000..ed6a007fe --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3Options.java @@ -0,0 +1,980 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3Options { + private final Optional + assertionDecryptionSettings; + + private final Optional cert; + + private final Optional certRolloverNotification; + + private final Optional digestAlgorithm; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional expires; + + private final Optional iconUrl; + + private final Optional idpinitiated; + + private final Optional> nonPersistentAttrs; + + private final Optional protocolBinding; + + private final Optional + setUserRootAttributes; + + private final Optional + signatureAlgorithm; + + private final Optional signInEndpoint; + + private final Optional signingCert; + + private final Optional signSamlRequest; + + private final Optional subject; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final String pingFederateBaseUrl; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3Options( + Optional + assertionDecryptionSettings, + Optional cert, + Optional certRolloverNotification, + Optional digestAlgorithm, + Optional> domainAliases, + Optional entityId, + Optional expires, + Optional iconUrl, + Optional idpinitiated, + Optional> nonPersistentAttrs, + Optional protocolBinding, + Optional + setUserRootAttributes, + Optional signatureAlgorithm, + Optional signInEndpoint, + Optional signingCert, + Optional signSamlRequest, + Optional subject, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + String pingFederateBaseUrl, + Map additionalProperties) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + this.cert = cert; + this.certRolloverNotification = certRolloverNotification; + this.digestAlgorithm = digestAlgorithm; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.expires = expires; + this.iconUrl = iconUrl; + this.idpinitiated = idpinitiated; + this.nonPersistentAttrs = nonPersistentAttrs; + this.protocolBinding = protocolBinding; + this.setUserRootAttributes = setUserRootAttributes; + this.signatureAlgorithm = signatureAlgorithm; + this.signInEndpoint = signInEndpoint; + this.signingCert = signingCert; + this.signSamlRequest = signSamlRequest; + this.subject = subject; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.pingFederateBaseUrl = pingFederateBaseUrl; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("assertion_decryption_settings") + public Optional + getAssertionDecryptionSettings() { + return assertionDecryptionSettings; + } + + /** + * @return X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead. + */ + @JsonProperty("cert") + public Optional getCert() { + return cert; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + @JsonProperty("digestAlgorithm") + public Optional getDigestAlgorithm() { + return digestAlgorithm; + } + + /** + * @return Domain aliases for the connection + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires. + */ + @JsonProperty("expires") + public Optional getExpires() { + return expires; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("idpinitiated") + public Optional getIdpinitiated() { + return idpinitiated; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("protocolBinding") + public Optional getProtocolBinding() { + return protocolBinding; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("signatureAlgorithm") + public Optional + getSignatureAlgorithm() { + return signatureAlgorithm; + } + + /** + * @return Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification. + */ + @JsonProperty("signingCert") + public Optional getSigningCert() { + return signingCert; + } + + /** + * @return When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests). + */ + @JsonProperty("signSAMLRequest") + public Optional getSignSamlRequest() { + return signSamlRequest; + } + + @JsonProperty("subject") + public Optional getSubject() { + return subject; + } + + /** + * @return For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return URL provided by PingFederate which returns information used for creating the connection + */ + @JsonProperty("pingFederateBaseUrl") + public String getPingFederateBaseUrl() { + return pingFederateBaseUrl; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject3Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3Options other) { + return assertionDecryptionSettings.equals(other.assertionDecryptionSettings) + && cert.equals(other.cert) + && certRolloverNotification.equals(other.certRolloverNotification) + && digestAlgorithm.equals(other.digestAlgorithm) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && expires.equals(other.expires) + && iconUrl.equals(other.iconUrl) + && idpinitiated.equals(other.idpinitiated) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && protocolBinding.equals(other.protocolBinding) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signatureAlgorithm.equals(other.signatureAlgorithm) + && signInEndpoint.equals(other.signInEndpoint) + && signingCert.equals(other.signingCert) + && signSamlRequest.equals(other.signSamlRequest) + && subject.equals(other.subject) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && pingFederateBaseUrl.equals(other.pingFederateBaseUrl); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.assertionDecryptionSettings, + this.cert, + this.certRolloverNotification, + this.digestAlgorithm, + this.domainAliases, + this.entityId, + this.expires, + this.iconUrl, + this.idpinitiated, + this.nonPersistentAttrs, + this.protocolBinding, + this.setUserRootAttributes, + this.signatureAlgorithm, + this.signInEndpoint, + this.signingCert, + this.signSamlRequest, + this.subject, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.pingFederateBaseUrl); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static PingFederateBaseUrlStage builder() { + return new Builder(); + } + + public interface PingFederateBaseUrlStage { + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ */ + _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings); + + _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings); + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + _FinalStage cert(Optional cert); + + _FinalStage cert(String cert); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + _FinalStage digestAlgorithm( + Optional digestAlgorithm); + + _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum digestAlgorithm); + + /** + *

Domain aliases for the connection

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + _FinalStage entityId(Optional entityId); + + _FinalStage entityId(String entityId); + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + _FinalStage expires(Optional expires); + + _FinalStage expires(OffsetDateTime expires); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage idpinitiated( + Optional idpinitiated); + + _FinalStage idpinitiated(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated idpinitiated); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + _FinalStage protocolBinding( + Optional protocolBinding); + + _FinalStage protocolBinding( + EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum protocolBinding); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm); + + _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm); + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + _FinalStage signInEndpoint(Optional signInEndpoint); + + _FinalStage signInEndpoint(String signInEndpoint); + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + _FinalStage signingCert(Optional signingCert); + + _FinalStage signingCert(String signingCert); + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + _FinalStage signSamlRequest(Optional signSamlRequest); + + _FinalStage signSamlRequest(Boolean signSamlRequest); + + _FinalStage subject(Optional subject); + + _FinalStage subject(EventStreamCloudEventConnectionUpdatedObject3OptionsSubject subject); + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements PingFederateBaseUrlStage, _FinalStage { + private String pingFederateBaseUrl; + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional subject = Optional.empty(); + + private Optional signSamlRequest = Optional.empty(); + + private Optional signingCert = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional + signatureAlgorithm = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional protocolBinding = + Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional idpinitiated = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional expires = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional digestAlgorithm = + Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional cert = Optional.empty(); + + private Optional + assertionDecryptionSettings = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3Options other) { + assertionDecryptionSettings(other.getAssertionDecryptionSettings()); + cert(other.getCert()); + certRolloverNotification(other.getCertRolloverNotification()); + digestAlgorithm(other.getDigestAlgorithm()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + expires(other.getExpires()); + iconUrl(other.getIconUrl()); + idpinitiated(other.getIdpinitiated()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + protocolBinding(other.getProtocolBinding()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signatureAlgorithm(other.getSignatureAlgorithm()); + signInEndpoint(other.getSignInEndpoint()); + signingCert(other.getSigningCert()); + signSamlRequest(other.getSignSamlRequest()); + subject(other.getSubject()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + pingFederateBaseUrl(other.getPingFederateBaseUrl()); + return this; + } + + /** + *

URL provided by PingFederate which returns information used for creating the connection

+ *

URL provided by PingFederate which returns information used for creating the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("pingFederateBaseUrl") + public _FinalStage pingFederateBaseUrl(@NotNull String pingFederateBaseUrl) { + this.pingFederateBaseUrl = + Objects.requireNonNull(pingFederateBaseUrl, "pingFederateBaseUrl must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

SHA-1 thumbprints (fingerprints) of the identity provider's signing certificates. Automatically computed from signingCert during connection creation. Each thumbprint must be a 40-character hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

For SAML connections, the tenant domain used to construct the login endpoint URL. Can be a string for single-tenant or an array of strings for multi-tenant validation.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage subject(EventStreamCloudEventConnectionUpdatedObject3OptionsSubject subject) { + this.subject = Optional.ofNullable(subject); + return this; + } + + @java.lang.Override + @JsonSetter(value = "subject", nulls = Nulls.SKIP) + public _FinalStage subject(Optional subject) { + this.subject = subject; + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signSamlRequest(Boolean signSamlRequest) { + this.signSamlRequest = Optional.ofNullable(signSamlRequest); + return this; + } + + /** + *

When true, Auth0 signs SAML authentication requests using the connection's signing key. The signature includes the request's digest and is validated by the identity provider. Defaults to false (unsigned requests).

+ */ + @java.lang.Override + @JsonSetter(value = "signSAMLRequest", nulls = Nulls.SKIP) + public _FinalStage signSamlRequest(Optional signSamlRequest) { + this.signSamlRequest = signSamlRequest; + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signingCert(String signingCert) { + this.signingCert = Optional.ofNullable(signingCert); + return this; + } + + /** + *

Base64-encoded X.509 certificate from the identity provider used to validate signatures in SAML responses and assertions. The certificate is decoded and used for cryptographic signature verification.

+ */ + @java.lang.Override + @JsonSetter(value = "signingCert", nulls = Nulls.SKIP) + public _FinalStage signingCert(Optional signingCert) { + this.signingCert = signingCert; + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Identity provider's SAML SingleSignOnService endpoint URL where Auth0 sends SAML authentication requests. This is the primary login URL for the SAML connection. Required unless using metadataUrl or metadataXml.

+ */ + @java.lang.Override + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public _FinalStage signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + @java.lang.Override + public _FinalStage signatureAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum signatureAlgorithm) { + this.signatureAlgorithm = Optional.ofNullable(signatureAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "signatureAlgorithm", nulls = Nulls.SKIP) + public _FinalStage signatureAlgorithm( + Optional + signatureAlgorithm) { + this.signatureAlgorithm = signatureAlgorithm; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + @java.lang.Override + public _FinalStage protocolBinding( + EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum protocolBinding) { + this.protocolBinding = Optional.ofNullable(protocolBinding); + return this; + } + + @java.lang.Override + @JsonSetter(value = "protocolBinding", nulls = Nulls.SKIP) + public _FinalStage protocolBinding( + Optional protocolBinding) { + this.protocolBinding = protocolBinding; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + @java.lang.Override + public _FinalStage idpinitiated(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated idpinitiated) { + this.idpinitiated = Optional.ofNullable(idpinitiated); + return this; + } + + @java.lang.Override + @JsonSetter(value = "idpinitiated", nulls = Nulls.SKIP) + public _FinalStage idpinitiated( + Optional idpinitiated) { + this.idpinitiated = idpinitiated; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage expires(OffsetDateTime expires) { + this.expires = Optional.ofNullable(expires); + return this; + } + + /** + *

ISO 8601 formatted datetime indicating when the identity provider's signing certificate expires.

+ */ + @java.lang.Override + @JsonSetter(value = "expires", nulls = Nulls.SKIP) + public _FinalStage expires(Optional expires) { + this.expires = expires; + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

The entity identifier (Issuer) for the SAML Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. This value is included in SAML AuthnRequest messages sent to the identity provider.

+ */ + @java.lang.Override + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public _FinalStage entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + /** + *

Domain aliases for the connection

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Domain aliases for the connection

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + @java.lang.Override + public _FinalStage digestAlgorithm( + EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum digestAlgorithm) { + this.digestAlgorithm = Optional.ofNullable(digestAlgorithm); + return this; + } + + @java.lang.Override + @JsonSetter(value = "digestAlgorithm", nulls = Nulls.SKIP) + public _FinalStage digestAlgorithm( + Optional digestAlgorithm) { + this.digestAlgorithm = digestAlgorithm; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage cert(String cert) { + this.cert = Optional.ofNullable(cert); + return this; + } + + /** + *

X.509 signing certificate from the identity provider in .der format. Used to validate signatures in SAML Responses and Assertions. This is an alternative to signingCert and is kept for backward compatibility. Prefer using signingCert instead.

+ */ + @java.lang.Override + @JsonSetter(value = "cert", nulls = Nulls.SKIP) + public _FinalStage cert(Optional cert) { + this.cert = cert; + return this; + } + + @java.lang.Override + public _FinalStage assertionDecryptionSettings( + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings + assertionDecryptionSettings) { + this.assertionDecryptionSettings = Optional.ofNullable(assertionDecryptionSettings); + return this; + } + + @java.lang.Override + @JsonSetter(value = "assertion_decryption_settings", nulls = Nulls.SKIP) + public _FinalStage assertionDecryptionSettings( + Optional + assertionDecryptionSettings) { + this.assertionDecryptionSettings = assertionDecryptionSettings; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3Options build() { + return new EventStreamCloudEventConnectionUpdatedObject3Options( + assertionDecryptionSettings, + cert, + certRolloverNotification, + digestAlgorithm, + domainAliases, + entityId, + expires, + iconUrl, + idpinitiated, + nonPersistentAttrs, + protocolBinding, + setUserRootAttributes, + signatureAlgorithm, + signInEndpoint, + signingCert, + signSamlRequest, + subject, + tenantDomain, + thumbprints, + upstreamParams, + pingFederateBaseUrl, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java new file mode 100644 index 000000000..86b3f6645 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.java @@ -0,0 +1,178 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings { + private final Optional> algorithmExceptions; + + private final EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings( + Optional> algorithmExceptions, + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile, + Map additionalProperties) { + this.algorithmExceptions = algorithmExceptions; + this.algorithmProfile = algorithmProfile; + this.additionalProperties = additionalProperties; + } + + /** + * @return A list of insecure algorithms to allow for SAML assertion decryption. + */ + @JsonProperty("algorithm_exceptions") + public Optional> getAlgorithmExceptions() { + return algorithmExceptions; + } + + @JsonProperty("algorithm_profile") + public EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + getAlgorithmProfile() { + return algorithmProfile; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings + && equalTo((EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings other) { + return algorithmExceptions.equals(other.algorithmExceptions) && algorithmProfile.equals(other.algorithmProfile); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.algorithmExceptions, this.algorithmProfile); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static AlgorithmProfileStage builder() { + return new Builder(); + } + + public interface AlgorithmProfileStage { + _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile); + + Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + _FinalStage algorithmExceptions(Optional> algorithmExceptions); + + _FinalStage algorithmExceptions(List algorithmExceptions); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements AlgorithmProfileStage, _FinalStage { + private EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile; + + private Optional> algorithmExceptions = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings other) { + algorithmExceptions(other.getAlgorithmExceptions()); + algorithmProfile(other.getAlgorithmProfile()); + return this; + } + + @java.lang.Override + @JsonSetter("algorithm_profile") + public _FinalStage algorithmProfile( + @NotNull + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + algorithmProfile) { + this.algorithmProfile = Objects.requireNonNull(algorithmProfile, "algorithmProfile must not be null"); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage algorithmExceptions(List algorithmExceptions) { + this.algorithmExceptions = Optional.ofNullable(algorithmExceptions); + return this; + } + + /** + *

A list of insecure algorithms to allow for SAML assertion decryption.

+ */ + @java.lang.Override + @JsonSetter(value = "algorithm_exceptions", nulls = Nulls.SKIP) + public _FinalStage algorithmExceptions(Optional> algorithmExceptions) { + this.algorithmExceptions = algorithmExceptions; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings build() { + return new EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettings( + algorithmExceptions, algorithmProfile, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java new file mode 100644 index 000000000..e9dbee166 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum.java @@ -0,0 +1,85 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum { + public static final + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum V20261 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.V20261, "v2026-1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case V20261: + return visitor.visitV20261(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum + valueOf(String value) { + switch (value) { + case "v2026-1": + return V20261; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsAssertionDecryptionSettingsAlgorithmProfileEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + V20261, + + UNKNOWN + } + + public interface Visitor { + T visitV20261(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java new file mode 100644 index 000000000..8c80bb4b3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum SHA256 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum(Value.SHA256, "sha256"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum SHA1 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum(Value.SHA1, "sha1"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SHA256: + return visitor.visitSha256(); + case SHA1: + return visitor.visitSha1(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum valueOf(String value) { + switch (value) { + case "sha256": + return SHA256; + case "sha1": + return SHA1; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsDigestAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + SHA1, + + SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitSha1(); + + T visitSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java new file mode 100644 index 000000000..978a70244 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.java @@ -0,0 +1,205 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated { + private final Optional clientAuthorizequery; + + private final Optional clientId; + + private final Optional + clientProtocol; + + private final Optional enabled; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated( + Optional clientAuthorizequery, + Optional clientId, + Optional clientProtocol, + Optional enabled, + Map additionalProperties) { + this.clientAuthorizequery = clientAuthorizequery; + this.clientId = clientId; + this.clientProtocol = clientProtocol; + this.enabled = enabled; + this.additionalProperties = additionalProperties; + } + + /** + * @return The query string sent to the default application + */ + @JsonProperty("client_authorizequery") + public Optional getClientAuthorizequery() { + return clientAuthorizequery; + } + + /** + * @return The client ID to use for IdP-initiated login requests. + */ + @JsonProperty("client_id") + public Optional getClientId() { + return clientId; + } + + @JsonProperty("client_protocol") + public Optional + getClientProtocol() { + return clientProtocol; + } + + /** + * @return When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0. + */ + @JsonProperty("enabled") + public Optional getEnabled() { + return enabled; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated + && equalTo((EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated other) { + return clientAuthorizequery.equals(other.clientAuthorizequery) + && clientId.equals(other.clientId) + && clientProtocol.equals(other.clientProtocol) + && enabled.equals(other.enabled); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.clientAuthorizequery, this.clientId, this.clientProtocol, this.enabled); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional clientAuthorizequery = Optional.empty(); + + private Optional clientId = Optional.empty(); + + private Optional + clientProtocol = Optional.empty(); + + private Optional enabled = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated other) { + clientAuthorizequery(other.getClientAuthorizequery()); + clientId(other.getClientId()); + clientProtocol(other.getClientProtocol()); + enabled(other.getEnabled()); + return this; + } + + /** + *

The query string sent to the default application

+ */ + @JsonSetter(value = "client_authorizequery", nulls = Nulls.SKIP) + public Builder clientAuthorizequery(Optional clientAuthorizequery) { + this.clientAuthorizequery = clientAuthorizequery; + return this; + } + + public Builder clientAuthorizequery(String clientAuthorizequery) { + this.clientAuthorizequery = Optional.ofNullable(clientAuthorizequery); + return this; + } + + /** + *

The client ID to use for IdP-initiated login requests.

+ */ + @JsonSetter(value = "client_id", nulls = Nulls.SKIP) + public Builder clientId(Optional clientId) { + this.clientId = clientId; + return this; + } + + public Builder clientId(String clientId) { + this.clientId = Optional.ofNullable(clientId); + return this; + } + + @JsonSetter(value = "client_protocol", nulls = Nulls.SKIP) + public Builder clientProtocol( + Optional + clientProtocol) { + this.clientProtocol = clientProtocol; + return this; + } + + public Builder clientProtocol( + EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum clientProtocol) { + this.clientProtocol = Optional.ofNullable(clientProtocol); + return this; + } + + /** + *

When true, enables IdP-initiated login support for this SAML connection. Allows users to log in directly from the identity provider without first visiting Auth0.

+ */ + @JsonSetter(value = "enabled", nulls = Nulls.SKIP) + public Builder enabled(Optional enabled) { + this.enabled = enabled; + return this; + } + + public Builder enabled(Boolean enabled) { + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated build() { + return new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiated( + clientAuthorizequery, clientId, clientProtocol, enabled, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java new file mode 100644 index 000000000..e4c22d5c2 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum.java @@ -0,0 +1,104 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum WSFED = + new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.WSFED, "wsfed"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum SAMLP = + new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.SAMLP, "samlp"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum OIDC = + new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum(Value.OIDC, "oidc"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WSFED: + return visitor.visitWsfed(); + case SAMLP: + return visitor.visitSamlp(); + case OIDC: + return visitor.visitOidc(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum valueOf( + String value) { + switch (value) { + case "wsfed": + return WSFED; + case "samlp": + return SAMLP; + case "oidc": + return OIDC; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsIdpinitiatedClientProtocolEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OIDC, + + SAMLP, + + WSFED, + + UNKNOWN + } + + public interface Visitor { + T visitOidc(); + + T visitSamlp(); + + T visitWsfed(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java new file mode 100644 index 000000000..39b5d04df --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum.java @@ -0,0 +1,95 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT = + new EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST = + new EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum( + Value.URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + case URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST: + return visitor.visitUrnOasisNamesTcSaml20BindingsHttpPost(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum valueOf(String value) { + switch (value) { + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT; + case "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST": + return URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsProtocolBindingEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_POST, + + URN_OASIS_NAMES_TC_SAML20BINDINGS_HTTP_REDIRECT, + + UNKNOWN + } + + public interface Visitor { + T visitUrnOasisNamesTcSaml20BindingsHttpPost(); + + T visitUrnOasisNamesTcSaml20BindingsHttpRedirect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..1b6af939a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java new file mode 100644 index 000000000..41966b584 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum.java @@ -0,0 +1,90 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum RSA_SHA1 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum(Value.RSA_SHA1, "rsa-sha1"); + + public static final EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum RSA_SHA256 = + new EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum( + Value.RSA_SHA256, "rsa-sha256"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case RSA_SHA1: + return visitor.visitRsaSha1(); + case RSA_SHA256: + return visitor.visitRsaSha256(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum valueOf(String value) { + switch (value) { + case "rsa-sha1": + return RSA_SHA1; + case "rsa-sha256": + return RSA_SHA256; + default: + return new EventStreamCloudEventConnectionUpdatedObject3OptionsSignatureAlgorithmEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + RSA_SHA1, + + RSA_SHA256, + + UNKNOWN + } + + public interface Visitor { + T visitRsaSha1(); + + T visitRsaSha256(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java new file mode 100644 index 000000000..d902994aa --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject3OptionsSubject.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject3OptionsSubject { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject3OptionsSubject(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject3OptionsSubject; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject3OptionsSubject other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject3OptionsSubject build() { + return new EventStreamCloudEventConnectionUpdatedObject3OptionsSubject(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java new file mode 100644 index 000000000..590be7372 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject3StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject3StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject3StrategyEnum PINGFEDERATE = + new EventStreamCloudEventConnectionUpdatedObject3StrategyEnum(Value.PINGFEDERATE, "pingfederate"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject3StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject3StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject3StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case PINGFEDERATE: + return visitor.visitPingfederate(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject3StrategyEnum valueOf(String value) { + switch (value) { + case "pingfederate": + return PINGFEDERATE; + default: + return new EventStreamCloudEventConnectionUpdatedObject3StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + PINGFEDERATE, + + UNKNOWN + } + + public interface Visitor { + T visitPingfederate(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java new file mode 100644 index 000000000..7844ca7db --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject4StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4 + && equalTo((EventStreamCloudEventConnectionUpdatedObject4) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject4 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject4 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject4Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject4Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject4Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject4 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject4StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject4Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject4Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject4Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject4 build() { + return new EventStreamCloudEventConnectionUpdatedObject4( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java new file mode 100644 index 000000000..c07297f5a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject4Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject4Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject4Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject4Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject4Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject4Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java new file mode 100644 index 000000000..1fda03554 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject4ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java new file mode 100644 index 000000000..cbb89823e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject4Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject4Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject4Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java new file mode 100644 index 000000000..2c919ba8c --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4Options.java @@ -0,0 +1,564 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject4Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject4Options { + private final Optional adfsServer; + + private final Optional certRolloverNotification; + + private final Optional> domainAliases; + + private final Optional entityId; + + private final Optional fedMetadataXml; + + private final Optional iconUrl; + + private final Optional> nonPersistentAttrs; + + private final Optional> prevThumbprints; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional userIdAttribute; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject4Options( + Optional adfsServer, + Optional certRolloverNotification, + Optional> domainAliases, + Optional entityId, + Optional fedMetadataXml, + Optional iconUrl, + Optional> nonPersistentAttrs, + Optional> prevThumbprints, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Optional userIdAttribute, + Map additionalProperties) { + this.adfsServer = adfsServer; + this.certRolloverNotification = certRolloverNotification; + this.domainAliases = domainAliases; + this.entityId = entityId; + this.fedMetadataXml = fedMetadataXml; + this.iconUrl = iconUrl; + this.nonPersistentAttrs = nonPersistentAttrs; + this.prevThumbprints = prevThumbprints; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.userIdAttribute = userIdAttribute; + this.additionalProperties = additionalProperties; + } + + /** + * @return ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent. + */ + @JsonProperty("adfs_server") + public Optional getAdfsServer() { + return adfsServer; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'. + */ + @JsonProperty("entityId") + public Optional getEntityId() { + return entityId; + } + + /** + * @return Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'. + */ + @JsonProperty("fedMetadataXml") + public Optional getFedMetadataXml() { + return fedMetadataXml; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("prev_thumbprints") + public Optional> getPrevThumbprints() { + return prevThumbprints; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + /** + * @return Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly. + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Tenant domain + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name). + */ + @JsonProperty("user_id_attribute") + public Optional getUserIdAttribute() { + return userIdAttribute; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject4Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject4Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject4Options other) { + return adfsServer.equals(other.adfsServer) + && certRolloverNotification.equals(other.certRolloverNotification) + && domainAliases.equals(other.domainAliases) + && entityId.equals(other.entityId) + && fedMetadataXml.equals(other.fedMetadataXml) + && iconUrl.equals(other.iconUrl) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && prevThumbprints.equals(other.prevThumbprints) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && userIdAttribute.equals(other.userIdAttribute); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adfsServer, + this.certRolloverNotification, + this.domainAliases, + this.entityId, + this.fedMetadataXml, + this.iconUrl, + this.nonPersistentAttrs, + this.prevThumbprints, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams, + this.userIdAttribute); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional adfsServer = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional entityId = Optional.empty(); + + private Optional fedMetadataXml = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional> prevThumbprints = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional userIdAttribute = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject4Options other) { + adfsServer(other.getAdfsServer()); + certRolloverNotification(other.getCertRolloverNotification()); + domainAliases(other.getDomainAliases()); + entityId(other.getEntityId()); + fedMetadataXml(other.getFedMetadataXml()); + iconUrl(other.getIconUrl()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + prevThumbprints(other.getPrevThumbprints()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + userIdAttribute(other.getUserIdAttribute()); + return this; + } + + /** + *

ADFS federation metadata host or XML URL used to discover WS-Fed endpoints and certificates. Errors if adfs_server and fedMetadataXml are both absent.

+ */ + @JsonSetter(value = "adfs_server", nulls = Nulls.SKIP) + public Builder adfsServer(Optional adfsServer) { + this.adfsServer = adfsServer; + return this; + } + + public Builder adfsServer(String adfsServer) { + this.adfsServer = Optional.ofNullable(adfsServer); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public Builder certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + public Builder certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

The entity identifier (Issuer) for the ADFS Service Provider. When not provided, defaults to 'urn:auth0:{tenant}:{connection}'.

+ */ + @JsonSetter(value = "entityId", nulls = Nulls.SKIP) + public Builder entityId(Optional entityId) { + this.entityId = entityId; + return this; + } + + public Builder entityId(String entityId) { + this.entityId = Optional.ofNullable(entityId); + return this; + } + + /** + *

Inline XML alternative to 'adfs_server'. Cannot be set together with 'adfs_server'.

+ */ + @JsonSetter(value = "fedMetadataXml", nulls = Nulls.SKIP) + public Builder fedMetadataXml(Optional fedMetadataXml) { + this.fedMetadataXml = fedMetadataXml; + return this; + } + + public Builder fedMetadataXml(String fedMetadataXml) { + this.fedMetadataXml = Optional.ofNullable(fedMetadataXml); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "prev_thumbprints", nulls = Nulls.SKIP) + public Builder prevThumbprints(Optional> prevThumbprints) { + this.prevThumbprints = prevThumbprints; + return this; + } + + public Builder prevThumbprints(List prevThumbprints) { + this.prevThumbprints = Optional.ofNullable(prevThumbprints); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public Builder shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + public Builder shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + /** + *

Passive Requestor (WS-Fed) sign-in endpoint discovered from metadata or provided explicitly.

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Tenant domain

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + /** + *

Custom ADFS claim to use as the unique user identifier. When provided, this attribute is prepended to the default user_id mapping list with highest priority. Accepts a string (single ADFS claim name).

+ */ + @JsonSetter(value = "user_id_attribute", nulls = Nulls.SKIP) + public Builder userIdAttribute(Optional userIdAttribute) { + this.userIdAttribute = userIdAttribute; + return this; + } + + public Builder userIdAttribute(String userIdAttribute) { + this.userIdAttribute = Optional.ofNullable(userIdAttribute); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject4Options build() { + return new EventStreamCloudEventConnectionUpdatedObject4Options( + adfsServer, + certRolloverNotification, + domainAliases, + entityId, + fedMetadataXml, + iconUrl, + nonPersistentAttrs, + prevThumbprints, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + userIdAttribute, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..5de352f83 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject4OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..6c76f8fde --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionUpdatedObject4OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java new file mode 100644 index 000000000..873ea12c1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject4StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject4StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject4StrategyEnum ADFS = + new EventStreamCloudEventConnectionUpdatedObject4StrategyEnum(Value.ADFS, "adfs"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject4StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject4StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject4StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ADFS: + return visitor.visitAdfs(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject4StrategyEnum valueOf(String value) { + switch (value) { + case "adfs": + return ADFS; + default: + return new EventStreamCloudEventConnectionUpdatedObject4StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ADFS, + + UNKNOWN + } + + public interface Visitor { + T visitAdfs(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java new file mode 100644 index 000000000..3e9a5f710 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5.java @@ -0,0 +1,515 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject5StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5 + && equalTo((EventStreamCloudEventConnectionUpdatedObject5) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject5 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject5 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject5Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject5Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject5Options options); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy; + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject5 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject5StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject5Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject5Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject5Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject5 build() { + return new EventStreamCloudEventConnectionUpdatedObject5( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java new file mode 100644 index 000000000..cff882239 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject5Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject5Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject5Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject5Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject5Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject5Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java new file mode 100644 index 000000000..c3f8825c5 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject5ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java new file mode 100644 index 000000000..0e819a2e6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject5Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject5Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject5Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java new file mode 100644 index 000000000..344851345 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5Options.java @@ -0,0 +1,657 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject5Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject5Options { + private final Optional agentIp; + + private final Optional agentMode; + + private final Optional agentVersion; + + private final Optional bruteForceProtection; + + private final Optional certAuth; + + private final Optional> certs; + + private final Optional disableCache; + + private final Optional disableSelfServiceChangePassword; + + private final Optional> domainAliases; + + private final Optional iconUrl; + + private final Optional> ips; + + private final Optional kerberos; + + private final Optional> nonPersistentAttrs; + + private final Optional + setUserRootAttributes; + + private final Optional signInEndpoint; + + private final Optional tenantDomain; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject5Options( + Optional agentIp, + Optional agentMode, + Optional agentVersion, + Optional bruteForceProtection, + Optional certAuth, + Optional> certs, + Optional disableCache, + Optional disableSelfServiceChangePassword, + Optional> domainAliases, + Optional iconUrl, + Optional> ips, + Optional kerberos, + Optional> nonPersistentAttrs, + Optional + setUserRootAttributes, + Optional signInEndpoint, + Optional tenantDomain, + Optional> thumbprints, + Optional> upstreamParams, + Map additionalProperties) { + this.agentIp = agentIp; + this.agentMode = agentMode; + this.agentVersion = agentVersion; + this.bruteForceProtection = bruteForceProtection; + this.certAuth = certAuth; + this.certs = certs; + this.disableCache = disableCache; + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + this.domainAliases = domainAliases; + this.iconUrl = iconUrl; + this.ips = ips; + this.kerberos = kerberos; + this.nonPersistentAttrs = nonPersistentAttrs; + this.setUserRootAttributes = setUserRootAttributes; + this.signInEndpoint = signInEndpoint; + this.tenantDomain = tenantDomain; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent). + */ + @JsonProperty("agentIP") + public Optional getAgentIp() { + return agentIp; + } + + /** + * @return When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent). + */ + @JsonProperty("agentMode") + public Optional getAgentMode() { + return agentMode; + } + + /** + * @return Version identifier of the installed AD connector agent software (managed by the AD Connector agent). + */ + @JsonProperty("agentVersion") + public Optional getAgentVersion() { + return agentVersion; + } + + /** + * @return Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures. + */ + @JsonProperty("brute_force_protection") + public Optional getBruteForceProtection() { + return bruteForceProtection; + } + + /** + * @return Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint + */ + @JsonProperty("certAuth") + public Optional getCertAuth() { + return certAuth; + } + + /** + * @return Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent). + */ + @JsonProperty("certs") + public Optional> getCerts() { + return certs; + } + + /** + * @return When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory + */ + @JsonProperty("disable_cache") + public Optional getDisableCache() { + return disableCache; + } + + /** + * @return When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets + */ + @JsonProperty("disable_self_service_change_password") + public Optional getDisableSelfServiceChangePassword() { + return disableSelfServiceChangePassword; + } + + /** + * @return List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return https url of the icon to be shown + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication. + */ + @JsonProperty("ips") + public Optional> getIps() { + return ips; + } + + /** + * @return Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges + */ + @JsonProperty("kerberos") + public Optional getKerberos() { + return kerberos; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent). + */ + @JsonProperty("signInEndpoint") + public Optional getSignInEndpoint() { + return signInEndpoint; + } + + /** + * @return Primary AD domain hint used for HRD and discovery. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject5Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject5Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject5Options other) { + return agentIp.equals(other.agentIp) + && agentMode.equals(other.agentMode) + && agentVersion.equals(other.agentVersion) + && bruteForceProtection.equals(other.bruteForceProtection) + && certAuth.equals(other.certAuth) + && certs.equals(other.certs) + && disableCache.equals(other.disableCache) + && disableSelfServiceChangePassword.equals(other.disableSelfServiceChangePassword) + && domainAliases.equals(other.domainAliases) + && iconUrl.equals(other.iconUrl) + && ips.equals(other.ips) + && kerberos.equals(other.kerberos) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && signInEndpoint.equals(other.signInEndpoint) + && tenantDomain.equals(other.tenantDomain) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.agentIp, + this.agentMode, + this.agentVersion, + this.bruteForceProtection, + this.certAuth, + this.certs, + this.disableCache, + this.disableSelfServiceChangePassword, + this.domainAliases, + this.iconUrl, + this.ips, + this.kerberos, + this.nonPersistentAttrs, + this.setUserRootAttributes, + this.signInEndpoint, + this.tenantDomain, + this.thumbprints, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional agentIp = Optional.empty(); + + private Optional agentMode = Optional.empty(); + + private Optional agentVersion = Optional.empty(); + + private Optional bruteForceProtection = Optional.empty(); + + private Optional certAuth = Optional.empty(); + + private Optional> certs = Optional.empty(); + + private Optional disableCache = Optional.empty(); + + private Optional disableSelfServiceChangePassword = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional> ips = Optional.empty(); + + private Optional kerberos = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional signInEndpoint = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject5Options other) { + agentIp(other.getAgentIp()); + agentMode(other.getAgentMode()); + agentVersion(other.getAgentVersion()); + bruteForceProtection(other.getBruteForceProtection()); + certAuth(other.getCertAuth()); + certs(other.getCerts()); + disableCache(other.getDisableCache()); + disableSelfServiceChangePassword(other.getDisableSelfServiceChangePassword()); + domainAliases(other.getDomainAliases()); + iconUrl(other.getIconUrl()); + ips(other.getIps()); + kerberos(other.getKerberos()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + setUserRootAttributes(other.getSetUserRootAttributes()); + signInEndpoint(other.getSignInEndpoint()); + tenantDomain(other.getTenantDomain()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

IP address of the AD connector agent used to validate that authentication requests originate from the corporate network for Kerberos authentication (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentIP", nulls = Nulls.SKIP) + public Builder agentIp(Optional agentIp) { + this.agentIp = agentIp; + return this; + } + + public Builder agentIp(String agentIp) { + this.agentIp = Optional.ofNullable(agentIp); + return this; + } + + /** + *

When enabled, allows direct username/password authentication through the AD connector agent instead of WS-Federation protocol (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentMode", nulls = Nulls.SKIP) + public Builder agentMode(Optional agentMode) { + this.agentMode = agentMode; + return this; + } + + public Builder agentMode(Boolean agentMode) { + this.agentMode = Optional.ofNullable(agentMode); + return this; + } + + /** + *

Version identifier of the installed AD connector agent software (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "agentVersion", nulls = Nulls.SKIP) + public Builder agentVersion(Optional agentVersion) { + this.agentVersion = agentVersion; + return this; + } + + public Builder agentVersion(String agentVersion) { + this.agentVersion = Optional.ofNullable(agentVersion); + return this; + } + + /** + *

Enables Auth0's brute force protection to prevent credential stuffing attacks. When enabled, blocks suspicious login attempts from specific IP addresses after repeated failures.

+ */ + @JsonSetter(value = "brute_force_protection", nulls = Nulls.SKIP) + public Builder bruteForceProtection(Optional bruteForceProtection) { + this.bruteForceProtection = bruteForceProtection; + return this; + } + + public Builder bruteForceProtection(Boolean bruteForceProtection) { + this.bruteForceProtection = Optional.ofNullable(bruteForceProtection); + return this; + } + + /** + *

Enables client SSL certificate authentication for the AD connector, requiring HTTPS on the sign-in endpoint

+ */ + @JsonSetter(value = "certAuth", nulls = Nulls.SKIP) + public Builder certAuth(Optional certAuth) { + this.certAuth = certAuth; + return this; + } + + public Builder certAuth(Boolean certAuth) { + this.certAuth = Optional.ofNullable(certAuth); + return this; + } + + /** + *

Array of X.509 certificates in PEM format used for validating SAML signatures from the AD identity provider (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "certs", nulls = Nulls.SKIP) + public Builder certs(Optional> certs) { + this.certs = certs; + return this; + } + + public Builder certs(List certs) { + this.certs = Optional.ofNullable(certs); + return this; + } + + /** + *

When enabled, disables caching of AD connector authentication results to ensure real-time validation against the directory

+ */ + @JsonSetter(value = "disable_cache", nulls = Nulls.SKIP) + public Builder disableCache(Optional disableCache) { + this.disableCache = disableCache; + return this; + } + + public Builder disableCache(Boolean disableCache) { + this.disableCache = Optional.ofNullable(disableCache); + return this; + } + + /** + *

When enabled, hides the 'Forgot Password' link on login pages to prevent users from initiating self-service password resets

+ */ + @JsonSetter(value = "disable_self_service_change_password", nulls = Nulls.SKIP) + public Builder disableSelfServiceChangePassword(Optional disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = disableSelfServiceChangePassword; + return this; + } + + public Builder disableSelfServiceChangePassword(Boolean disableSelfServiceChangePassword) { + this.disableSelfServiceChangePassword = Optional.ofNullable(disableSelfServiceChangePassword); + return this; + } + + /** + *

List of domain names that can be used with identifier-first authentication flow to route users to this AD connection; each domain must be a valid DNS name up to 256 characters

+ */ + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public Builder domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + public Builder domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

https url of the icon to be shown

+ */ + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public Builder iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + public Builder iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

Array of IP address ranges in CIDR notation used to determine if authentication requests originate from the corporate network for Kerberos or certificate authentication.

+ */ + @JsonSetter(value = "ips", nulls = Nulls.SKIP) + public Builder ips(Optional> ips) { + this.ips = ips; + return this; + } + + public Builder ips(List ips) { + this.ips = Optional.ofNullable(ips); + return this; + } + + /** + *

Enables Windows Integrated Authentication (Kerberos) for seamless SSO when users authenticate from within the corporate network IP ranges

+ */ + @JsonSetter(value = "kerberos", nulls = Nulls.SKIP) + public Builder kerberos(Optional kerberos) { + this.kerberos = kerberos; + return this; + } + + public Builder kerberos(Boolean kerberos) { + this.kerberos = Optional.ofNullable(kerberos); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public Builder nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + public Builder nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public Builder setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + public Builder setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + /** + *

The sign-in endpoint type for the AD-LDAP connector agent (managed by the AD Connector agent).

+ */ + @JsonSetter(value = "signInEndpoint", nulls = Nulls.SKIP) + public Builder signInEndpoint(Optional signInEndpoint) { + this.signInEndpoint = signInEndpoint; + return this; + } + + public Builder signInEndpoint(String signInEndpoint) { + this.signInEndpoint = Optional.ofNullable(signInEndpoint); + return this; + } + + /** + *

Primary AD domain hint used for HRD and discovery.

+ */ + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public Builder tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + public Builder tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

Array of certificate SHA-1 thumbprints for validating signatures. Managed by Auth0 when using the AD Connector agent.

+ */ + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public Builder thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + public Builder thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public Builder upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + public Builder upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject5Options build() { + return new EventStreamCloudEventConnectionUpdatedObject5Options( + agentIp, + agentMode, + agentVersion, + bruteForceProtection, + certAuth, + certs, + disableCache, + disableSelfServiceChangePassword, + domainAliases, + iconUrl, + ips, + kerberos, + nonPersistentAttrs, + setUserRootAttributes, + signInEndpoint, + tenantDomain, + thumbprints, + upstreamParams, + additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..2d13c5c6a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject5OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java new file mode 100644 index 000000000..aca91e399 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject5StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject5StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject5StrategyEnum AD = + new EventStreamCloudEventConnectionUpdatedObject5StrategyEnum(Value.AD, "ad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject5StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject5StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject5StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AD: + return visitor.visitAd(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject5StrategyEnum valueOf(String value) { + switch (value) { + case "ad": + return AD; + default: + return new EventStreamCloudEventConnectionUpdatedObject5StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + AD, + + UNKNOWN + } + + public interface Visitor { + T visitAd(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java new file mode 100644 index 000000000..0a5cd5623 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject6StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6 + && equalTo((EventStreamCloudEventConnectionUpdatedObject6) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject6Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject6Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject6Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject6StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject6Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject6Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject6Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6 build() { + return new EventStreamCloudEventConnectionUpdatedObject6( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java new file mode 100644 index 000000000..933d448b1 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject6Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject6Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java new file mode 100644 index 000000000..b2d60b33b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject6ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java new file mode 100644 index 000000000..a76007a11 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject6Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject6Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject6Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java new file mode 100644 index 000000000..225f6accf --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6Options.java @@ -0,0 +1,1112 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject6Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6Options { + private final Optional adminAccessTokenExpiresin; + + private final Optional allowSettingLoginScopes; + + private final Optional apiEnableGroups; + + private final Optional apiEnableUsers; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional email; + + private final Optional extAgreedTerms; + + private final Optional extGroups; + + private final Optional extGroupsExtended; + + private final Optional extIsAdmin; + + private final Optional extIsSuspended; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional handleLoginFromSocial; + + private final Optional iconUrl; + + private final Optional mapUserIdToId; + + private final Optional> nonPersistentAttrs; + + private final Optional profile; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional tenantDomain; + + private final Optional> upstreamParams; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6Options( + Optional adminAccessTokenExpiresin, + Optional allowSettingLoginScopes, + Optional apiEnableGroups, + Optional apiEnableUsers, + String clientId, + Optional domain, + Optional> domainAliases, + Optional email, + Optional extAgreedTerms, + Optional extGroups, + Optional extGroupsExtended, + Optional extIsAdmin, + Optional extIsSuspended, + Optional + federatedConnectionsAccessTokens, + Optional handleLoginFromSocial, + Optional iconUrl, + Optional mapUserIdToId, + Optional> nonPersistentAttrs, + Optional profile, + Optional> scope, + Optional + setUserRootAttributes, + Optional tenantDomain, + Optional> upstreamParams, + Map additionalProperties) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + this.allowSettingLoginScopes = allowSettingLoginScopes; + this.apiEnableGroups = apiEnableGroups; + this.apiEnableUsers = apiEnableUsers; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.email = email; + this.extAgreedTerms = extAgreedTerms; + this.extGroups = extGroups; + this.extGroupsExtended = extGroupsExtended; + this.extIsAdmin = extIsAdmin; + this.extIsSuspended = extIsSuspended; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.handleLoginFromSocial = handleLoginFromSocial; + this.iconUrl = iconUrl; + this.mapUserIdToId = mapUserIdToId; + this.nonPersistentAttrs = nonPersistentAttrs; + this.profile = profile; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.tenantDomain = tenantDomain; + this.upstreamParams = upstreamParams; + this.additionalProperties = additionalProperties; + } + + /** + * @return Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token. + */ + @JsonProperty("admin_access_token_expiresin") + public Optional getAdminAccessTokenExpiresin() { + return adminAccessTokenExpiresin; + } + + /** + * @return When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated. + */ + @JsonProperty("allow_setting_login_scopes") + public Optional getAllowSettingLoginScopes() { + return allowSettingLoginScopes; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false. + */ + @JsonProperty("api_enable_groups") + public Optional getApiEnableGroups() { + return apiEnableGroups; + } + + /** + * @return Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true. + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return Primary Google Workspace domain name that users must belong to. + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return Whether the OAuth flow requests the email scope. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + /** + * @return Fetches the agreedToTerms flag from the Google Directory profile. + */ + @JsonProperty("ext_agreed_terms") + public Optional getExtAgreedTerms() { + return extAgreedTerms; + } + + /** + * @return Enables enrichment with Google group memberships (required for ext_groups_extended). + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true. + */ + @JsonProperty("ext_groups_extended") + public Optional getExtGroupsExtended() { + return extGroupsExtended; + } + + /** + * @return Fetches the Google Directory admin flag for the signing-in user. + */ + @JsonProperty("ext_is_admin") + public Optional getExtIsAdmin() { + return extIsAdmin; + } + + /** + * @return Fetches the Google Directory suspended flag for the signing-in user. + */ + @JsonProperty("ext_is_suspended") + public Optional getExtIsSuspended() { + return extIsSuspended; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections. + */ + @JsonProperty("handle_login_from_social") + public Optional getHandleLoginFromSocial() { + return handleLoginFromSocial; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + /** + * @return Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward. + */ + @JsonProperty("map_user_id_to_id") + public Optional getMapUserIdToId() { + return mapUserIdToId; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return Whether the OAuth flow requests the profile scope. + */ + @JsonProperty("profile") + public Optional getProfile() { + return profile; + } + + /** + * @return Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + /** + * @return The Google Workspace primary domain used to identify the organization during authentication. + */ + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject6Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject6Options other) { + return adminAccessTokenExpiresin.equals(other.adminAccessTokenExpiresin) + && allowSettingLoginScopes.equals(other.allowSettingLoginScopes) + && apiEnableGroups.equals(other.apiEnableGroups) + && apiEnableUsers.equals(other.apiEnableUsers) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && email.equals(other.email) + && extAgreedTerms.equals(other.extAgreedTerms) + && extGroups.equals(other.extGroups) + && extGroupsExtended.equals(other.extGroupsExtended) + && extIsAdmin.equals(other.extIsAdmin) + && extIsSuspended.equals(other.extIsSuspended) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && handleLoginFromSocial.equals(other.handleLoginFromSocial) + && iconUrl.equals(other.iconUrl) + && mapUserIdToId.equals(other.mapUserIdToId) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && profile.equals(other.profile) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && tenantDomain.equals(other.tenantDomain) + && upstreamParams.equals(other.upstreamParams); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.adminAccessTokenExpiresin, + this.allowSettingLoginScopes, + this.apiEnableGroups, + this.apiEnableUsers, + this.clientId, + this.domain, + this.domainAliases, + this.email, + this.extAgreedTerms, + this.extGroups, + this.extGroupsExtended, + this.extIsAdmin, + this.extIsSuspended, + this.federatedConnectionsAccessTokens, + this.handleLoginFromSocial, + this.iconUrl, + this.mapUserIdToId, + this.nonPersistentAttrs, + this.profile, + this.scope, + this.setUserRootAttributes, + this.tenantDomain, + this.upstreamParams); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin); + + _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin); + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes); + + _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + _FinalStage apiEnableGroups(Optional apiEnableGroups); + + _FinalStage apiEnableGroups(Boolean apiEnableGroups); + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + _FinalStage email(Optional email); + + _FinalStage email(Boolean email); + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + _FinalStage extAgreedTerms(Optional extAgreedTerms); + + _FinalStage extAgreedTerms(Boolean extAgreedTerms); + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + _FinalStage extGroupsExtended(Optional extGroupsExtended); + + _FinalStage extGroupsExtended(Boolean extGroupsExtended); + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + _FinalStage extIsAdmin(Optional extIsAdmin); + + _FinalStage extIsAdmin(Boolean extIsAdmin); + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + _FinalStage extIsSuspended(Optional extIsSuspended); + + _FinalStage extIsSuspended(Boolean extIsSuspended); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial); + + _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + _FinalStage mapUserIdToId(Optional mapUserIdToId); + + _FinalStage mapUserIdToId(Boolean mapUserIdToId); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + _FinalStage profile(Optional profile); + + _FinalStage profile(Boolean profile); + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes); + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional> upstreamParams = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional profile = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional mapUserIdToId = Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional handleLoginFromSocial = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extIsSuspended = Optional.empty(); + + private Optional extIsAdmin = Optional.empty(); + + private Optional extGroupsExtended = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional extAgreedTerms = Optional.empty(); + + private Optional email = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + private Optional apiEnableGroups = Optional.empty(); + + private Optional allowSettingLoginScopes = Optional.empty(); + + private Optional adminAccessTokenExpiresin = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject6Options other) { + adminAccessTokenExpiresin(other.getAdminAccessTokenExpiresin()); + allowSettingLoginScopes(other.getAllowSettingLoginScopes()); + apiEnableGroups(other.getApiEnableGroups()); + apiEnableUsers(other.getApiEnableUsers()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + email(other.getEmail()); + extAgreedTerms(other.getExtAgreedTerms()); + extGroups(other.getExtGroups()); + extGroupsExtended(other.getExtGroupsExtended()); + extIsAdmin(other.getExtIsAdmin()); + extIsSuspended(other.getExtIsSuspended()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + handleLoginFromSocial(other.getHandleLoginFromSocial()); + iconUrl(other.getIconUrl()); + mapUserIdToId(other.getMapUserIdToId()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + profile(other.getProfile()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + tenantDomain(other.getTenantDomain()); + upstreamParams(other.getUpstreamParams()); + return this; + } + + /** + *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ *

Your Google OAuth 2.0 client ID. You can find this in your Google Cloud Console under the OAuth 2.0 Client IDs section.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + /** + *

The Google Workspace primary domain used to identify the organization during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

Additional OAuth scopes requested beyond the default email profile scopes; ignored unless allow_setting_login_scopes is true.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage profile(Boolean profile) { + this.profile = Optional.ofNullable(profile); + return this; + } + + /** + *

Whether the OAuth flow requests the profile scope.

+ */ + @java.lang.Override + @JsonSetter(value = "profile", nulls = Nulls.SKIP) + public _FinalStage profile(Optional profile) { + this.profile = profile; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage mapUserIdToId(Boolean mapUserIdToId) { + this.mapUserIdToId = Optional.ofNullable(mapUserIdToId); + return this; + } + + /** + *

Determines how Auth0 generates the user_id for Google Workspace users. When false (default), the user's email address is used. When true, Google's stable numeric user ID is used instead, which persists even if the user's email changes. This setting can only be configured when creating the connection and cannot be changed afterward.

+ */ + @java.lang.Override + @JsonSetter(value = "map_user_id_to_id", nulls = Nulls.SKIP) + public _FinalStage mapUserIdToId(Optional mapUserIdToId) { + this.mapUserIdToId = mapUserIdToId; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage handleLoginFromSocial(Boolean handleLoginFromSocial) { + this.handleLoginFromSocial = Optional.ofNullable(handleLoginFromSocial); + return this; + } + + /** + *

When enabled, users who sign in with their Google account through a social login will be automatically routed to this Google Workspace connection if their email domain matches the configured tenant_domain or domain_aliases. This ensures enterprise users authenticate through their organization's Google Workspace identity provider rather than through a generic Google social login, enabling access to directory-based attributes and enforcing organizational security policies. Defaults to true for new connections.

+ */ + @java.lang.Override + @JsonSetter(value = "handle_login_from_social", nulls = Nulls.SKIP) + public _FinalStage handleLoginFromSocial(Optional handleLoginFromSocial) { + this.handleLoginFromSocial = handleLoginFromSocial; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsSuspended(Boolean extIsSuspended) { + this.extIsSuspended = Optional.ofNullable(extIsSuspended); + return this; + } + + /** + *

Fetches the Google Directory suspended flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_suspended", nulls = Nulls.SKIP) + public _FinalStage extIsSuspended(Optional extIsSuspended) { + this.extIsSuspended = extIsSuspended; + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extIsAdmin(Boolean extIsAdmin) { + this.extIsAdmin = Optional.ofNullable(extIsAdmin); + return this; + } + + /** + *

Fetches the Google Directory admin flag for the signing-in user.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_is_admin", nulls = Nulls.SKIP) + public _FinalStage extIsAdmin(Optional extIsAdmin) { + this.extIsAdmin = extIsAdmin; + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroupsExtended(Boolean extGroupsExtended) { + this.extGroupsExtended = Optional.ofNullable(extGroupsExtended); + return this; + } + + /** + *

Controls whether enriched group entries include id, email, name (true) or only the group name (false); can only be set when ext_groups is true.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups_extended", nulls = Nulls.SKIP) + public _FinalStage extGroupsExtended(Optional extGroupsExtended) { + this.extGroupsExtended = extGroupsExtended; + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

Enables enrichment with Google group memberships (required for ext_groups_extended).

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extAgreedTerms(Boolean extAgreedTerms) { + this.extAgreedTerms = Optional.ofNullable(extAgreedTerms); + return this; + } + + /** + *

Fetches the agreedToTerms flag from the Google Directory profile.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_agreed_terms", nulls = Nulls.SKIP) + public _FinalStage extAgreedTerms(Optional extAgreedTerms) { + this.extAgreedTerms = extAgreedTerms; + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage email(Boolean email) { + this.email = Optional.ofNullable(email); + return this; + } + + /** + *

Whether the OAuth flow requests the email scope.

+ */ + @java.lang.Override + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public _FinalStage email(Optional email) { + this.email = email; + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Email domains associated with this connection for Home Realm Discovery (HRD). When a user's email matches one of these domains, they are automatically routed to this connection during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

Primary Google Workspace domain name that users must belong to.

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API. When true, Auth0 can retrieve extended user attributes (admin status, suspension status, group memberships) and supports inbound directory provisioning (SCIM). Defaults to true.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableGroups(Boolean apiEnableGroups) { + this.apiEnableGroups = Optional.ofNullable(apiEnableGroups); + return this; + } + + /** + *

Enables integration with the Google Workspace Admin SDK Directory API for groups. When true, Auth0 can synchronize groups & group memberships and supports inbound directory provisioning for groups. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_groups", nulls = Nulls.SKIP) + public _FinalStage apiEnableGroups(Optional apiEnableGroups) { + this.apiEnableGroups = apiEnableGroups; + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage allowSettingLoginScopes(Boolean allowSettingLoginScopes) { + this.allowSettingLoginScopes = Optional.ofNullable(allowSettingLoginScopes); + return this; + } + + /** + *

When true, allows customization of OAuth scopes requested during user login. Custom scopes are appended to the mandatory email and profile scopes. When false or omitted, only the default email and profile scopes are used. This property is automatically enabled when Token Vault or Connected Accounts features are activated.

+ */ + @java.lang.Override + @JsonSetter(value = "allow_setting_login_scopes", nulls = Nulls.SKIP) + public _FinalStage allowSettingLoginScopes(Optional allowSettingLoginScopes) { + this.allowSettingLoginScopes = allowSettingLoginScopes; + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage adminAccessTokenExpiresin(OffsetDateTime adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = Optional.ofNullable(adminAccessTokenExpiresin); + return this; + } + + /** + *

Expiration timestamp for the admin_access_token in ISO 8601 format. Auth0 uses this value to determine when to refresh the token.

+ */ + @java.lang.Override + @JsonSetter(value = "admin_access_token_expiresin", nulls = Nulls.SKIP) + public _FinalStage adminAccessTokenExpiresin(Optional adminAccessTokenExpiresin) { + this.adminAccessTokenExpiresin = adminAccessTokenExpiresin; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6Options build() { + return new EventStreamCloudEventConnectionUpdatedObject6Options( + adminAccessTokenExpiresin, + allowSettingLoginScopes, + apiEnableGroups, + apiEnableUsers, + clientId, + domain, + domainAliases, + email, + extAgreedTerms, + extGroups, + extGroupsExtended, + extIsAdmin, + extIsSuspended, + federatedConnectionsAccessTokens, + handleLoginFromSocial, + iconUrl, + mapUserIdToId, + nonPersistentAttrs, + profile, + scope, + setUserRootAttributes, + tenantDomain, + upstreamParams, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..7c44fbfb0 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject6OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..ab19c7427 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject6OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java new file mode 100644 index 000000000..30097b57a --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject6StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject6StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject6StrategyEnum GOOGLE_APPS = + new EventStreamCloudEventConnectionUpdatedObject6StrategyEnum(Value.GOOGLE_APPS, "google-apps"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject6StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject6StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject6StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case GOOGLE_APPS: + return visitor.visitGoogleApps(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject6StrategyEnum valueOf(String value) { + switch (value) { + case "google-apps": + return GOOGLE_APPS; + default: + return new EventStreamCloudEventConnectionUpdatedObject6StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + GOOGLE_APPS, + + UNKNOWN + } + + public interface Visitor { + T visitGoogleApps(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java new file mode 100644 index 000000000..5c06664c4 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7.java @@ -0,0 +1,560 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7 { + private final Optional authentication; + + private final Optional connectedAccounts; + + private final Optional displayName; + + private final Optional> enabledClients; + + private final String id; + + private final Optional isDomainConnection; + + private final Optional metadata; + + private final String name; + + private final Optional> realms; + + private final Optional options; + + private final Optional showAsButton; + + private final EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7( + Optional authentication, + Optional connectedAccounts, + Optional displayName, + Optional> enabledClients, + String id, + Optional isDomainConnection, + Optional metadata, + String name, + Optional> realms, + Optional options, + Optional showAsButton, + EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy, + Map additionalProperties) { + this.authentication = authentication; + this.connectedAccounts = connectedAccounts; + this.displayName = displayName; + this.enabledClients = enabledClients; + this.id = id; + this.isDomainConnection = isDomainConnection; + this.metadata = metadata; + this.name = name; + this.realms = realms; + this.options = options; + this.showAsButton = showAsButton; + this.strategy = strategy; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("authentication") + public Optional getAuthentication() { + return authentication; + } + + @JsonProperty("connected_accounts") + public Optional getConnectedAccounts() { + return connectedAccounts; + } + + /** + * @return Connection name used in the new universal login experience + */ + @JsonProperty("display_name") + public Optional getDisplayName() { + return displayName; + } + + /** + * @return Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients. + */ + @JsonProperty("enabled_clients") + public Optional> getEnabledClients() { + return enabledClients; + } + + /** + * @return The connection's identifier + */ + @JsonProperty("id") + public String getId() { + return id; + } + + /** + * @return true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.) + */ + @JsonProperty("is_domain_connection") + public Optional getIsDomainConnection() { + return isDomainConnection; + } + + @JsonProperty("metadata") + public Optional getMetadata() { + return metadata; + } + + /** + * @return The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128 + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * @return Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm. + */ + @JsonProperty("realms") + public Optional> getRealms() { + return realms; + } + + @JsonProperty("options") + public Optional getOptions() { + return options; + } + + /** + * @return Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false. + */ + @JsonProperty("show_as_button") + public Optional getShowAsButton() { + return showAsButton; + } + + @JsonProperty("strategy") + public EventStreamCloudEventConnectionUpdatedObject7StrategyEnum getStrategy() { + return strategy; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7 + && equalTo((EventStreamCloudEventConnectionUpdatedObject7) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7 other) { + return authentication.equals(other.authentication) + && connectedAccounts.equals(other.connectedAccounts) + && displayName.equals(other.displayName) + && enabledClients.equals(other.enabledClients) + && id.equals(other.id) + && isDomainConnection.equals(other.isDomainConnection) + && metadata.equals(other.metadata) + && name.equals(other.name) + && realms.equals(other.realms) + && options.equals(other.options) + && showAsButton.equals(other.showAsButton) + && strategy.equals(other.strategy); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.authentication, + this.connectedAccounts, + this.displayName, + this.enabledClients, + this.id, + this.isDomainConnection, + this.metadata, + this.name, + this.realms, + this.options, + this.showAsButton, + this.strategy); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static IdStage builder() { + return new Builder(); + } + + public interface IdStage { + /** + *

The connection's identifier

+ */ + NameStage id(@NotNull String id); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7 other); + } + + public interface NameStage { + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ */ + StrategyStage name(@NotNull String name); + } + + public interface StrategyStage { + _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7 build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage authentication( + Optional authentication); + + _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject7Authentication authentication); + + _FinalStage connectedAccounts( + Optional connectedAccounts); + + _FinalStage connectedAccounts(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts connectedAccounts); + + /** + *

Connection name used in the new universal login experience

+ */ + _FinalStage displayName(Optional displayName); + + _FinalStage displayName(String displayName); + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + _FinalStage enabledClients(Optional> enabledClients); + + _FinalStage enabledClients(List enabledClients); + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + _FinalStage isDomainConnection(Optional isDomainConnection); + + _FinalStage isDomainConnection(Boolean isDomainConnection); + + _FinalStage metadata(Optional metadata); + + _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject7Metadata metadata); + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + _FinalStage realms(Optional> realms); + + _FinalStage realms(List realms); + + _FinalStage options(Optional options); + + _FinalStage options(EventStreamCloudEventConnectionUpdatedObject7Options options); + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + _FinalStage showAsButton(Optional showAsButton); + + _FinalStage showAsButton(Boolean showAsButton); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements IdStage, NameStage, StrategyStage, _FinalStage { + private String id; + + private String name; + + private EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy; + + private Optional showAsButton = Optional.empty(); + + private Optional options = Optional.empty(); + + private Optional> realms = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional isDomainConnection = Optional.empty(); + + private Optional> enabledClients = Optional.empty(); + + private Optional displayName = Optional.empty(); + + private Optional connectedAccounts = + Optional.empty(); + + private Optional authentication = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7 other) { + authentication(other.getAuthentication()); + connectedAccounts(other.getConnectedAccounts()); + displayName(other.getDisplayName()); + enabledClients(other.getEnabledClients()); + id(other.getId()); + isDomainConnection(other.getIsDomainConnection()); + metadata(other.getMetadata()); + name(other.getName()); + realms(other.getRealms()); + options(other.getOptions()); + showAsButton(other.getShowAsButton()); + strategy(other.getStrategy()); + return this; + } + + /** + *

The connection's identifier

+ *

The connection's identifier

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("id") + public NameStage id(@NotNull String id) { + this.id = Objects.requireNonNull(id, "id must not be null"); + return this; + } + + /** + *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ *

The name of the connection. Must start and end with an alphanumeric character and can only contain alphanumeric characters and '-'. Max length 128

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("name") + public StrategyStage name(@NotNull String name) { + this.name = Objects.requireNonNull(name, "name must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("strategy") + public _FinalStage strategy(@NotNull EventStreamCloudEventConnectionUpdatedObject7StrategyEnum strategy) { + this.strategy = Objects.requireNonNull(strategy, "strategy must not be null"); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage showAsButton(Boolean showAsButton) { + this.showAsButton = Optional.ofNullable(showAsButton); + return this; + } + + /** + *

Enables showing a button for the connection in the login page (new experience only). If false, it will be usable only by HRD. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "show_as_button", nulls = Nulls.SKIP) + public _FinalStage showAsButton(Optional showAsButton) { + this.showAsButton = showAsButton; + return this; + } + + @java.lang.Override + public _FinalStage options(EventStreamCloudEventConnectionUpdatedObject7Options options) { + this.options = Optional.ofNullable(options); + return this; + } + + @java.lang.Override + @JsonSetter(value = "options", nulls = Nulls.SKIP) + public _FinalStage options(Optional options) { + this.options = options; + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage realms(List realms) { + this.realms = Optional.ofNullable(realms); + return this; + } + + /** + *

Defines the realms for which the connection will be used (ie: email domains). If the array is empty or the property is not specified, the connection name will be added as realm.

+ */ + @java.lang.Override + @JsonSetter(value = "realms", nulls = Nulls.SKIP) + public _FinalStage realms(Optional> realms) { + this.realms = realms; + return this; + } + + @java.lang.Override + public _FinalStage metadata(EventStreamCloudEventConnectionUpdatedObject7Metadata metadata) { + this.metadata = Optional.ofNullable(metadata); + return this; + } + + @java.lang.Override + @JsonSetter(value = "metadata", nulls = Nulls.SKIP) + public _FinalStage metadata(Optional metadata) { + this.metadata = metadata; + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage isDomainConnection(Boolean isDomainConnection) { + this.isDomainConnection = Optional.ofNullable(isDomainConnection); + return this; + } + + /** + *

true promotes to a domain-level connection so that third-party applications can use it. false does not promote the connection, so only first-party applications with the connection enabled can use it. (Defaults to false.)

+ */ + @java.lang.Override + @JsonSetter(value = "is_domain_connection", nulls = Nulls.SKIP) + public _FinalStage isDomainConnection(Optional isDomainConnection) { + this.isDomainConnection = isDomainConnection; + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage enabledClients(List enabledClients) { + this.enabledClients = Optional.ofNullable(enabledClients); + return this; + } + + /** + *

Use of this property is NOT RECOMMENDED. Use the PATCH /v2/connections/{id}/clients endpoint to enable the connection for a set of clients.

+ */ + @java.lang.Override + @JsonSetter(value = "enabled_clients", nulls = Nulls.SKIP) + public _FinalStage enabledClients(Optional> enabledClients) { + this.enabledClients = enabledClients; + return this; + } + + /** + *

Connection name used in the new universal login experience

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage displayName(String displayName) { + this.displayName = Optional.ofNullable(displayName); + return this; + } + + /** + *

Connection name used in the new universal login experience

+ */ + @java.lang.Override + @JsonSetter(value = "display_name", nulls = Nulls.SKIP) + public _FinalStage displayName(Optional displayName) { + this.displayName = displayName; + return this; + } + + @java.lang.Override + public _FinalStage connectedAccounts( + EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts connectedAccounts) { + this.connectedAccounts = Optional.ofNullable(connectedAccounts); + return this; + } + + @java.lang.Override + @JsonSetter(value = "connected_accounts", nulls = Nulls.SKIP) + public _FinalStage connectedAccounts( + Optional connectedAccounts) { + this.connectedAccounts = connectedAccounts; + return this; + } + + @java.lang.Override + public _FinalStage authentication(EventStreamCloudEventConnectionUpdatedObject7Authentication authentication) { + this.authentication = Optional.ofNullable(authentication); + return this; + } + + @java.lang.Override + @JsonSetter(value = "authentication", nulls = Nulls.SKIP) + public _FinalStage authentication( + Optional authentication) { + this.authentication = authentication; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7 build() { + return new EventStreamCloudEventConnectionUpdatedObject7( + authentication, + connectedAccounts, + displayName, + enabledClients, + id, + isDomainConnection, + metadata, + name, + realms, + options, + showAsButton, + strategy, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java new file mode 100644 index 000000000..1c0952f69 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Authentication.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7Authentication.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7Authentication { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7Authentication( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7Authentication + && equalTo((EventStreamCloudEventConnectionUpdatedObject7Authentication) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7Authentication other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7Authentication other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7Authentication build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7Authentication other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7Authentication build() { + return new EventStreamCloudEventConnectionUpdatedObject7Authentication(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java new file mode 100644 index 000000000..7de822a72 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.java @@ -0,0 +1,119 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts + && equalTo((EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts other) { + active(other.getActive()); + return this; + } + + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts build() { + return new EventStreamCloudEventConnectionUpdatedObject7ConnectedAccounts(active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java new file mode 100644 index 000000000..7dd0e8698 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Metadata.java @@ -0,0 +1,69 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7Metadata.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7Metadata { + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7Metadata(Map additionalProperties) { + this.additionalProperties = additionalProperties; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7Metadata; + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(EventStreamCloudEventConnectionUpdatedObject7Metadata other) { + return this; + } + + public EventStreamCloudEventConnectionUpdatedObject7Metadata build() { + return new EventStreamCloudEventConnectionUpdatedObject7Metadata(additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java new file mode 100644 index 000000000..efc2589a3 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7Options.java @@ -0,0 +1,1297 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = EventStreamCloudEventConnectionUpdatedObject7Options.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7Options { + private final Optional apiEnableUsers; + + private final Optional appDomain; + + private final Optional appId; + + private final Optional basicProfile; + + private final Optional certRolloverNotification; + + private final String clientId; + + private final Optional domain; + + private final Optional> domainAliases; + + private final Optional extGroups; + + private final Optional extNestedGroups; + + private final Optional extProfile; + + private final Optional + federatedConnectionsAccessTokens; + + private final Optional granted; + + private final Optional iconUrl; + + private final Optional identityApi; + + private final Optional maxGroupsToRetrieve; + + private final Optional> nonPersistentAttrs; + + private final Optional> scope; + + private final Optional + setUserRootAttributes; + + private final Optional + shouldTrustEmailVerifiedConnection; + + private final Optional tenantDomain; + + private final Optional tenantId; + + private final Optional> thumbprints; + + private final Optional> upstreamParams; + + private final Optional useWsfed; + + private final Optional useCommonEndpoint; + + private final Optional useridAttribute; + + private final Optional waadProtocol; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7Options( + Optional apiEnableUsers, + Optional appDomain, + Optional appId, + Optional basicProfile, + Optional certRolloverNotification, + String clientId, + Optional domain, + Optional> domainAliases, + Optional extGroups, + Optional extNestedGroups, + Optional extProfile, + Optional + federatedConnectionsAccessTokens, + Optional granted, + Optional iconUrl, + Optional identityApi, + Optional maxGroupsToRetrieve, + Optional> nonPersistentAttrs, + Optional> scope, + Optional + setUserRootAttributes, + Optional + shouldTrustEmailVerifiedConnection, + Optional tenantDomain, + Optional tenantId, + Optional> thumbprints, + Optional> upstreamParams, + Optional useWsfed, + Optional useCommonEndpoint, + Optional useridAttribute, + Optional waadProtocol, + Map additionalProperties) { + this.apiEnableUsers = apiEnableUsers; + this.appDomain = appDomain; + this.appId = appId; + this.basicProfile = basicProfile; + this.certRolloverNotification = certRolloverNotification; + this.clientId = clientId; + this.domain = domain; + this.domainAliases = domainAliases; + this.extGroups = extGroups; + this.extNestedGroups = extNestedGroups; + this.extProfile = extProfile; + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + this.granted = granted; + this.iconUrl = iconUrl; + this.identityApi = identityApi; + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + this.nonPersistentAttrs = nonPersistentAttrs; + this.scope = scope; + this.setUserRootAttributes = setUserRootAttributes; + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + this.tenantDomain = tenantDomain; + this.tenantId = tenantId; + this.thumbprints = thumbprints; + this.upstreamParams = upstreamParams; + this.useWsfed = useWsfed; + this.useCommonEndpoint = useCommonEndpoint; + this.useridAttribute = useridAttribute; + this.waadProtocol = waadProtocol; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enable users API + */ + @JsonProperty("api_enable_users") + public Optional getApiEnableUsers() { + return apiEnableUsers; + } + + /** + * @return The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints. + */ + @JsonProperty("app_domain") + public Optional getAppDomain() { + return appDomain; + } + + /** + * @return The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests. + */ + @JsonProperty("app_id") + public Optional getAppId() { + return appId; + } + + /** + * @return Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication. + */ + @JsonProperty("basic_profile") + public Optional getBasicProfile() { + return basicProfile; + } + + /** + * @return Timestamp of the last certificate expiring soon notification. + */ + @JsonProperty("cert_rollover_notification") + public Optional getCertRolloverNotification() { + return certRolloverNotification; + } + + /** + * @return OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider. + */ + @JsonProperty("client_id") + public String getClientId() { + return clientId; + } + + /** + * @return The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com'). + */ + @JsonProperty("domain") + public Optional getDomain() { + return domain; + } + + /** + * @return Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings. + */ + @JsonProperty("domain_aliases") + public Optional> getDomainAliases() { + return domainAliases; + } + + /** + * @return When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve. + */ + @JsonProperty("ext_groups") + public Optional getExtGroups() { + return extGroups; + } + + /** + * @return When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included. + */ + @JsonProperty("ext_nested_groups") + public Optional getExtNestedGroups() { + return extNestedGroups; + } + + /** + * @return When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2. + */ + @JsonProperty("ext_profile") + public Optional getExtProfile() { + return extProfile; + } + + @JsonProperty("federated_connections_access_tokens") + public Optional + getFederatedConnectionsAccessTokens() { + return federatedConnectionsAccessTokens; + } + + /** + * @return Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow. + */ + @JsonProperty("granted") + public Optional getGranted() { + return granted; + } + + /** + * @return URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows. + */ + @JsonProperty("icon_url") + public Optional getIconUrl() { + return iconUrl; + } + + @JsonProperty("identity_api") + public Optional getIdentityApi() { + return identityApi; + } + + /** + * @return Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default. + */ + @JsonProperty("max_groups_to_retrieve") + public Optional getMaxGroupsToRetrieve() { + return maxGroupsToRetrieve; + } + + /** + * @return An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist) + */ + @JsonProperty("non_persistent_attrs") + public Optional> getNonPersistentAttrs() { + return nonPersistentAttrs; + } + + /** + * @return OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes. + */ + @JsonProperty("scope") + public Optional> getScope() { + return scope; + } + + @JsonProperty("set_user_root_attributes") + public Optional + getSetUserRootAttributes() { + return setUserRootAttributes; + } + + @JsonProperty("should_trust_email_verified_connection") + public Optional + getShouldTrustEmailVerifiedConnection() { + return shouldTrustEmailVerifiedConnection; + } + + @JsonProperty("tenant_domain") + public Optional getTenantDomain() { + return tenantDomain; + } + + /** + * @return The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID. + */ + @JsonProperty("tenantId") + public Optional getTenantId() { + return tenantId; + } + + /** + * @return Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string. + */ + @JsonProperty("thumbprints") + public Optional> getThumbprints() { + return thumbprints; + } + + @JsonProperty("upstream_params") + public Optional> getUpstreamParams() { + return upstreamParams; + } + + /** + * @return Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect. + */ + @JsonProperty("use_wsfed") + public Optional getUseWsfed() { + return useWsfed; + } + + /** + * @return When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false. + */ + @JsonProperty("useCommonEndpoint") + public Optional getUseCommonEndpoint() { + return useCommonEndpoint; + } + + @JsonProperty("userid_attribute") + public Optional getUseridAttribute() { + return useridAttribute; + } + + @JsonProperty("waad_protocol") + public Optional getWaadProtocol() { + return waadProtocol; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7Options + && equalTo((EventStreamCloudEventConnectionUpdatedObject7Options) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(EventStreamCloudEventConnectionUpdatedObject7Options other) { + return apiEnableUsers.equals(other.apiEnableUsers) + && appDomain.equals(other.appDomain) + && appId.equals(other.appId) + && basicProfile.equals(other.basicProfile) + && certRolloverNotification.equals(other.certRolloverNotification) + && clientId.equals(other.clientId) + && domain.equals(other.domain) + && domainAliases.equals(other.domainAliases) + && extGroups.equals(other.extGroups) + && extNestedGroups.equals(other.extNestedGroups) + && extProfile.equals(other.extProfile) + && federatedConnectionsAccessTokens.equals(other.federatedConnectionsAccessTokens) + && granted.equals(other.granted) + && iconUrl.equals(other.iconUrl) + && identityApi.equals(other.identityApi) + && maxGroupsToRetrieve.equals(other.maxGroupsToRetrieve) + && nonPersistentAttrs.equals(other.nonPersistentAttrs) + && scope.equals(other.scope) + && setUserRootAttributes.equals(other.setUserRootAttributes) + && shouldTrustEmailVerifiedConnection.equals(other.shouldTrustEmailVerifiedConnection) + && tenantDomain.equals(other.tenantDomain) + && tenantId.equals(other.tenantId) + && thumbprints.equals(other.thumbprints) + && upstreamParams.equals(other.upstreamParams) + && useWsfed.equals(other.useWsfed) + && useCommonEndpoint.equals(other.useCommonEndpoint) + && useridAttribute.equals(other.useridAttribute) + && waadProtocol.equals(other.waadProtocol); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash( + this.apiEnableUsers, + this.appDomain, + this.appId, + this.basicProfile, + this.certRolloverNotification, + this.clientId, + this.domain, + this.domainAliases, + this.extGroups, + this.extNestedGroups, + this.extProfile, + this.federatedConnectionsAccessTokens, + this.granted, + this.iconUrl, + this.identityApi, + this.maxGroupsToRetrieve, + this.nonPersistentAttrs, + this.scope, + this.setUserRootAttributes, + this.shouldTrustEmailVerifiedConnection, + this.tenantDomain, + this.tenantId, + this.thumbprints, + this.upstreamParams, + this.useWsfed, + this.useCommonEndpoint, + this.useridAttribute, + this.waadProtocol); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ClientIdStage builder() { + return new Builder(); + } + + public interface ClientIdStage { + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ */ + _FinalStage clientId(@NotNull String clientId); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7Options other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7Options build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + /** + *

Enable users API

+ */ + _FinalStage apiEnableUsers(Optional apiEnableUsers); + + _FinalStage apiEnableUsers(Boolean apiEnableUsers); + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + _FinalStage appDomain(Optional appDomain); + + _FinalStage appDomain(String appDomain); + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + _FinalStage appId(Optional appId); + + _FinalStage appId(String appId); + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + _FinalStage basicProfile(Optional basicProfile); + + _FinalStage basicProfile(Boolean basicProfile); + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + _FinalStage certRolloverNotification(Optional certRolloverNotification); + + _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification); + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + _FinalStage domain(Optional domain); + + _FinalStage domain(String domain); + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + _FinalStage domainAliases(Optional> domainAliases); + + _FinalStage domainAliases(List domainAliases); + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + _FinalStage extGroups(Optional extGroups); + + _FinalStage extGroups(Boolean extGroups); + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + _FinalStage extNestedGroups(Optional extNestedGroups); + + _FinalStage extNestedGroups(Boolean extNestedGroups); + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + _FinalStage extProfile(Optional extProfile); + + _FinalStage extProfile(Boolean extProfile); + + _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens); + + _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens); + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + _FinalStage granted(Optional granted); + + _FinalStage granted(Boolean granted); + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + _FinalStage iconUrl(Optional iconUrl); + + _FinalStage iconUrl(String iconUrl); + + _FinalStage identityApi( + Optional identityApi); + + _FinalStage identityApi(EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum identityApi); + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve); + + _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve); + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs); + + _FinalStage nonPersistentAttrs(List nonPersistentAttrs); + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + _FinalStage scope(Optional> scope); + + _FinalStage scope(List scope); + + _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes); + + _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes); + + _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection); + + _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection); + + _FinalStage tenantDomain(Optional tenantDomain); + + _FinalStage tenantDomain(String tenantDomain); + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + _FinalStage tenantId(Optional tenantId); + + _FinalStage tenantId(String tenantId); + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + _FinalStage thumbprints(Optional> thumbprints); + + _FinalStage thumbprints(List thumbprints); + + _FinalStage upstreamParams(Optional> upstreamParams); + + _FinalStage upstreamParams(Map upstreamParams); + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + _FinalStage useWsfed(Optional useWsfed); + + _FinalStage useWsfed(Boolean useWsfed); + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + _FinalStage useCommonEndpoint(Optional useCommonEndpoint); + + _FinalStage useCommonEndpoint(Boolean useCommonEndpoint); + + _FinalStage useridAttribute( + Optional useridAttribute); + + _FinalStage useridAttribute( + EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum useridAttribute); + + _FinalStage waadProtocol( + Optional waadProtocol); + + _FinalStage waadProtocol(EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum waadProtocol); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ClientIdStage, _FinalStage { + private String clientId; + + private Optional waadProtocol = + Optional.empty(); + + private Optional useridAttribute = + Optional.empty(); + + private Optional useCommonEndpoint = Optional.empty(); + + private Optional useWsfed = Optional.empty(); + + private Optional> upstreamParams = Optional.empty(); + + private Optional> thumbprints = Optional.empty(); + + private Optional tenantId = Optional.empty(); + + private Optional tenantDomain = Optional.empty(); + + private Optional + shouldTrustEmailVerifiedConnection = Optional.empty(); + + private Optional + setUserRootAttributes = Optional.empty(); + + private Optional> scope = Optional.empty(); + + private Optional> nonPersistentAttrs = Optional.empty(); + + private Optional maxGroupsToRetrieve = Optional.empty(); + + private Optional identityApi = + Optional.empty(); + + private Optional iconUrl = Optional.empty(); + + private Optional granted = Optional.empty(); + + private Optional + federatedConnectionsAccessTokens = Optional.empty(); + + private Optional extProfile = Optional.empty(); + + private Optional extNestedGroups = Optional.empty(); + + private Optional extGroups = Optional.empty(); + + private Optional> domainAliases = Optional.empty(); + + private Optional domain = Optional.empty(); + + private Optional certRolloverNotification = Optional.empty(); + + private Optional basicProfile = Optional.empty(); + + private Optional appId = Optional.empty(); + + private Optional appDomain = Optional.empty(); + + private Optional apiEnableUsers = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(EventStreamCloudEventConnectionUpdatedObject7Options other) { + apiEnableUsers(other.getApiEnableUsers()); + appDomain(other.getAppDomain()); + appId(other.getAppId()); + basicProfile(other.getBasicProfile()); + certRolloverNotification(other.getCertRolloverNotification()); + clientId(other.getClientId()); + domain(other.getDomain()); + domainAliases(other.getDomainAliases()); + extGroups(other.getExtGroups()); + extNestedGroups(other.getExtNestedGroups()); + extProfile(other.getExtProfile()); + federatedConnectionsAccessTokens(other.getFederatedConnectionsAccessTokens()); + granted(other.getGranted()); + iconUrl(other.getIconUrl()); + identityApi(other.getIdentityApi()); + maxGroupsToRetrieve(other.getMaxGroupsToRetrieve()); + nonPersistentAttrs(other.getNonPersistentAttrs()); + scope(other.getScope()); + setUserRootAttributes(other.getSetUserRootAttributes()); + shouldTrustEmailVerifiedConnection(other.getShouldTrustEmailVerifiedConnection()); + tenantDomain(other.getTenantDomain()); + tenantId(other.getTenantId()); + thumbprints(other.getThumbprints()); + upstreamParams(other.getUpstreamParams()); + useWsfed(other.getUseWsfed()); + useCommonEndpoint(other.getUseCommonEndpoint()); + useridAttribute(other.getUseridAttribute()); + waadProtocol(other.getWaadProtocol()); + return this; + } + + /** + *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ *

OAuth 2.0 client identifier issued by the identity provider during application registration. This value identifies your Auth0 connection to the identity provider.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("client_id") + public _FinalStage clientId(@NotNull String clientId) { + this.clientId = Objects.requireNonNull(clientId, "clientId must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage waadProtocol( + EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum waadProtocol) { + this.waadProtocol = Optional.ofNullable(waadProtocol); + return this; + } + + @java.lang.Override + @JsonSetter(value = "waad_protocol", nulls = Nulls.SKIP) + public _FinalStage waadProtocol( + Optional waadProtocol) { + this.waadProtocol = waadProtocol; + return this; + } + + @java.lang.Override + public _FinalStage useridAttribute( + EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum useridAttribute) { + this.useridAttribute = Optional.ofNullable(useridAttribute); + return this; + } + + @java.lang.Override + @JsonSetter(value = "userid_attribute", nulls = Nulls.SKIP) + public _FinalStage useridAttribute( + Optional useridAttribute) { + this.useridAttribute = useridAttribute; + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useCommonEndpoint(Boolean useCommonEndpoint) { + this.useCommonEndpoint = Optional.ofNullable(useCommonEndpoint); + return this; + } + + /** + *

When enabled (true), uses the Azure AD common endpoint for multi-tenant authentication. Allows users from any Azure AD organization to sign in. Requires userid_attribute set to 'sub' (not 'oid'). Cannot be used with SCIM provisioning. Defaults to false.

+ */ + @java.lang.Override + @JsonSetter(value = "useCommonEndpoint", nulls = Nulls.SKIP) + public _FinalStage useCommonEndpoint(Optional useCommonEndpoint) { + this.useCommonEndpoint = useCommonEndpoint; + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage useWsfed(Boolean useWsfed) { + this.useWsfed = Optional.ofNullable(useWsfed); + return this; + } + + /** + *

Indicates WS-Federation protocol usage. When true, uses WS-Federation; when false, uses OpenID Connect.

+ */ + @java.lang.Override + @JsonSetter(value = "use_wsfed", nulls = Nulls.SKIP) + public _FinalStage useWsfed(Optional useWsfed) { + this.useWsfed = useWsfed; + return this; + } + + @java.lang.Override + public _FinalStage upstreamParams(Map upstreamParams) { + this.upstreamParams = Optional.ofNullable(upstreamParams); + return this; + } + + @java.lang.Override + @JsonSetter(value = "upstream_params", nulls = Nulls.SKIP) + public _FinalStage upstreamParams(Optional> upstreamParams) { + this.upstreamParams = upstreamParams; + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage thumbprints(List thumbprints) { + this.thumbprints = Optional.ofNullable(thumbprints); + return this; + } + + /** + *

Array of certificate thumbprints (SHA-128/SHA-256/SHA-512 hex hashes) for validating SAML signatures. Used with WS-Federation protocol. Maximum 20 thumbprints. Each thumbprint must be a hexadecimal string.

+ */ + @java.lang.Override + @JsonSetter(value = "thumbprints", nulls = Nulls.SKIP) + public _FinalStage thumbprints(Optional> thumbprints) { + this.thumbprints = thumbprints; + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage tenantId(String tenantId) { + this.tenantId = Optional.ofNullable(tenantId); + return this; + } + + /** + *

The Azure AD tenant ID as a UUID. The unique identifier for your Azure AD organization. Must be a valid 36-character UUID.

+ */ + @java.lang.Override + @JsonSetter(value = "tenantId", nulls = Nulls.SKIP) + public _FinalStage tenantId(Optional tenantId) { + this.tenantId = tenantId; + return this; + } + + @java.lang.Override + public _FinalStage tenantDomain(String tenantDomain) { + this.tenantDomain = Optional.ofNullable(tenantDomain); + return this; + } + + @java.lang.Override + @JsonSetter(value = "tenant_domain", nulls = Nulls.SKIP) + public _FinalStage tenantDomain(Optional tenantDomain) { + this.tenantDomain = tenantDomain; + return this; + } + + @java.lang.Override + public _FinalStage shouldTrustEmailVerifiedConnection( + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = Optional.ofNullable(shouldTrustEmailVerifiedConnection); + return this; + } + + @java.lang.Override + @JsonSetter(value = "should_trust_email_verified_connection", nulls = Nulls.SKIP) + public _FinalStage shouldTrustEmailVerifiedConnection( + Optional + shouldTrustEmailVerifiedConnection) { + this.shouldTrustEmailVerifiedConnection = shouldTrustEmailVerifiedConnection; + return this; + } + + @java.lang.Override + public _FinalStage setUserRootAttributes( + EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum setUserRootAttributes) { + this.setUserRootAttributes = Optional.ofNullable(setUserRootAttributes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "set_user_root_attributes", nulls = Nulls.SKIP) + public _FinalStage setUserRootAttributes( + Optional + setUserRootAttributes) { + this.setUserRootAttributes = setUserRootAttributes; + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage scope(List scope) { + this.scope = Optional.ofNullable(scope); + return this; + } + + /** + *

OAuth 2.0 scopes to request from Azure AD during authentication. Each scope represents a permission (e.g., 'User.Read', 'Group.Read.All'). Only applies with Microsoft Identity Platform v2.0. See Microsoft Graph permissions reference for available scopes.

+ */ + @java.lang.Override + @JsonSetter(value = "scope", nulls = Nulls.SKIP) + public _FinalStage scope(Optional> scope) { + this.scope = scope; + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage nonPersistentAttrs(List nonPersistentAttrs) { + this.nonPersistentAttrs = Optional.ofNullable(nonPersistentAttrs); + return this; + } + + /** + *

An array of user fields that should not be stored in the Auth0 database (https://auth0.com/docs/security/data-security/denylist)

+ */ + @java.lang.Override + @JsonSetter(value = "non_persistent_attrs", nulls = Nulls.SKIP) + public _FinalStage nonPersistentAttrs(Optional> nonPersistentAttrs) { + this.nonPersistentAttrs = nonPersistentAttrs; + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage maxGroupsToRetrieve(String maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = Optional.ofNullable(maxGroupsToRetrieve); + return this; + } + + /** + *

Maximum number of Azure AD groups to retrieve per user during authentication. Helps prevent performance issues for users in many groups. Only applies when ext_groups is enabled. Leave empty to use platform default.

+ */ + @java.lang.Override + @JsonSetter(value = "max_groups_to_retrieve", nulls = Nulls.SKIP) + public _FinalStage maxGroupsToRetrieve(Optional maxGroupsToRetrieve) { + this.maxGroupsToRetrieve = maxGroupsToRetrieve; + return this; + } + + @java.lang.Override + public _FinalStage identityApi( + EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum identityApi) { + this.identityApi = Optional.ofNullable(identityApi); + return this; + } + + @java.lang.Override + @JsonSetter(value = "identity_api", nulls = Nulls.SKIP) + public _FinalStage identityApi( + Optional identityApi) { + this.identityApi = identityApi; + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage iconUrl(String iconUrl) { + this.iconUrl = Optional.ofNullable(iconUrl); + return this; + } + + /** + *

URL for the connection icon displayed in Auth0 login pages. Accepts HTTPS URLs. Used for visual branding in authentication flows.

+ */ + @java.lang.Override + @JsonSetter(value = "icon_url", nulls = Nulls.SKIP) + public _FinalStage iconUrl(Optional iconUrl) { + this.iconUrl = iconUrl; + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage granted(Boolean granted) { + this.granted = Optional.ofNullable(granted); + return this; + } + + /** + *

Indicates whether admin consent has been granted for the required Azure AD permissions. Read-only status field managed by Auth0 during the OAuth authorization flow.

+ */ + @java.lang.Override + @JsonSetter(value = "granted", nulls = Nulls.SKIP) + public _FinalStage granted(Optional granted) { + this.granted = granted; + return this; + } + + @java.lang.Override + public _FinalStage federatedConnectionsAccessTokens( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = Optional.ofNullable(federatedConnectionsAccessTokens); + return this; + } + + @java.lang.Override + @JsonSetter(value = "federated_connections_access_tokens", nulls = Nulls.SKIP) + public _FinalStage federatedConnectionsAccessTokens( + Optional + federatedConnectionsAccessTokens) { + this.federatedConnectionsAccessTokens = federatedConnectionsAccessTokens; + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extProfile(Boolean extProfile) { + this.extProfile = Optional.ofNullable(extProfile); + return this; + } + + /** + *

When enabled (true), retrieves extended profile attributes from Azure AD via Microsoft Graph API (job title, department, office location, etc.). Requires Graph API permissions. Only available with Azure AD v1 or when explicitly enabled for v2.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_profile", nulls = Nulls.SKIP) + public _FinalStage extProfile(Optional extProfile) { + this.extProfile = extProfile; + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extNestedGroups(Boolean extNestedGroups) { + this.extNestedGroups = Optional.ofNullable(extNestedGroups); + return this; + } + + /** + *

When true, stores all groups the user is member of, including transitive group memberships (groups within groups). When false (default), only direct group memberships are included.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_nested_groups", nulls = Nulls.SKIP) + public _FinalStage extNestedGroups(Optional extNestedGroups) { + this.extNestedGroups = extNestedGroups; + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage extGroups(Boolean extGroups) { + this.extGroups = Optional.ofNullable(extGroups); + return this; + } + + /** + *

When enabled (true), retrieves and stores Azure AD security group memberships for the user. Requires Microsoft Graph API permissions (Directory.Read.All). Allows configuring max_groups_to_retrieve.

+ */ + @java.lang.Override + @JsonSetter(value = "ext_groups", nulls = Nulls.SKIP) + public _FinalStage extGroups(Optional extGroups) { + this.extGroups = extGroups; + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domainAliases(List domainAliases) { + this.domainAliases = Optional.ofNullable(domainAliases); + return this; + } + + /** + *

Alternative domain names associated with this Azure AD tenant. Allows users from multiple verified domains to authenticate through this connection. Can be an array of domain strings.

+ */ + @java.lang.Override + @JsonSetter(value = "domain_aliases", nulls = Nulls.SKIP) + public _FinalStage domainAliases(Optional> domainAliases) { + this.domainAliases = domainAliases; + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage domain(String domain) { + this.domain = Optional.ofNullable(domain); + return this; + } + + /** + *

The primary Azure AD tenant domain (e.g., 'contoso.onmicrosoft.com' or 'contoso.com').

+ */ + @java.lang.Override + @JsonSetter(value = "domain", nulls = Nulls.SKIP) + public _FinalStage domain(Optional domain) { + this.domain = domain; + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage certRolloverNotification(OffsetDateTime certRolloverNotification) { + this.certRolloverNotification = Optional.ofNullable(certRolloverNotification); + return this; + } + + /** + *

Timestamp of the last certificate expiring soon notification.

+ */ + @java.lang.Override + @JsonSetter(value = "cert_rollover_notification", nulls = Nulls.SKIP) + public _FinalStage certRolloverNotification(Optional certRolloverNotification) { + this.certRolloverNotification = certRolloverNotification; + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage basicProfile(Boolean basicProfile) { + this.basicProfile = Optional.ofNullable(basicProfile); + return this; + } + + /** + *

Includes basic user profile information from Azure AD (name, email, given_name, family_name). Always enabled and required - represents the minimum profile data retrieved during authentication.

+ */ + @java.lang.Override + @JsonSetter(value = "basic_profile", nulls = Nulls.SKIP) + public _FinalStage basicProfile(Optional basicProfile) { + this.basicProfile = basicProfile; + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appId(String appId) { + this.appId = Optional.ofNullable(appId); + return this; + } + + /** + *

The Application ID URI (App ID URI) for the Azure AD application. Required when using Azure AD v1 with the Resource Owner Password flow. Used to identify the resource being requested in OAuth token requests.

+ */ + @java.lang.Override + @JsonSetter(value = "app_id", nulls = Nulls.SKIP) + public _FinalStage appId(Optional appId) { + this.appId = appId; + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage appDomain(String appDomain) { + this.appDomain = Optional.ofNullable(appDomain); + return this; + } + + /** + *

The Azure AD application domain (e.g., 'contoso.onmicrosoft.com'). Used primarily with WS-Federation protocol and Azure AD v1 endpoints.

+ */ + @java.lang.Override + @JsonSetter(value = "app_domain", nulls = Nulls.SKIP) + public _FinalStage appDomain(Optional appDomain) { + this.appDomain = appDomain; + return this; + } + + /** + *

Enable users API

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + public _FinalStage apiEnableUsers(Boolean apiEnableUsers) { + this.apiEnableUsers = Optional.ofNullable(apiEnableUsers); + return this; + } + + /** + *

Enable users API

+ */ + @java.lang.Override + @JsonSetter(value = "api_enable_users", nulls = Nulls.SKIP) + public _FinalStage apiEnableUsers(Optional apiEnableUsers) { + this.apiEnableUsers = apiEnableUsers; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7Options build() { + return new EventStreamCloudEventConnectionUpdatedObject7Options( + apiEnableUsers, + appDomain, + appId, + basicProfile, + certRolloverNotification, + clientId, + domain, + domainAliases, + extGroups, + extNestedGroups, + extProfile, + federatedConnectionsAccessTokens, + granted, + iconUrl, + identityApi, + maxGroupsToRetrieve, + nonPersistentAttrs, + scope, + setUserRootAttributes, + shouldTrustEmailVerifiedConnection, + tenantDomain, + tenantId, + thumbprints, + upstreamParams, + useWsfed, + useCommonEndpoint, + useridAttribute, + waadProtocol, + additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java new file mode 100644 index 000000000..b8d56c162 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.java @@ -0,0 +1,135 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize( + builder = EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens.Builder.class) +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens { + private final boolean active; + + private final Map additionalProperties; + + private EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens( + boolean active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Enables refresh tokens and access tokens collection for federated connections + */ + @JsonProperty("active") + public boolean getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens + && equalTo( + (EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens other) { + return active == other.active; + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ActiveStage builder() { + return new Builder(); + } + + public interface ActiveStage { + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ */ + _FinalStage active(boolean active); + + Builder from(EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens other); + } + + public interface _FinalStage { + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ActiveStage, _FinalStage { + private boolean active; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from( + EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens other) { + active(other.getActive()); + return this; + } + + /** + *

Enables refresh tokens and access tokens collection for federated connections

+ *

Enables refresh tokens and access tokens collection for federated connections

+ * @return Reference to {@code this} so that method calls can be chained together. + */ + @java.lang.Override + @JsonSetter("active") + public _FinalStage active(boolean active) { + this.active = active; + return this; + } + + @java.lang.Override + public EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens build() { + return new EventStreamCloudEventConnectionUpdatedObject7OptionsFederatedConnectionsAccessTokens( + active, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java new file mode 100644 index 000000000..5168b193e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum AZURE_ACTIVE_DIRECTORY_V10 = + new EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum( + Value.AZURE_ACTIVE_DIRECTORY_V10, "azure-active-directory-v1.0"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum + MICROSOFT_IDENTITY_PLATFORM_V20 = new EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum( + Value.MICROSOFT_IDENTITY_PLATFORM_V20, "microsoft-identity-platform-v2.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case AZURE_ACTIVE_DIRECTORY_V10: + return visitor.visitAzureActiveDirectoryV10(); + case MICROSOFT_IDENTITY_PLATFORM_V20: + return visitor.visitMicrosoftIdentityPlatformV20(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum valueOf(String value) { + switch (value) { + case "azure-active-directory-v1.0": + return AZURE_ACTIVE_DIRECTORY_V10; + case "microsoft-identity-platform-v2.0": + return MICROSOFT_IDENTITY_PLATFORM_V20; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsIdentityApiEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + MICROSOFT_IDENTITY_PLATFORM_V20, + + AZURE_ACTIVE_DIRECTORY_V10, + + UNKNOWN + } + + public interface Visitor { + T visitMicrosoftIdentityPlatformV20(); + + T visitAzureActiveDirectoryV10(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java new file mode 100644 index 000000000..1e1676019 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum.java @@ -0,0 +1,103 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum NEVER_ON_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.NEVER_ON_LOGIN, "never_on_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum ON_EACH_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_EACH_LOGIN, "on_each_login"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum ON_FIRST_LOGIN = + new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.ON_FIRST_LOGIN, "on_first_login"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_ON_LOGIN: + return visitor.visitNeverOnLogin(); + case ON_EACH_LOGIN: + return visitor.visitOnEachLogin(); + case ON_FIRST_LOGIN: + return visitor.visitOnFirstLogin(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum valueOf(String value) { + switch (value) { + case "never_on_login": + return NEVER_ON_LOGIN; + case "on_each_login": + return ON_EACH_LOGIN; + case "on_first_login": + return ON_FIRST_LOGIN; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsSetUserRootAttributesEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + ON_EACH_LOGIN, + + ON_FIRST_LOGIN, + + NEVER_ON_LOGIN, + + UNKNOWN + } + + public interface Visitor { + T visitOnEachLogin(); + + T visitOnFirstLogin(); + + T visitNeverOnLogin(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java new file mode 100644 index 000000000..f89402fe6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum.java @@ -0,0 +1,98 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + NEVER_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.NEVER_SET_EMAILS_AS_VERIFIED, "never_set_emails_as_verified"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + ALWAYS_SET_EMAILS_AS_VERIFIED = + new EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.ALWAYS_SET_EMAILS_AS_VERIFIED, "always_set_emails_as_verified"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other + instanceof + EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum) + other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NEVER_SET_EMAILS_AS_VERIFIED: + return visitor.visitNeverSetEmailsAsVerified(); + case ALWAYS_SET_EMAILS_AS_VERIFIED: + return visitor.visitAlwaysSetEmailsAsVerified(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum valueOf( + String value) { + switch (value) { + case "never_set_emails_as_verified": + return NEVER_SET_EMAILS_AS_VERIFIED; + case "always_set_emails_as_verified": + return ALWAYS_SET_EMAILS_AS_VERIFIED; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsShouldTrustEmailVerifiedConnectionEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + NEVER_SET_EMAILS_AS_VERIFIED, + + ALWAYS_SET_EMAILS_AS_VERIFIED, + + UNKNOWN + } + + public interface Visitor { + T visitNeverSetEmailsAsVerified(); + + T visitAlwaysSetEmailsAsVerified(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java new file mode 100644 index 000000000..e3dd1d950 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum SUB = + new EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum(Value.SUB, "sub"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum OID = + new EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum(Value.OID, "oid"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum) other) + .string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case SUB: + return visitor.visitSub(); + case OID: + return visitor.visitOid(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum valueOf(String value) { + switch (value) { + case "sub": + return SUB; + case "oid": + return OID; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsUseridAttributeEnum( + Value.UNKNOWN, value); + } + } + + public enum Value { + OID, + + SUB, + + UNKNOWN + } + + public interface Visitor { + T visitOid(); + + T visitSub(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java new file mode 100644 index 000000000..2431a5061 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum.java @@ -0,0 +1,89 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum OPENID_CONNECT = + new EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum( + Value.OPENID_CONNECT, "openid-connect"); + + public static final EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum WS_FEDERATION = + new EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum( + Value.WS_FEDERATION, "ws-federation"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case OPENID_CONNECT: + return visitor.visitOpenidConnect(); + case WS_FEDERATION: + return visitor.visitWsFederation(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum valueOf(String value) { + switch (value) { + case "openid-connect": + return OPENID_CONNECT; + case "ws-federation": + return WS_FEDERATION; + default: + return new EventStreamCloudEventConnectionUpdatedObject7OptionsWaadProtocolEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WS_FEDERATION, + + OPENID_CONNECT, + + UNKNOWN + } + + public interface Visitor { + T visitWsFederation(); + + T visitOpenidConnect(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java new file mode 100644 index 000000000..7df1a7b7e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedObject7StrategyEnum.java @@ -0,0 +1,76 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedObject7StrategyEnum { + public static final EventStreamCloudEventConnectionUpdatedObject7StrategyEnum WAAD = + new EventStreamCloudEventConnectionUpdatedObject7StrategyEnum(Value.WAAD, "waad"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedObject7StrategyEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedObject7StrategyEnum + && this.string.equals( + ((EventStreamCloudEventConnectionUpdatedObject7StrategyEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case WAAD: + return visitor.visitWaad(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedObject7StrategyEnum valueOf(String value) { + switch (value) { + case "waad": + return WAAD; + default: + return new EventStreamCloudEventConnectionUpdatedObject7StrategyEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + WAAD, + + UNKNOWN + } + + public interface Visitor { + T visitWaad(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java new file mode 100644 index 000000000..3fd9a030b --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventConnectionUpdatedTypeEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventConnectionUpdatedTypeEnum { + public static final EventStreamCloudEventConnectionUpdatedTypeEnum CONNECTION_UPDATED = + new EventStreamCloudEventConnectionUpdatedTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + + private final Value value; + + private final String string; + + EventStreamCloudEventConnectionUpdatedTypeEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventConnectionUpdatedTypeEnum + && this.string.equals(((EventStreamCloudEventConnectionUpdatedTypeEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventConnectionUpdatedTypeEnum valueOf(String value) { + switch (value) { + case "connection.updated": + return CONNECTION_UPDATED; + default: + return new EventStreamCloudEventConnectionUpdatedTypeEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + CONNECTION_UPDATED, + + UNKNOWN + } + + public interface Visitor { + T visitConnectionUpdated(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java index 2074d415a..2239a6f2d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupCreatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupCreatedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupCreatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupCreatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupCreatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupCreatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupCreatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupCreatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupCreatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupCreatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupCreatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java index f82090ff7..90619039c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java index c0489f425..b878d37f8 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberAddedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupMemberAddedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupMemberAddedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupMemberAddedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupMemberAddedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupMemberAddedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupMemberAddedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupMemberAddedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupMemberAddedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java index 0df4b6eda..f7c38e928 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupMemberDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupMemberDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupMemberDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupMemberDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupMemberDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupMemberDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupMemberDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupMemberDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupMemberDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java index 15157990e..e9687e449 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleAssignedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupRoleAssignedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupRoleAssignedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupRoleAssignedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupRoleAssignedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupRoleAssignedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupRoleAssignedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupRoleAssignedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupRoleAssignedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java index 8d2d10688..be6c90d0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupRoleDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupRoleDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupRoleDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupRoleDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupRoleDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupRoleDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupRoleDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupRoleDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupRoleDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java index 0b5944f46..1eb3f372e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventGroupUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventGroupUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventGroupUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventGroupUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventGroupUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventGroupUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventGroupUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventGroupUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventGroupUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventGroupUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventGroupUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java index 315e2d042..5e24cd6e7 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionAddedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgConnectionAddedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgConnectionAddedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgConnectionAddedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgConnectionAddedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgConnectionAddedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgConnectionAddedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgConnectionAddedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgConnectionAddedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java index c0d77abe3..6f2c74f12 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionRemovedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgConnectionRemovedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgConnectionRemovedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgConnectionRemovedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgConnectionRemovedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgConnectionRemovedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgConnectionRemovedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgConnectionRemovedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgConnectionRemovedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java index 65604425d..b17f9e897 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgConnectionUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgConnectionUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgConnectionUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgConnectionUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgConnectionUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgConnectionUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgConnectionUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgConnectionUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgConnectionUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java index a593ff35f..a55870f69 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgCreatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgCreatedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgCreatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgCreatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgCreatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgCreatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgCreatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgCreatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgCreatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgCreatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgCreatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java index ff7384e5c..fc39b3d3d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java index 0e19d0dc6..28c6122ba 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgGroupRoleAssignedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgGroupRoleAssignedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgGroupRoleAssignedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgGroupRoleAssignedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgGroupRoleAssignedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgGroupRoleAssignedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgGroupRoleAssignedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgGroupRoleAssignedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java index f506c84e6..45e2e4a0c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgGroupRoleDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgGroupRoleDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgGroupRoleDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgGroupRoleDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgGroupRoleDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgGroupRoleDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgGroupRoleDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgGroupRoleDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java index 6de1e7615..fbfeade86 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberAddedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberAddedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberAddedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberAddedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberAddedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberAddedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberAddedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberAddedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberAddedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java index d9a7700ff..2671db41a 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java index 35765efa1..1d64e3518 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberRoleAssignedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberRoleAssignedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberRoleAssignedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberRoleAssignedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberRoleAssignedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberRoleAssignedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberRoleAssignedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberRoleAssignedCloudEvent other) return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java index 2d7320160..fc762f77c 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgMemberRoleDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgMemberRoleDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgMemberRoleDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgMemberRoleDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgMemberRoleDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgMemberRoleDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgMemberRoleDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgMemberRoleDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java index ec5ebb95c..0e265994b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventOrgUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventOrgUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventOrgUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventOrgUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventOrgUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventOrgUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventOrgUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventOrgUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventOrgUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventOrgUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventOrgUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java new file mode 100644 index 000000000..c0b6d4187 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventSpecVersionEnum.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class EventStreamCloudEventSpecVersionEnum { + public static final EventStreamCloudEventSpecVersionEnum ONE0 = + new EventStreamCloudEventSpecVersionEnum(Value.ONE0, "1.0"); + + private final Value value; + + private final String string; + + EventStreamCloudEventSpecVersionEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof EventStreamCloudEventSpecVersionEnum + && this.string.equals(((EventStreamCloudEventSpecVersionEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case ONE0: + return visitor.visitOne0(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static EventStreamCloudEventSpecVersionEnum valueOf(String value) { + switch (value) { + case "1.0": + return ONE0; + default: + return new EventStreamCloudEventSpecVersionEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + ONE0, + + UNKNOWN + } + + public interface Visitor { + T visitOne0(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java index 031beeb56..dfa873100 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserCreatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventUserCreatedCloudEvent.Builder.class) public final class EventStreamCloudEventUserCreatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventUserCreatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventUserCreatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventUserCreatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventUserCreatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventUserCreatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventUserCreatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventUserCreatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventUserCreatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java index 970649366..d7832e6eb 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserDeletedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventUserDeletedCloudEvent.Builder.class) public final class EventStreamCloudEventUserDeletedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventUserDeletedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventUserDeletedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventUserDeletedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventUserDeletedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventUserDeletedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventUserDeletedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventUserDeletedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventUserDeletedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java index 74d7dbe60..d7feb6739 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamCloudEventUserUpdatedCloudEvent.java @@ -22,7 +22,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = EventStreamCloudEventUserUpdatedCloudEvent.Builder.class) public final class EventStreamCloudEventUserUpdatedCloudEvent { - private final String specversion; + private final EventStreamCloudEventSpecVersionEnum specversion; private final EventStreamCloudEventUserUpdatedCloudEventTypeEnum type; @@ -43,7 +43,7 @@ public final class EventStreamCloudEventUserUpdatedCloudEvent { private final Map additionalProperties; private EventStreamCloudEventUserUpdatedCloudEvent( - String specversion, + EventStreamCloudEventSpecVersionEnum specversion, EventStreamCloudEventUserUpdatedCloudEventTypeEnum type, String source, String id, @@ -65,11 +65,8 @@ private EventStreamCloudEventUserUpdatedCloudEvent( this.additionalProperties = additionalProperties; } - /** - * @return The version of the CloudEvents specification which the event uses. - */ @JsonProperty("specversion") - public String getSpecversion() { + public EventStreamCloudEventSpecVersionEnum getSpecversion() { return specversion; } @@ -176,10 +173,7 @@ public static SpecversionStage builder() { } public interface SpecversionStage { - /** - *

The version of the CloudEvents specification which the event uses.

- */ - TypeStage specversion(@NotNull String specversion); + TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion); Builder from(EventStreamCloudEventUserUpdatedCloudEvent other); } @@ -250,7 +244,7 @@ public static final class Builder A0TenantStage, A0StreamStage, _FinalStage { - private String specversion; + private EventStreamCloudEventSpecVersionEnum specversion; private EventStreamCloudEventUserUpdatedCloudEventTypeEnum type; @@ -287,14 +281,9 @@ public Builder from(EventStreamCloudEventUserUpdatedCloudEvent other) { return this; } - /** - *

The version of the CloudEvents specification which the event uses.

- *

The version of the CloudEvents specification which the event uses.

- * @return Reference to {@code this} so that method calls can be chained together. - */ @java.lang.Override @JsonSetter("specversion") - public TypeStage specversion(@NotNull String specversion) { + public TypeStage specversion(@NotNull EventStreamCloudEventSpecVersionEnum specversion) { this.specversion = Objects.requireNonNull(specversion, "specversion must not be null"); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java index 4ee09102c..7bebe6e54 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamDeliveryEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamDeliveryEventTypeEnum { + public static final EventStreamDeliveryEventTypeEnum CONNECTION_DELETED = + new EventStreamDeliveryEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamDeliveryEventTypeEnum GROUP_DELETED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -17,15 +20,9 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_CONNECTION_ADDED = new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamDeliveryEventTypeEnum USER_DELETED = - new EventStreamDeliveryEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamDeliveryEventTypeEnum GROUP_ROLE_DELETED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_CREATED = - new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -38,9 +35,8 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamDeliveryEventTypeEnum( - Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamDeliveryEventTypeEnum CONNECTION_CREATED = + new EventStreamDeliveryEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamDeliveryEventTypeEnum GROUP_CREATED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -52,6 +48,26 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum USER_CREATED = new EventStreamDeliveryEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_DELETED = + new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamDeliveryEventTypeEnum( + Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamDeliveryEventTypeEnum USER_DELETED = + new EventStreamDeliveryEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_CREATED = + new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamDeliveryEventTypeEnum( + Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamDeliveryEventTypeEnum CONNECTION_UPDATED = + new EventStreamDeliveryEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamDeliveryEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -61,9 +77,6 @@ public final class EventStreamDeliveryEventTypeEnum { public static final EventStreamDeliveryEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamDeliveryEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_DELETED = - new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamDeliveryEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); @@ -71,10 +84,6 @@ public final class EventStreamDeliveryEventTypeEnum { new EventStreamDeliveryEventTypeEnum( Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamDeliveryEventTypeEnum( - Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamDeliveryEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamDeliveryEventTypeEnum( Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -112,18 +121,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -132,28 +139,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -165,18 +180,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamDeliveryEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -185,28 +198,36 @@ public static EventStreamDeliveryEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -215,6 +236,12 @@ public static EventStreamDeliveryEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -263,6 +290,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java index 4e9b5203a..87a0f855b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamEventTypeEnum { + public static final EventStreamEventTypeEnum CONNECTION_DELETED = + new EventStreamEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamEventTypeEnum GROUP_DELETED = new EventStreamEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -16,15 +19,9 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum ORGANIZATION_CONNECTION_ADDED = new EventStreamEventTypeEnum(Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamEventTypeEnum USER_DELETED = - new EventStreamEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamEventTypeEnum GROUP_ROLE_DELETED = new EventStreamEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamEventTypeEnum ORGANIZATION_CREATED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -37,8 +34,8 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamEventTypeEnum CONNECTION_CREATED = + new EventStreamEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamEventTypeEnum GROUP_CREATED = new EventStreamEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -49,6 +46,24 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum USER_CREATED = new EventStreamEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamEventTypeEnum ORGANIZATION_DELETED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamEventTypeEnum USER_DELETED = + new EventStreamEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamEventTypeEnum ORGANIZATION_CREATED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamEventTypeEnum CONNECTION_UPDATED = + new EventStreamEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -58,18 +73,12 @@ public final class EventStreamEventTypeEnum { public static final EventStreamEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamEventTypeEnum ORGANIZATION_DELETED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); public static final EventStreamEventTypeEnum ORGANIZATION_GROUP_ROLE_DELETED = new EventStreamEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamEventTypeEnum(Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -106,18 +115,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -126,28 +133,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -159,18 +174,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -179,28 +192,36 @@ public static EventStreamEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -209,6 +230,12 @@ public static EventStreamEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -257,6 +284,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java index d2ce6b2c6..66de59fb3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamSubscribeEventsEventTypeEnum { + public static final EventStreamSubscribeEventsEventTypeEnum CONNECTION_DELETED = + new EventStreamSubscribeEventsEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamSubscribeEventsEventTypeEnum GROUP_DELETED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -18,15 +21,9 @@ public final class EventStreamSubscribeEventsEventTypeEnum { new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamSubscribeEventsEventTypeEnum USER_DELETED = - new EventStreamSubscribeEventsEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum GROUP_ROLE_DELETED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_CREATED = - new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -40,9 +37,8 @@ public final class EventStreamSubscribeEventsEventTypeEnum { public static final EventStreamSubscribeEventsEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamSubscribeEventsEventTypeEnum( - Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamSubscribeEventsEventTypeEnum CONNECTION_CREATED = + new EventStreamSubscribeEventsEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamSubscribeEventsEventTypeEnum GROUP_CREATED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -54,6 +50,26 @@ public final class EventStreamSubscribeEventsEventTypeEnum { public static final EventStreamSubscribeEventsEventTypeEnum USER_CREATED = new EventStreamSubscribeEventsEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_DELETED = + new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamSubscribeEventsEventTypeEnum( + Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamSubscribeEventsEventTypeEnum USER_DELETED = + new EventStreamSubscribeEventsEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_CREATED = + new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamSubscribeEventsEventTypeEnum( + Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamSubscribeEventsEventTypeEnum CONNECTION_UPDATED = + new EventStreamSubscribeEventsEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamSubscribeEventsEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -63,9 +79,6 @@ public final class EventStreamSubscribeEventsEventTypeEnum { public static final EventStreamSubscribeEventsEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamSubscribeEventsEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_DELETED = - new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamSubscribeEventsEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); @@ -73,10 +86,6 @@ public final class EventStreamSubscribeEventsEventTypeEnum { new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamSubscribeEventsEventTypeEnum( - Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamSubscribeEventsEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamSubscribeEventsEventTypeEnum( Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -114,18 +123,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -134,28 +141,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -167,18 +182,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamSubscribeEventsEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -187,28 +200,36 @@ public static EventStreamSubscribeEventsEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -217,6 +238,12 @@ public static EventStreamSubscribeEventsEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -265,6 +292,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java index f129c61e5..97b728add 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamSubscribeEventsResponseContent.java @@ -26,6 +26,21 @@ public T visit(Visitor visitor) { return value.visit(visitor); } + public static EventStreamSubscribeEventsResponseContent connectionCreated( + EventStreamCloudEventConnectionCreated value) { + return new EventStreamSubscribeEventsResponseContent(new ConnectionCreatedValue(value)); + } + + public static EventStreamSubscribeEventsResponseContent connectionDeleted( + EventStreamCloudEventConnectionDeleted value) { + return new EventStreamSubscribeEventsResponseContent(new ConnectionDeletedValue(value)); + } + + public static EventStreamSubscribeEventsResponseContent connectionUpdated( + EventStreamCloudEventConnectionUpdated value) { + return new EventStreamSubscribeEventsResponseContent(new ConnectionUpdatedValue(value)); + } + public static EventStreamSubscribeEventsResponseContent groupCreated(EventStreamCloudEventGroupCreated value) { return new EventStreamSubscribeEventsResponseContent(new GroupCreatedValue(value)); } @@ -135,6 +150,18 @@ public static EventStreamSubscribeEventsResponseContent offsetOnly(EventStreamCl return new EventStreamSubscribeEventsResponseContent(new OffsetOnlyValue(value)); } + public boolean isConnectionCreated() { + return value instanceof ConnectionCreatedValue; + } + + public boolean isConnectionDeleted() { + return value instanceof ConnectionDeletedValue; + } + + public boolean isConnectionUpdated() { + return value instanceof ConnectionUpdatedValue; + } + public boolean isGroupCreated() { return value instanceof GroupCreatedValue; } @@ -235,6 +262,27 @@ public boolean _isUnknown() { return value instanceof _UnknownValue; } + public Optional getConnectionCreated() { + if (isConnectionCreated()) { + return Optional.of(((ConnectionCreatedValue) value).value); + } + return Optional.empty(); + } + + public Optional getConnectionDeleted() { + if (isConnectionDeleted()) { + return Optional.of(((ConnectionDeletedValue) value).value); + } + return Optional.empty(); + } + + public Optional getConnectionUpdated() { + if (isConnectionUpdated()) { + return Optional.of(((ConnectionUpdatedValue) value).value); + } + return Optional.empty(); + } + public Optional getGroupCreated() { if (isGroupCreated()) { return Optional.of(((GroupCreatedValue) value).value); @@ -433,6 +481,12 @@ private Value getValue() { } public interface Visitor { + T visitConnectionCreated(EventStreamCloudEventConnectionCreated connectionCreated); + + T visitConnectionDeleted(EventStreamCloudEventConnectionDeleted connectionDeleted); + + T visitConnectionUpdated(EventStreamCloudEventConnectionUpdated connectionUpdated); + T visitGroupCreated(EventStreamCloudEventGroupCreated groupCreated); T visitGroupDeleted(EventStreamCloudEventGroupDeleted groupDeleted); @@ -487,6 +541,9 @@ T visitOrganizationMemberRoleAssigned( @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type", visible = true, defaultImpl = _UnknownValue.class) @JsonSubTypes({ + @JsonSubTypes.Type(ConnectionCreatedValue.class), + @JsonSubTypes.Type(ConnectionDeletedValue.class), + @JsonSubTypes.Type(ConnectionUpdatedValue.class), @JsonSubTypes.Type(GroupCreatedValue.class), @JsonSubTypes.Type(GroupDeletedValue.class), @JsonSubTypes.Type(GroupMemberAddedValue.class), @@ -517,6 +574,126 @@ private interface Value { T visit(Visitor visitor); } + @JsonTypeName("connection.created") + @JsonIgnoreProperties("type") + private static final class ConnectionCreatedValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "type", allowSetters = true) + private EventStreamCloudEventConnectionCreated value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private ConnectionCreatedValue() {} + + private ConnectionCreatedValue(EventStreamCloudEventConnectionCreated value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitConnectionCreated(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionCreatedValue && equalTo((ConnectionCreatedValue) other); + } + + private boolean equalTo(ConnectionCreatedValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "EventStreamSubscribeEventsResponseContent{" + "value: " + value + "}"; + } + } + + @JsonTypeName("connection.deleted") + @JsonIgnoreProperties("type") + private static final class ConnectionDeletedValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "type", allowSetters = true) + private EventStreamCloudEventConnectionDeleted value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private ConnectionDeletedValue() {} + + private ConnectionDeletedValue(EventStreamCloudEventConnectionDeleted value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitConnectionDeleted(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionDeletedValue && equalTo((ConnectionDeletedValue) other); + } + + private boolean equalTo(ConnectionDeletedValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "EventStreamSubscribeEventsResponseContent{" + "value: " + value + "}"; + } + } + + @JsonTypeName("connection.updated") + @JsonIgnoreProperties("type") + private static final class ConnectionUpdatedValue implements Value { + @JsonUnwrapped + @JsonIgnoreProperties(value = "type", allowSetters = true) + private EventStreamCloudEventConnectionUpdated value; + + @JsonCreator(mode = JsonCreator.Mode.PROPERTIES) + private ConnectionUpdatedValue() {} + + private ConnectionUpdatedValue(EventStreamCloudEventConnectionUpdated value) { + this.value = value; + } + + @java.lang.Override + public T visit(Visitor visitor) { + return visitor.visitConnectionUpdated(value); + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ConnectionUpdatedValue && equalTo((ConnectionUpdatedValue) other); + } + + private boolean equalTo(ConnectionUpdatedValue other) { + return value.equals(other.value); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.value); + } + + @java.lang.Override + public String toString() { + return "EventStreamSubscribeEventsResponseContent{" + "value: " + value + "}"; + } + } + @JsonTypeName("group.created") @JsonIgnoreProperties("type") private static final class GroupCreatedValue implements Value { diff --git a/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java b/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java index 78998f84a..f7edcf7a5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/EventStreamTestEventTypeEnum.java @@ -7,6 +7,9 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class EventStreamTestEventTypeEnum { + public static final EventStreamTestEventTypeEnum CONNECTION_DELETED = + new EventStreamTestEventTypeEnum(Value.CONNECTION_DELETED, "connection.deleted"); + public static final EventStreamTestEventTypeEnum GROUP_DELETED = new EventStreamTestEventTypeEnum(Value.GROUP_DELETED, "group.deleted"); @@ -16,15 +19,9 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum ORGANIZATION_CONNECTION_ADDED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_CONNECTION_ADDED, "organization.connection.added"); - public static final EventStreamTestEventTypeEnum USER_DELETED = - new EventStreamTestEventTypeEnum(Value.USER_DELETED, "user.deleted"); - public static final EventStreamTestEventTypeEnum GROUP_ROLE_DELETED = new EventStreamTestEventTypeEnum(Value.GROUP_ROLE_DELETED, "group.role.deleted"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_CREATED = - new EventStreamTestEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_DELETED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_MEMBER_DELETED, "organization.member.deleted"); @@ -37,9 +34,8 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum GROUP_MEMBER_ADDED = new EventStreamTestEventTypeEnum(Value.GROUP_MEMBER_ADDED, "group.member.added"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = - new EventStreamTestEventTypeEnum( - Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + public static final EventStreamTestEventTypeEnum CONNECTION_CREATED = + new EventStreamTestEventTypeEnum(Value.CONNECTION_CREATED, "connection.created"); public static final EventStreamTestEventTypeEnum GROUP_CREATED = new EventStreamTestEventTypeEnum(Value.GROUP_CREATED, "group.created"); @@ -50,6 +46,26 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum USER_CREATED = new EventStreamTestEventTypeEnum(Value.USER_CREATED, "user.created"); + public static final EventStreamTestEventTypeEnum ORGANIZATION_DELETED = + new EventStreamTestEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); + + public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = + new EventStreamTestEventTypeEnum( + Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); + + public static final EventStreamTestEventTypeEnum USER_DELETED = + new EventStreamTestEventTypeEnum(Value.USER_DELETED, "user.deleted"); + + public static final EventStreamTestEventTypeEnum ORGANIZATION_CREATED = + new EventStreamTestEventTypeEnum(Value.ORGANIZATION_CREATED, "organization.created"); + + public static final EventStreamTestEventTypeEnum ORGANIZATION_GROUP_ROLE_ASSIGNED = + new EventStreamTestEventTypeEnum( + Value.ORGANIZATION_GROUP_ROLE_ASSIGNED, "organization.group.role.assigned"); + + public static final EventStreamTestEventTypeEnum CONNECTION_UPDATED = + new EventStreamTestEventTypeEnum(Value.CONNECTION_UPDATED, "connection.updated"); + public static final EventStreamTestEventTypeEnum GROUP_MEMBER_DELETED = new EventStreamTestEventTypeEnum(Value.GROUP_MEMBER_DELETED, "group.member.deleted"); @@ -59,19 +75,12 @@ public final class EventStreamTestEventTypeEnum { public static final EventStreamTestEventTypeEnum GROUP_ROLE_ASSIGNED = new EventStreamTestEventTypeEnum(Value.GROUP_ROLE_ASSIGNED, "group.role.assigned"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_DELETED = - new EventStreamTestEventTypeEnum(Value.ORGANIZATION_DELETED, "organization.deleted"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ADDED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_MEMBER_ADDED, "organization.member.added"); public static final EventStreamTestEventTypeEnum ORGANIZATION_GROUP_ROLE_DELETED = new EventStreamTestEventTypeEnum(Value.ORGANIZATION_GROUP_ROLE_DELETED, "organization.group.role.deleted"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ROLE_ASSIGNED = - new EventStreamTestEventTypeEnum( - Value.ORGANIZATION_MEMBER_ROLE_ASSIGNED, "organization.member.role.assigned"); - public static final EventStreamTestEventTypeEnum ORGANIZATION_MEMBER_ROLE_DELETED = new EventStreamTestEventTypeEnum( Value.ORGANIZATION_MEMBER_ROLE_DELETED, "organization.member.role.deleted"); @@ -109,18 +118,16 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case CONNECTION_DELETED: + return visitor.visitConnectionDeleted(); case GROUP_DELETED: return visitor.visitGroupDeleted(); case ORGANIZATION_CONNECTION_UPDATED: return visitor.visitOrganizationConnectionUpdated(); case ORGANIZATION_CONNECTION_ADDED: return visitor.visitOrganizationConnectionAdded(); - case USER_DELETED: - return visitor.visitUserDeleted(); case GROUP_ROLE_DELETED: return visitor.visitGroupRoleDeleted(); - case ORGANIZATION_CREATED: - return visitor.visitOrganizationCreated(); case ORGANIZATION_MEMBER_DELETED: return visitor.visitOrganizationMemberDeleted(); case USER_UPDATED: @@ -129,28 +136,36 @@ public T visit(Visitor visitor) { return visitor.visitOrganizationUpdated(); case GROUP_MEMBER_ADDED: return visitor.visitGroupMemberAdded(); - case ORGANIZATION_GROUP_ROLE_ASSIGNED: - return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_CREATED: + return visitor.visitConnectionCreated(); case GROUP_CREATED: return visitor.visitGroupCreated(); case ORGANIZATION_CONNECTION_REMOVED: return visitor.visitOrganizationConnectionRemoved(); case USER_CREATED: return visitor.visitUserCreated(); + case ORGANIZATION_DELETED: + return visitor.visitOrganizationDeleted(); + case ORGANIZATION_MEMBER_ROLE_ASSIGNED: + return visitor.visitOrganizationMemberRoleAssigned(); + case USER_DELETED: + return visitor.visitUserDeleted(); + case ORGANIZATION_CREATED: + return visitor.visitOrganizationCreated(); + case ORGANIZATION_GROUP_ROLE_ASSIGNED: + return visitor.visitOrganizationGroupRoleAssigned(); + case CONNECTION_UPDATED: + return visitor.visitConnectionUpdated(); case GROUP_MEMBER_DELETED: return visitor.visitGroupMemberDeleted(); case GROUP_UPDATED: return visitor.visitGroupUpdated(); case GROUP_ROLE_ASSIGNED: return visitor.visitGroupRoleAssigned(); - case ORGANIZATION_DELETED: - return visitor.visitOrganizationDeleted(); case ORGANIZATION_MEMBER_ADDED: return visitor.visitOrganizationMemberAdded(); case ORGANIZATION_GROUP_ROLE_DELETED: return visitor.visitOrganizationGroupRoleDeleted(); - case ORGANIZATION_MEMBER_ROLE_ASSIGNED: - return visitor.visitOrganizationMemberRoleAssigned(); case ORGANIZATION_MEMBER_ROLE_DELETED: return visitor.visitOrganizationMemberRoleDeleted(); case UNKNOWN: @@ -162,18 +177,16 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static EventStreamTestEventTypeEnum valueOf(String value) { switch (value) { + case "connection.deleted": + return CONNECTION_DELETED; case "group.deleted": return GROUP_DELETED; case "organization.connection.updated": return ORGANIZATION_CONNECTION_UPDATED; case "organization.connection.added": return ORGANIZATION_CONNECTION_ADDED; - case "user.deleted": - return USER_DELETED; case "group.role.deleted": return GROUP_ROLE_DELETED; - case "organization.created": - return ORGANIZATION_CREATED; case "organization.member.deleted": return ORGANIZATION_MEMBER_DELETED; case "user.updated": @@ -182,28 +195,36 @@ public static EventStreamTestEventTypeEnum valueOf(String value) { return ORGANIZATION_UPDATED; case "group.member.added": return GROUP_MEMBER_ADDED; - case "organization.group.role.assigned": - return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.created": + return CONNECTION_CREATED; case "group.created": return GROUP_CREATED; case "organization.connection.removed": return ORGANIZATION_CONNECTION_REMOVED; case "user.created": return USER_CREATED; + case "organization.deleted": + return ORGANIZATION_DELETED; + case "organization.member.role.assigned": + return ORGANIZATION_MEMBER_ROLE_ASSIGNED; + case "user.deleted": + return USER_DELETED; + case "organization.created": + return ORGANIZATION_CREATED; + case "organization.group.role.assigned": + return ORGANIZATION_GROUP_ROLE_ASSIGNED; + case "connection.updated": + return CONNECTION_UPDATED; case "group.member.deleted": return GROUP_MEMBER_DELETED; case "group.updated": return GROUP_UPDATED; case "group.role.assigned": return GROUP_ROLE_ASSIGNED; - case "organization.deleted": - return ORGANIZATION_DELETED; case "organization.member.added": return ORGANIZATION_MEMBER_ADDED; case "organization.group.role.deleted": return ORGANIZATION_GROUP_ROLE_DELETED; - case "organization.member.role.assigned": - return ORGANIZATION_MEMBER_ROLE_ASSIGNED; case "organization.member.role.deleted": return ORGANIZATION_MEMBER_ROLE_DELETED; default: @@ -212,6 +233,12 @@ public static EventStreamTestEventTypeEnum valueOf(String value) { } public enum Value { + CONNECTION_CREATED, + + CONNECTION_DELETED, + + CONNECTION_UPDATED, + GROUP_CREATED, GROUP_DELETED, @@ -260,6 +287,12 @@ public enum Value { } public interface Visitor { + T visitConnectionCreated(); + + T visitConnectionDeleted(); + + T visitConnectionUpdated(); + T visitGroupCreated(); T visitGroupDeleted(); diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java index 830fddfad..4cdc3960d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationByNameResponseContent.java @@ -33,6 +33,8 @@ public final class GetOrganizationByNameResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private GetOrganizationByNameResponseContent( @@ -42,6 +44,7 @@ private GetOrganizationByNameResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private GetOrganizationByNameResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -109,12 +118,20 @@ private boolean equalTo(GetOrganizationByNameResponseContent other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -140,6 +157,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -152,6 +171,7 @@ public Builder from(GetOrganizationByNameResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -230,9 +250,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public GetOrganizationByNameResponseContent build() { return new GetOrganizationByNameResponseContent( - id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java index ef3e0106f..61d72f704 100644 --- a/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/GetOrganizationResponseContent.java @@ -33,6 +33,8 @@ public final class GetOrganizationResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private GetOrganizationResponseContent( @@ -42,6 +44,7 @@ private GetOrganizationResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private GetOrganizationResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -108,12 +117,20 @@ private boolean equalTo(GetOrganizationResponseContent other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -139,6 +156,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -151,6 +170,7 @@ public Builder from(GetOrganizationResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -229,9 +249,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public GetOrganizationResponseContent build() { return new GetOrganizationResponseContent( - id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java new file mode 100644 index 000000000..6ae097184 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/ListOrganizationRoleMembersResponseContent.java @@ -0,0 +1,153 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = ListOrganizationRoleMembersResponseContent.Builder.class) +public final class ListOrganizationRoleMembersResponseContent { + private final List members; + + private final Optional next; + + private final Map additionalProperties; + + private ListOrganizationRoleMembersResponseContent( + List members, Optional next, Map additionalProperties) { + this.members = members; + this.next = next; + this.additionalProperties = additionalProperties; + } + + /** + * @return List of members assigned to the role within the organization. + */ + @JsonProperty("members") + public List getMembers() { + return members; + } + + /** + * @return Cursor for the next page of results. Absent when there are no more results. + */ + @JsonProperty("next") + public Optional getNext() { + return next; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof ListOrganizationRoleMembersResponseContent + && equalTo((ListOrganizationRoleMembersResponseContent) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(ListOrganizationRoleMembersResponseContent other) { + return members.equals(other.members) && next.equals(other.next); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.members, this.next); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private List members = new ArrayList<>(); + + private Optional next = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(ListOrganizationRoleMembersResponseContent other) { + members(other.getMembers()); + next(other.getNext()); + return this; + } + + /** + *

List of members assigned to the role within the organization.

+ */ + @JsonSetter(value = "members", nulls = Nulls.SKIP) + public Builder members(List members) { + this.members.clear(); + if (members != null) { + this.members.addAll(members); + } + return this; + } + + public Builder addMembers(RoleMember members) { + this.members.add(members); + return this; + } + + public Builder addAllMembers(List members) { + if (members != null) { + this.members.addAll(members); + } + return this; + } + + /** + *

Cursor for the next page of results. Absent when there are no more results.

+ */ + @JsonSetter(value = "next", nulls = Nulls.SKIP) + public Builder next(Optional next) { + this.next = next; + return this; + } + + public Builder next(String next) { + this.next = Optional.ofNullable(next); + return this; + } + + public ListOrganizationRoleMembersResponseContent build() { + return new ListOrganizationRoleMembersResponseContent(members, next, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java index 17f27c3d6..956ffe082 100644 --- a/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/ListRolesOffsetPaginatedResponseContent.java @@ -21,20 +21,20 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = ListRolesOffsetPaginatedResponseContent.Builder.class) public final class ListRolesOffsetPaginatedResponseContent { - private final Optional start; + private final double start; - private final Optional limit; + private final double limit; - private final Optional total; + private final double total; private final Optional> roles; private final Map additionalProperties; private ListRolesOffsetPaginatedResponseContent( - Optional start, - Optional limit, - Optional total, + double start, + double limit, + double total, Optional> roles, Map additionalProperties) { this.start = start; @@ -45,17 +45,17 @@ private ListRolesOffsetPaginatedResponseContent( } @JsonProperty("start") - public Optional getStart() { + public double getStart() { return start; } @JsonProperty("limit") - public Optional getLimit() { + public double getLimit() { return limit; } @JsonProperty("total") - public Optional getTotal() { + public double getTotal() { return total; } @@ -77,10 +77,7 @@ public Map getAdditionalProperties() { } private boolean equalTo(ListRolesOffsetPaginatedResponseContent other) { - return start.equals(other.start) - && limit.equals(other.limit) - && total.equals(other.total) - && roles.equals(other.roles); + return start == other.start && limit == other.limit && total == other.total && roles.equals(other.roles); } @java.lang.Override @@ -93,17 +90,43 @@ public String toString() { return ObjectMappers.stringify(this); } - public static Builder builder() { + public static StartStage builder() { return new Builder(); } + public interface StartStage { + LimitStage start(double start); + + Builder from(ListRolesOffsetPaginatedResponseContent other); + } + + public interface LimitStage { + TotalStage limit(double limit); + } + + public interface TotalStage { + _FinalStage total(double total); + } + + public interface _FinalStage { + ListRolesOffsetPaginatedResponseContent build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage roles(Optional> roles); + + _FinalStage roles(List roles); + } + @JsonIgnoreProperties(ignoreUnknown = true) - public static final class Builder { - private Optional start = Optional.empty(); + public static final class Builder implements StartStage, LimitStage, TotalStage, _FinalStage { + private double start; - private Optional limit = Optional.empty(); + private double limit; - private Optional total = Optional.empty(); + private double total; private Optional> roles = Optional.empty(); @@ -112,6 +135,7 @@ public static final class Builder { private Builder() {} + @java.lang.Override public Builder from(ListRolesOffsetPaginatedResponseContent other) { start(other.getStart()); limit(other.getLimit()); @@ -120,59 +144,52 @@ public Builder from(ListRolesOffsetPaginatedResponseContent other) { return this; } - @JsonSetter(value = "start", nulls = Nulls.SKIP) - public Builder start(Optional start) { + @java.lang.Override + @JsonSetter("start") + public LimitStage start(double start) { this.start = start; return this; } - public Builder start(Double start) { - this.start = Optional.ofNullable(start); - return this; - } - - @JsonSetter(value = "limit", nulls = Nulls.SKIP) - public Builder limit(Optional limit) { + @java.lang.Override + @JsonSetter("limit") + public TotalStage limit(double limit) { this.limit = limit; return this; } - public Builder limit(Double limit) { - this.limit = Optional.ofNullable(limit); - return this; - } - - @JsonSetter(value = "total", nulls = Nulls.SKIP) - public Builder total(Optional total) { + @java.lang.Override + @JsonSetter("total") + public _FinalStage total(double total) { this.total = total; return this; } - public Builder total(Double total) { - this.total = Optional.ofNullable(total); + @java.lang.Override + public _FinalStage roles(List roles) { + this.roles = Optional.ofNullable(roles); return this; } + @java.lang.Override @JsonSetter(value = "roles", nulls = Nulls.SKIP) - public Builder roles(Optional> roles) { + public _FinalStage roles(Optional> roles) { this.roles = roles; return this; } - public Builder roles(List roles) { - this.roles = Optional.ofNullable(roles); - return this; - } - + @java.lang.Override public ListRolesOffsetPaginatedResponseContent build() { return new ListRolesOffsetPaginatedResponseContent(start, limit, total, roles, additionalProperties); } + @java.lang.Override public Builder additionalProperty(String key, Object value) { this.additionalProperties.put(key, value); return this; } + @java.lang.Override public Builder additionalProperties(Map additionalProperties) { this.additionalProperties.putAll(additionalProperties); return this; diff --git a/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java new file mode 100644 index 000000000..22f929a96 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBody.java @@ -0,0 +1,163 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = NotFoundErrorBody.Builder.class) +public final class NotFoundErrorBody { + private final String message; + + private final String statusCode; + + private final NotFoundErrorBodyError error; + + private final Map additionalProperties; + + private NotFoundErrorBody( + String message, String statusCode, NotFoundErrorBodyError error, Map additionalProperties) { + this.message = message; + this.statusCode = statusCode; + this.error = error; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("message") + public String getMessage() { + return message; + } + + @JsonProperty("statusCode") + public String getStatusCode() { + return statusCode; + } + + @JsonProperty("error") + public NotFoundErrorBodyError getError() { + return error; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof NotFoundErrorBody && equalTo((NotFoundErrorBody) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(NotFoundErrorBody other) { + return message.equals(other.message) && statusCode.equals(other.statusCode) && error.equals(other.error); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.message, this.statusCode, this.error); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MessageStage builder() { + return new Builder(); + } + + public interface MessageStage { + StatusCodeStage message(@NotNull String message); + + Builder from(NotFoundErrorBody other); + } + + public interface StatusCodeStage { + ErrorStage statusCode(@NotNull String statusCode); + } + + public interface ErrorStage { + _FinalStage error(@NotNull NotFoundErrorBodyError error); + } + + public interface _FinalStage { + NotFoundErrorBody build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MessageStage, StatusCodeStage, ErrorStage, _FinalStage { + private String message; + + private String statusCode; + + private NotFoundErrorBodyError error; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(NotFoundErrorBody other) { + message(other.getMessage()); + statusCode(other.getStatusCode()); + error(other.getError()); + return this; + } + + @java.lang.Override + @JsonSetter("message") + public StatusCodeStage message(@NotNull String message) { + this.message = Objects.requireNonNull(message, "message must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("statusCode") + public ErrorStage statusCode(@NotNull String statusCode) { + this.statusCode = Objects.requireNonNull(statusCode, "statusCode must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("error") + public _FinalStage error(@NotNull NotFoundErrorBodyError error) { + this.error = Objects.requireNonNull(error, "error must not be null"); + return this; + } + + @java.lang.Override + public NotFoundErrorBody build() { + return new NotFoundErrorBody(message, statusCode, error, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java new file mode 100644 index 000000000..b4929ff5e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/NotFoundErrorBodyError.java @@ -0,0 +1,74 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class NotFoundErrorBodyError { + public static final NotFoundErrorBodyError NOT_FOUND = new NotFoundErrorBodyError(Value.NOT_FOUND, "Not Found"); + + private final Value value; + + private final String string; + + NotFoundErrorBodyError(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof NotFoundErrorBodyError + && this.string.equals(((NotFoundErrorBodyError) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case NOT_FOUND: + return visitor.visitNotFound(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static NotFoundErrorBodyError valueOf(String value) { + switch (value) { + case "Not Found": + return NOT_FOUND; + default: + return new NotFoundErrorBodyError(Value.UNKNOWN, value); + } + } + + public enum Value { + NOT_FOUND, + + UNKNOWN + } + + public interface Visitor { + T visitNotFound(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/Organization.java b/src/main/java/com/auth0/client/mgmt/types/Organization.java index d72df1ae8..1b8dafcb5 100644 --- a/src/main/java/com/auth0/client/mgmt/types/Organization.java +++ b/src/main/java/com/auth0/client/mgmt/types/Organization.java @@ -33,6 +33,8 @@ public final class Organization { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private Organization( @@ -42,6 +44,7 @@ private Organization( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private Organization( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -108,12 +117,20 @@ private boolean equalTo(Organization other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -139,6 +156,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -151,6 +170,7 @@ public Builder from(Organization other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -229,8 +249,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public Organization build() { - return new Organization(id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + return new Organization( + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java b/src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java new file mode 100644 index 000000000..93140a9e6 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/OrganizationThirdPartyClientAccessEnum.java @@ -0,0 +1,86 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class OrganizationThirdPartyClientAccessEnum { + public static final OrganizationThirdPartyClientAccessEnum BLOCK = + new OrganizationThirdPartyClientAccessEnum(Value.BLOCK, "block"); + + public static final OrganizationThirdPartyClientAccessEnum ALLOW = + new OrganizationThirdPartyClientAccessEnum(Value.ALLOW, "allow"); + + private final Value value; + + private final String string; + + OrganizationThirdPartyClientAccessEnum(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof OrganizationThirdPartyClientAccessEnum + && this.string.equals(((OrganizationThirdPartyClientAccessEnum) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case BLOCK: + return visitor.visitBlock(); + case ALLOW: + return visitor.visitAllow(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static OrganizationThirdPartyClientAccessEnum valueOf(String value) { + switch (value) { + case "block": + return BLOCK; + case "allow": + return ALLOW; + default: + return new OrganizationThirdPartyClientAccessEnum(Value.UNKNOWN, value); + } + } + + public enum Value { + BLOCK, + + ALLOW, + + UNKNOWN + } + + public interface Visitor { + T visitBlock(); + + T visitAllow(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java b/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java index acf3de7a4..e3ef5e1b3 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PartialGroupsEnum.java @@ -29,6 +29,8 @@ public final class PartialGroupsEnum { public static final PartialGroupsEnum PASSKEYS = new PartialGroupsEnum(Value.PASSKEYS, "passkeys"); + public static final PartialGroupsEnum CONFIRMATION = new PartialGroupsEnum(Value.CONFIRMATION, "confirmation"); + private final Value value; private final String string; @@ -79,6 +81,8 @@ public T visit(Visitor visitor) { return visitor.visitLoginPasswordless(); case PASSKEYS: return visitor.visitPasskeys(); + case CONFIRMATION: + return visitor.visitConfirmation(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -106,6 +110,8 @@ public static PartialGroupsEnum valueOf(String value) { return LOGIN_PASSWORDLESS; case "passkeys": return PASSKEYS; + case "confirmation": + return CONFIRMATION; default: return new PartialGroupsEnum(Value.UNKNOWN, value); } @@ -130,6 +136,8 @@ public enum Value { PASSKEYS, + CONFIRMATION, + UNKNOWN } @@ -152,6 +160,8 @@ public interface Visitor { T visitPasskeys(); + T visitConfirmation(); + T visitUnknown(String unknownType); } } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java index 080c3e3ed..673766e5b 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneAttribute.java @@ -20,7 +20,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = PhoneAttribute.Builder.class) public final class PhoneAttribute { - private final Optional identifier; + private final Optional identifier; private final Optional profileRequired; @@ -29,7 +29,7 @@ public final class PhoneAttribute { private final Map additionalProperties; private PhoneAttribute( - Optional identifier, + Optional identifier, Optional profileRequired, Optional signup, Map additionalProperties) { @@ -40,7 +40,7 @@ private PhoneAttribute( } @JsonProperty("identifier") - public Optional getIdentifier() { + public Optional getIdentifier() { return identifier; } @@ -90,7 +90,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); private Optional profileRequired = Optional.empty(); @@ -109,12 +109,12 @@ public Builder from(PhoneAttribute other) { } @JsonSetter(value = "identifier", nulls = Nulls.SKIP) - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { this.identifier = identifier; return this; } - public Builder identifier(ConnectionAttributeIdentifier identifier) { + public Builder identifier(PhoneAttributeIdentifier identifier) { this.identifier = Optional.ofNullable(identifier); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java new file mode 100644 index 000000000..2fa14c772 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneAttributeIdentifier.java @@ -0,0 +1,136 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = PhoneAttributeIdentifier.Builder.class) +public final class PhoneAttributeIdentifier { + private final Optional active; + + private final Optional defaultMethod; + + private final Map additionalProperties; + + private PhoneAttributeIdentifier( + Optional active, + Optional defaultMethod, + Map additionalProperties) { + this.active = active; + this.defaultMethod = defaultMethod; + this.additionalProperties = additionalProperties; + } + + /** + * @return Determines if the attribute is used for identification + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + @JsonProperty("default_method") + public Optional getDefaultMethod() { + return defaultMethod; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof PhoneAttributeIdentifier && equalTo((PhoneAttributeIdentifier) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(PhoneAttributeIdentifier other) { + return active.equals(other.active) && defaultMethod.equals(other.defaultMethod); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active, this.defaultMethod); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + private Optional defaultMethod = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(PhoneAttributeIdentifier other) { + active(other.getActive()); + defaultMethod(other.getDefaultMethod()); + return this; + } + + /** + *

Determines if the attribute is used for identification

+ */ + @JsonSetter(value = "active", nulls = Nulls.SKIP) + public Builder active(Optional active) { + this.active = active; + return this; + } + + public Builder active(Boolean active) { + this.active = Optional.ofNullable(active); + return this; + } + + @JsonSetter(value = "default_method", nulls = Nulls.SKIP) + public Builder defaultMethod(Optional defaultMethod) { + this.defaultMethod = defaultMethod; + return this; + } + + public Builder defaultMethod(DefaultMethodPhoneNumberIdentifierEnum defaultMethod) { + this.defaultMethod = Optional.ofNullable(defaultMethod); + return this; + } + + public PhoneAttributeIdentifier build() { + return new PhoneAttributeIdentifier(active, defaultMethod, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java index 201e9adad..39daeb278 100644 --- a/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java +++ b/src/main/java/com/auth0/client/mgmt/types/PhoneProviderProtectionBackoffStrategyEnum.java @@ -7,12 +7,12 @@ import com.fasterxml.jackson.annotation.JsonValue; public final class PhoneProviderProtectionBackoffStrategyEnum { + public static final PhoneProviderProtectionBackoffStrategyEnum DEFAULT = + new PhoneProviderProtectionBackoffStrategyEnum(Value.DEFAULT, "default"); + public static final PhoneProviderProtectionBackoffStrategyEnum EXPONENTIAL = new PhoneProviderProtectionBackoffStrategyEnum(Value.EXPONENTIAL, "exponential"); - public static final PhoneProviderProtectionBackoffStrategyEnum NONE = - new PhoneProviderProtectionBackoffStrategyEnum(Value.NONE, "none"); - private final Value value; private final String string; @@ -46,10 +46,10 @@ public int hashCode() { public T visit(Visitor visitor) { switch (value) { + case DEFAULT: + return visitor.visitDefault(); case EXPONENTIAL: return visitor.visitExponential(); - case NONE: - return visitor.visitNone(); case UNKNOWN: default: return visitor.visitUnknown(string); @@ -59,10 +59,10 @@ public T visit(Visitor visitor) { @JsonCreator(mode = JsonCreator.Mode.DELEGATING) public static PhoneProviderProtectionBackoffStrategyEnum valueOf(String value) { switch (value) { + case "default": + return DEFAULT; case "exponential": return EXPONENTIAL; - case "none": - return NONE; default: return new PhoneProviderProtectionBackoffStrategyEnum(Value.UNKNOWN, value); } @@ -71,7 +71,7 @@ public static PhoneProviderProtectionBackoffStrategyEnum valueOf(String value) { public enum Value { EXPONENTIAL, - NONE, + DEFAULT, UNKNOWN } @@ -79,7 +79,7 @@ public enum Value { public interface Visitor { T visitExponential(); - T visitNone(); + T visitDefault(); T visitUnknown(String unknownType); } diff --git a/src/main/java/com/auth0/client/mgmt/types/RoleMember.java b/src/main/java/com/auth0/client/mgmt/types/RoleMember.java new file mode 100644 index 000000000..ce3aa2c6e --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/RoleMember.java @@ -0,0 +1,203 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = RoleMember.Builder.class) +public final class RoleMember { + private final Optional userId; + + private final Optional picture; + + private final Optional name; + + private final Optional email; + + private final Map additionalProperties; + + private RoleMember( + Optional userId, + Optional picture, + Optional name, + Optional email, + Map additionalProperties) { + this.userId = userId; + this.picture = picture; + this.name = name; + this.email = email; + this.additionalProperties = additionalProperties; + } + + /** + * @return ID of this user. + */ + @JsonProperty("user_id") + public Optional getUserId() { + return userId; + } + + /** + * @return URL to a picture for this user. + */ + @JsonProperty("picture") + public Optional getPicture() { + return picture; + } + + /** + * @return Name of this user. + */ + @JsonProperty("name") + public Optional getName() { + return name; + } + + /** + * @return Email address of this user. + */ + @JsonProperty("email") + public Optional getEmail() { + return email; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof RoleMember && equalTo((RoleMember) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(RoleMember other) { + return userId.equals(other.userId) + && picture.equals(other.picture) + && name.equals(other.name) + && email.equals(other.email); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.userId, this.picture, this.name, this.email); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional userId = Optional.empty(); + + private Optional picture = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional email = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(RoleMember other) { + userId(other.getUserId()); + picture(other.getPicture()); + name(other.getName()); + email(other.getEmail()); + return this; + } + + /** + *

ID of this user.

+ */ + @JsonSetter(value = "user_id", nulls = Nulls.SKIP) + public Builder userId(Optional userId) { + this.userId = userId; + return this; + } + + public Builder userId(String userId) { + this.userId = Optional.ofNullable(userId); + return this; + } + + /** + *

URL to a picture for this user.

+ */ + @JsonSetter(value = "picture", nulls = Nulls.SKIP) + public Builder picture(Optional picture) { + this.picture = picture; + return this; + } + + public Builder picture(String picture) { + this.picture = Optional.ofNullable(picture); + return this; + } + + /** + *

Name of this user.

+ */ + @JsonSetter(value = "name", nulls = Nulls.SKIP) + public Builder name(Optional name) { + this.name = name; + return this; + } + + public Builder name(String name) { + this.name = Optional.ofNullable(name); + return this; + } + + /** + *

Email address of this user.

+ */ + @JsonSetter(value = "email", nulls = Nulls.SKIP) + public Builder email(Optional email) { + this.email = email; + return this; + } + + public Builder email(String email) { + this.email = Optional.ofNullable(email); + return this; + } + + public RoleMember build() { + return new RoleMember(userId, picture, name, email, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java b/src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java new file mode 100644 index 000000000..97a2c8a34 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TokenVaultPrivilegedAccessGrant.java @@ -0,0 +1,163 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = TokenVaultPrivilegedAccessGrant.Builder.class) +public final class TokenVaultPrivilegedAccessGrant { + private final String connection; + + private final List scopes; + + private final Map additionalProperties; + + private TokenVaultPrivilegedAccessGrant( + String connection, List scopes, Map additionalProperties) { + this.connection = connection; + this.scopes = scopes; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("connection") + public String getConnection() { + return connection; + } + + @JsonProperty("scopes") + public List getScopes() { + return scopes; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TokenVaultPrivilegedAccessGrant && equalTo((TokenVaultPrivilegedAccessGrant) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(TokenVaultPrivilegedAccessGrant other) { + return connection.equals(other.connection) && scopes.equals(other.scopes); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.connection, this.scopes); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static ConnectionStage builder() { + return new Builder(); + } + + public interface ConnectionStage { + _FinalStage connection(@NotNull String connection); + + Builder from(TokenVaultPrivilegedAccessGrant other); + } + + public interface _FinalStage { + TokenVaultPrivilegedAccessGrant build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + + _FinalStage scopes(List scopes); + + _FinalStage addScopes(String scopes); + + _FinalStage addAllScopes(List scopes); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements ConnectionStage, _FinalStage { + private String connection; + + private List scopes = new ArrayList<>(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(TokenVaultPrivilegedAccessGrant other) { + connection(other.getConnection()); + scopes(other.getScopes()); + return this; + } + + @java.lang.Override + @JsonSetter("connection") + public _FinalStage connection(@NotNull String connection) { + this.connection = Objects.requireNonNull(connection, "connection must not be null"); + return this; + } + + @java.lang.Override + public _FinalStage addAllScopes(List scopes) { + if (scopes != null) { + this.scopes.addAll(scopes); + } + return this; + } + + @java.lang.Override + public _FinalStage addScopes(String scopes) { + this.scopes.add(scopes); + return this; + } + + @java.lang.Override + @JsonSetter(value = "scopes", nulls = Nulls.SKIP) + public _FinalStage scopes(List scopes) { + this.scopes.clear(); + if (scopes != null) { + this.scopes.addAll(scopes); + } + return this; + } + + @java.lang.Override + public TokenVaultPrivilegedAccessGrant build() { + return new TokenVaultPrivilegedAccessGrant(connection, scopes, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java new file mode 100644 index 000000000..cbe79de41 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBody.java @@ -0,0 +1,166 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import org.jetbrains.annotations.NotNull; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = TooManyRequestsErrorBody.Builder.class) +public final class TooManyRequestsErrorBody { + private final String message; + + private final String statusCode; + + private final TooManyRequestsErrorBodyError error; + + private final Map additionalProperties; + + private TooManyRequestsErrorBody( + String message, + String statusCode, + TooManyRequestsErrorBodyError error, + Map additionalProperties) { + this.message = message; + this.statusCode = statusCode; + this.error = error; + this.additionalProperties = additionalProperties; + } + + @JsonProperty("message") + public String getMessage() { + return message; + } + + @JsonProperty("statusCode") + public String getStatusCode() { + return statusCode; + } + + @JsonProperty("error") + public TooManyRequestsErrorBodyError getError() { + return error; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof TooManyRequestsErrorBody && equalTo((TooManyRequestsErrorBody) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(TooManyRequestsErrorBody other) { + return message.equals(other.message) && statusCode.equals(other.statusCode) && error.equals(other.error); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.message, this.statusCode, this.error); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static MessageStage builder() { + return new Builder(); + } + + public interface MessageStage { + StatusCodeStage message(@NotNull String message); + + Builder from(TooManyRequestsErrorBody other); + } + + public interface StatusCodeStage { + ErrorStage statusCode(@NotNull String statusCode); + } + + public interface ErrorStage { + _FinalStage error(@NotNull TooManyRequestsErrorBodyError error); + } + + public interface _FinalStage { + TooManyRequestsErrorBody build(); + + _FinalStage additionalProperty(String key, Object value); + + _FinalStage additionalProperties(Map additionalProperties); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder implements MessageStage, StatusCodeStage, ErrorStage, _FinalStage { + private String message; + + private String statusCode; + + private TooManyRequestsErrorBodyError error; + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + @java.lang.Override + public Builder from(TooManyRequestsErrorBody other) { + message(other.getMessage()); + statusCode(other.getStatusCode()); + error(other.getError()); + return this; + } + + @java.lang.Override + @JsonSetter("message") + public StatusCodeStage message(@NotNull String message) { + this.message = Objects.requireNonNull(message, "message must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("statusCode") + public ErrorStage statusCode(@NotNull String statusCode) { + this.statusCode = Objects.requireNonNull(statusCode, "statusCode must not be null"); + return this; + } + + @java.lang.Override + @JsonSetter("error") + public _FinalStage error(@NotNull TooManyRequestsErrorBodyError error) { + this.error = Objects.requireNonNull(error, "error must not be null"); + return this; + } + + @java.lang.Override + public TooManyRequestsErrorBody build() { + return new TooManyRequestsErrorBody(message, statusCode, error, additionalProperties); + } + + @java.lang.Override + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + @java.lang.Override + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java new file mode 100644 index 000000000..45fd65278 --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/TooManyRequestsErrorBodyError.java @@ -0,0 +1,75 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +public final class TooManyRequestsErrorBodyError { + public static final TooManyRequestsErrorBodyError TOO_MANY_REQUESTS = + new TooManyRequestsErrorBodyError(Value.TOO_MANY_REQUESTS, "Too Many Requests"); + + private final Value value; + + private final String string; + + TooManyRequestsErrorBodyError(Value value, String string) { + this.value = value; + this.string = string; + } + + public Value getEnumValue() { + return value; + } + + @java.lang.Override + @JsonValue + public String toString() { + return this.string; + } + + @java.lang.Override + public boolean equals(Object other) { + return (this == other) + || (other instanceof TooManyRequestsErrorBodyError + && this.string.equals(((TooManyRequestsErrorBodyError) other).string)); + } + + @java.lang.Override + public int hashCode() { + return this.string.hashCode(); + } + + public T visit(Visitor visitor) { + switch (value) { + case TOO_MANY_REQUESTS: + return visitor.visitTooManyRequests(); + case UNKNOWN: + default: + return visitor.visitUnknown(string); + } + } + + @JsonCreator(mode = JsonCreator.Mode.DELEGATING) + public static TooManyRequestsErrorBodyError valueOf(String value) { + switch (value) { + case "Too Many Requests": + return TOO_MANY_REQUESTS; + default: + return new TooManyRequestsErrorBodyError(Value.UNKNOWN, value); + } + } + + public enum Value { + TOO_MANY_REQUESTS, + + UNKNOWN + } + + public interface Visitor { + T visitTooManyRequests(); + + T visitUnknown(String unknownType); + } +} diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java index e2c953d0f..4032c879d 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateConnectionOptions.java @@ -101,6 +101,10 @@ public final class UpdateConnectionOptions { private final Optional idTokenSessionExpirySupported; + private final OptionalNullable discoveryUrl; + + private final OptionalNullable oidcMetadata; + private final Map additionalProperties; private UpdateConnectionOptions( @@ -142,6 +146,8 @@ private UpdateConnectionOptions( OptionalNullable tokenEndpointAuthSigningAlg, Optional tokenEndpointJwtcaAudFormat, Optional idTokenSessionExpirySupported, + OptionalNullable discoveryUrl, + OptionalNullable oidcMetadata, Map additionalProperties) { this.validation = validation; this.nonPersistentAttrs = nonPersistentAttrs; @@ -181,6 +187,8 @@ private UpdateConnectionOptions( this.tokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; this.tokenEndpointJwtcaAudFormat = tokenEndpointJwtcaAudFormat; this.idTokenSessionExpirySupported = idTokenSessionExpirySupported; + this.discoveryUrl = discoveryUrl; + this.oidcMetadata = oidcMetadata; this.additionalProperties = additionalProperties; } @@ -456,6 +464,24 @@ public Optional getIdTokenSessionExpirySupported() { return idTokenSessionExpirySupported; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("discovery_url") + public OptionalNullable getDiscoveryUrl() { + if (discoveryUrl == null) { + return OptionalNullable.absent(); + } + return discoveryUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("oidc_metadata") + public OptionalNullable getOidcMetadata() { + if (oidcMetadata == null) { + return OptionalNullable.absent(); + } + return oidcMetadata; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("validation") private OptionalNullable _getValidation() { @@ -553,6 +579,18 @@ private OptionalNullable _getTokenEnd return tokenEndpointAuthSigningAlg; } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("discovery_url") + private OptionalNullable _getDiscoveryUrl() { + return discoveryUrl; + } + + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) + @JsonProperty("oidc_metadata") + private OptionalNullable _getOidcMetadata() { + return oidcMetadata; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -602,7 +640,9 @@ private boolean equalTo(UpdateConnectionOptions other) { && tokenEndpointAuthMethod.equals(other.tokenEndpointAuthMethod) && tokenEndpointAuthSigningAlg.equals(other.tokenEndpointAuthSigningAlg) && tokenEndpointJwtcaAudFormat.equals(other.tokenEndpointJwtcaAudFormat) - && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported); + && idTokenSessionExpirySupported.equals(other.idTokenSessionExpirySupported) + && discoveryUrl.equals(other.discoveryUrl) + && oidcMetadata.equals(other.oidcMetadata); } @java.lang.Override @@ -645,7 +685,9 @@ public int hashCode() { this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, this.tokenEndpointJwtcaAudFormat, - this.idTokenSessionExpirySupported); + this.idTokenSessionExpirySupported, + this.discoveryUrl, + this.oidcMetadata); } @java.lang.Override @@ -742,6 +784,10 @@ public static final class Builder { private Optional idTokenSessionExpirySupported = Optional.empty(); + private OptionalNullable discoveryUrl = OptionalNullable.absent(); + + private OptionalNullable oidcMetadata = OptionalNullable.absent(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -786,6 +832,8 @@ public Builder from(UpdateConnectionOptions other) { tokenEndpointAuthSigningAlg(other.getTokenEndpointAuthSigningAlg()); tokenEndpointJwtcaAudFormat(other.getTokenEndpointJwtcaAudFormat()); idTokenSessionExpirySupported(other.getIdTokenSessionExpirySupported()); + discoveryUrl(other.getDiscoveryUrl()); + oidcMetadata(other.getOidcMetadata()); return this; } @@ -1590,6 +1638,68 @@ public Builder idTokenSessionExpirySupported(Boolean idTokenSessionExpirySupport return this; } + @JsonSetter(value = "discovery_url", nulls = Nulls.SKIP) + public Builder discoveryUrl(@Nullable OptionalNullable discoveryUrl) { + this.discoveryUrl = discoveryUrl; + return this; + } + + public Builder discoveryUrl(String discoveryUrl) { + this.discoveryUrl = OptionalNullable.of(discoveryUrl); + return this; + } + + public Builder discoveryUrl(Optional discoveryUrl) { + if (discoveryUrl.isPresent()) { + this.discoveryUrl = OptionalNullable.of(discoveryUrl.get()); + } else { + this.discoveryUrl = OptionalNullable.absent(); + } + return this; + } + + public Builder discoveryUrl(com.auth0.client.mgmt.core.Nullable discoveryUrl) { + if (discoveryUrl.isNull()) { + this.discoveryUrl = OptionalNullable.ofNull(); + } else if (discoveryUrl.isEmpty()) { + this.discoveryUrl = OptionalNullable.absent(); + } else { + this.discoveryUrl = OptionalNullable.of(discoveryUrl.get()); + } + return this; + } + + @JsonSetter(value = "oidc_metadata", nulls = Nulls.SKIP) + public Builder oidcMetadata(@Nullable OptionalNullable oidcMetadata) { + this.oidcMetadata = oidcMetadata; + return this; + } + + public Builder oidcMetadata(ConnectionsOidcMetadata oidcMetadata) { + this.oidcMetadata = OptionalNullable.of(oidcMetadata); + return this; + } + + public Builder oidcMetadata(Optional oidcMetadata) { + if (oidcMetadata.isPresent()) { + this.oidcMetadata = OptionalNullable.of(oidcMetadata.get()); + } else { + this.oidcMetadata = OptionalNullable.absent(); + } + return this; + } + + public Builder oidcMetadata(com.auth0.client.mgmt.core.Nullable oidcMetadata) { + if (oidcMetadata.isNull()) { + this.oidcMetadata = OptionalNullable.ofNull(); + } else if (oidcMetadata.isEmpty()) { + this.oidcMetadata = OptionalNullable.absent(); + } else { + this.oidcMetadata = OptionalNullable.of(oidcMetadata.get()); + } + return this; + } + public UpdateConnectionOptions build() { return new UpdateConnectionOptions( validation, @@ -1630,6 +1740,8 @@ public UpdateConnectionOptions build() { tokenEndpointAuthSigningAlg, tokenEndpointJwtcaAudFormat, idTokenSessionExpirySupported, + discoveryUrl, + oidcMetadata, additionalProperties); } diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java index 64d4b0d42..e73952968 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationRequestContent.java @@ -33,6 +33,8 @@ public final class UpdateOrganizationRequestContent { private final OptionalNullable tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private UpdateOrganizationRequestContent( @@ -41,12 +43,14 @@ private UpdateOrganizationRequestContent( Optional branding, Optional>> metadata, OptionalNullable tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.displayName = displayName; this.name = name; this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -85,6 +89,11 @@ public OptionalNullable getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @JsonInclude(value = JsonInclude.Include.CUSTOM, valueFilter = NullableNonemptyFilter.class) @JsonProperty("token_quota") private OptionalNullable _getTokenQuota() { @@ -107,12 +116,19 @@ private boolean equalTo(UpdateOrganizationRequestContent other) { && name.equals(other.name) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.displayName, this.name, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.displayName, + this.name, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -136,6 +152,8 @@ public static final class Builder { private OptionalNullable tokenQuota = OptionalNullable.absent(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -147,6 +165,7 @@ public Builder from(UpdateOrganizationRequestContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -231,9 +250,20 @@ public Builder tokenQuota(com.auth0.client.mgmt.core.Nullable return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public UpdateOrganizationRequestContent build() { return new UpdateOrganizationRequestContent( - displayName, name, branding, metadata, tokenQuota, additionalProperties); + displayName, name, branding, metadata, tokenQuota, thirdPartyClientAccess, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java index 79f93b23a..6c8c41eb1 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java +++ b/src/main/java/com/auth0/client/mgmt/types/UpdateOrganizationResponseContent.java @@ -33,6 +33,8 @@ public final class UpdateOrganizationResponseContent { private final Optional tokenQuota; + private final Optional thirdPartyClientAccess; + private final Map additionalProperties; private UpdateOrganizationResponseContent( @@ -42,6 +44,7 @@ private UpdateOrganizationResponseContent( Optional branding, Optional>> metadata, Optional tokenQuota, + Optional thirdPartyClientAccess, Map additionalProperties) { this.id = id; this.name = name; @@ -49,6 +52,7 @@ private UpdateOrganizationResponseContent( this.branding = branding; this.metadata = metadata; this.tokenQuota = tokenQuota; + this.thirdPartyClientAccess = thirdPartyClientAccess; this.additionalProperties = additionalProperties; } @@ -91,6 +95,11 @@ public Optional getTokenQuota() { return tokenQuota; } + @JsonProperty("third_party_client_access") + public Optional getThirdPartyClientAccess() { + return thirdPartyClientAccess; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -108,12 +117,20 @@ private boolean equalTo(UpdateOrganizationResponseContent other) { && displayName.equals(other.displayName) && branding.equals(other.branding) && metadata.equals(other.metadata) - && tokenQuota.equals(other.tokenQuota); + && tokenQuota.equals(other.tokenQuota) + && thirdPartyClientAccess.equals(other.thirdPartyClientAccess); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.name, this.displayName, this.branding, this.metadata, this.tokenQuota); + return Objects.hash( + this.id, + this.name, + this.displayName, + this.branding, + this.metadata, + this.tokenQuota, + this.thirdPartyClientAccess); } @java.lang.Override @@ -139,6 +156,8 @@ public static final class Builder { private Optional tokenQuota = Optional.empty(); + private Optional thirdPartyClientAccess = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -151,6 +170,7 @@ public Builder from(UpdateOrganizationResponseContent other) { branding(other.getBranding()); metadata(other.getMetadata()); tokenQuota(other.getTokenQuota()); + thirdPartyClientAccess(other.getThirdPartyClientAccess()); return this; } @@ -229,9 +249,27 @@ public Builder tokenQuota(TokenQuota tokenQuota) { return this; } + @JsonSetter(value = "third_party_client_access", nulls = Nulls.SKIP) + public Builder thirdPartyClientAccess(Optional thirdPartyClientAccess) { + this.thirdPartyClientAccess = thirdPartyClientAccess; + return this; + } + + public Builder thirdPartyClientAccess(OrganizationThirdPartyClientAccessEnum thirdPartyClientAccess) { + this.thirdPartyClientAccess = Optional.ofNullable(thirdPartyClientAccess); + return this; + } + public UpdateOrganizationResponseContent build() { return new UpdateOrganizationResponseContent( - id, name, displayName, branding, metadata, tokenQuota, additionalProperties); + id, + name, + displayName, + branding, + metadata, + tokenQuota, + thirdPartyClientAccess, + additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java index 28306e2e4..66f974c9e 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UserGrant.java +++ b/src/main/java/com/auth0/client/mgmt/types/UserGrant.java @@ -31,6 +31,8 @@ public final class UserGrant { private final Optional> scope; + private final Optional organizationId; + private final Map additionalProperties; private UserGrant( @@ -39,12 +41,14 @@ private UserGrant( Optional userId, Optional audience, Optional> scope, + Optional organizationId, Map additionalProperties) { this.id = id; this.clientId = clientId; this.userId = userId; this.audience = audience; this.scope = scope; + this.organizationId = organizationId; this.additionalProperties = additionalProperties; } @@ -88,6 +92,14 @@ public Optional> getScope() { return scope; } + /** + * @return ID of the organization associated with the grant. + */ + @JsonProperty("organization_id") + public Optional getOrganizationId() { + return organizationId; + } + @java.lang.Override public boolean equals(Object other) { if (this == other) return true; @@ -104,12 +116,13 @@ private boolean equalTo(UserGrant other) { && clientId.equals(other.clientId) && userId.equals(other.userId) && audience.equals(other.audience) - && scope.equals(other.scope); + && scope.equals(other.scope) + && organizationId.equals(other.organizationId); } @java.lang.Override public int hashCode() { - return Objects.hash(this.id, this.clientId, this.userId, this.audience, this.scope); + return Objects.hash(this.id, this.clientId, this.userId, this.audience, this.scope, this.organizationId); } @java.lang.Override @@ -133,6 +146,8 @@ public static final class Builder { private Optional> scope = Optional.empty(); + private Optional organizationId = Optional.empty(); + @JsonAnySetter private Map additionalProperties = new HashMap<>(); @@ -144,6 +159,7 @@ public Builder from(UserGrant other) { userId(other.getUserId()); audience(other.getAudience()); scope(other.getScope()); + organizationId(other.getOrganizationId()); return this; } @@ -217,8 +233,22 @@ public Builder scope(List scope) { return this; } + /** + *

ID of the organization associated with the grant.

+ */ + @JsonSetter(value = "organization_id", nulls = Nulls.SKIP) + public Builder organizationId(Optional organizationId) { + this.organizationId = organizationId; + return this; + } + + public Builder organizationId(String organizationId) { + this.organizationId = Optional.ofNullable(organizationId); + return this; + } + public UserGrant build() { - return new UserGrant(id, clientId, userId, audience, scope, additionalProperties); + return new UserGrant(id, clientId, userId, audience, scope, organizationId, additionalProperties); } public Builder additionalProperty(String key, Object value) { diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java index 63bb140cd..f95533053 100644 --- a/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAttribute.java @@ -20,7 +20,7 @@ @JsonInclude(JsonInclude.Include.NON_ABSENT) @JsonDeserialize(builder = UsernameAttribute.Builder.class) public final class UsernameAttribute { - private final Optional identifier; + private final Optional identifier; private final Optional profileRequired; @@ -31,7 +31,7 @@ public final class UsernameAttribute { private final Map additionalProperties; private UsernameAttribute( - Optional identifier, + Optional identifier, Optional profileRequired, Optional signup, Optional validation, @@ -44,7 +44,7 @@ private UsernameAttribute( } @JsonProperty("identifier") - public Optional getIdentifier() { + public Optional getIdentifier() { return identifier; } @@ -100,7 +100,7 @@ public static Builder builder() { @JsonIgnoreProperties(ignoreUnknown = true) public static final class Builder { - private Optional identifier = Optional.empty(); + private Optional identifier = Optional.empty(); private Optional profileRequired = Optional.empty(); @@ -122,12 +122,12 @@ public Builder from(UsernameAttribute other) { } @JsonSetter(value = "identifier", nulls = Nulls.SKIP) - public Builder identifier(Optional identifier) { + public Builder identifier(Optional identifier) { this.identifier = identifier; return this; } - public Builder identifier(ConnectionAttributeIdentifier identifier) { + public Builder identifier(UsernameAttributeIdentifier identifier) { this.identifier = Optional.ofNullable(identifier); return this; } diff --git a/src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java b/src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java new file mode 100644 index 000000000..7807c30af --- /dev/null +++ b/src/main/java/com/auth0/client/mgmt/types/UsernameAttributeIdentifier.java @@ -0,0 +1,111 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ +package com.auth0.client.mgmt.types; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonSetter; +import com.fasterxml.jackson.annotation.Nulls; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.Optional; + +@JsonInclude(JsonInclude.Include.NON_ABSENT) +@JsonDeserialize(builder = UsernameAttributeIdentifier.Builder.class) +public final class UsernameAttributeIdentifier { + private final Optional active; + + private final Map additionalProperties; + + private UsernameAttributeIdentifier(Optional active, Map additionalProperties) { + this.active = active; + this.additionalProperties = additionalProperties; + } + + /** + * @return Determines if the attribute is used for identification + */ + @JsonProperty("active") + public Optional getActive() { + return active; + } + + @java.lang.Override + public boolean equals(Object other) { + if (this == other) return true; + return other instanceof UsernameAttributeIdentifier && equalTo((UsernameAttributeIdentifier) other); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + private boolean equalTo(UsernameAttributeIdentifier other) { + return active.equals(other.active); + } + + @java.lang.Override + public int hashCode() { + return Objects.hash(this.active); + } + + @java.lang.Override + public String toString() { + return ObjectMappers.stringify(this); + } + + public static Builder builder() { + return new Builder(); + } + + @JsonIgnoreProperties(ignoreUnknown = true) + public static final class Builder { + private Optional active = Optional.empty(); + + @JsonAnySetter + private Map additionalProperties = new HashMap<>(); + + private Builder() {} + + public Builder from(UsernameAttributeIdentifier other) { + active(other.getActive()); + return this; + } + + /** + *

Determines if the attribute is used for identification

+ */ + @JsonSetter(value = "active", nulls = Nulls.SKIP) + public Builder active(Optional active) { + this.active = active; + return this; + } + + public Builder active(Boolean active) { + this.active = Optional.ofNullable(active); + return this; + } + + public UsernameAttributeIdentifier build() { + return new UsernameAttributeIdentifier(active, additionalProperties); + } + + public Builder additionalProperty(String key, Object value) { + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + this.additionalProperties.putAll(additionalProperties); + return this; + } + } +} diff --git a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java index ba082da03..e6979f834 100644 --- a/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/ClientGrantsOrganizationsWireTest.java @@ -41,7 +41,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}}}]}")); + "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.clientGrants() .organizations() .list( diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java index 6584e049c..c5750f9c3 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsDeliveriesWireTest.java @@ -42,7 +42,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "[{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"group.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}]")); + "[{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"connection.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}]")); List response = client.eventStreams() .deliveries() .list( @@ -68,7 +68,7 @@ public void testList() throws Exception { + " \"id\": \"id\",\n" + " \"event_stream_id\": \"event_stream_id\",\n" + " \"status\": \"failed\",\n" - + " \"event_type\": \"group.created\",\n" + + " \"event_type\": \"connection.created\",\n" + " \"attempts\": [\n" + " {\n" + " \"status\": \"failed\",\n" @@ -122,7 +122,7 @@ public void testGetHistory() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"group.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); + "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"connection.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); GetEventStreamDeliveryHistoryResponseContent response = client.eventStreams().deliveries().getHistory("id", "event_id"); RecordedRequest request = server.takeRequest(); @@ -137,7 +137,7 @@ public void testGetHistory() throws Exception { + " \"id\": \"id\",\n" + " \"event_stream_id\": \"event_stream_id\",\n" + " \"status\": \"failed\",\n" - + " \"event_type\": \"group.created\",\n" + + " \"event_type\": \"connection.created\",\n" + " \"attempts\": [\n" + " {\n" + " \"status\": \"failed\",\n" diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java index 143fee3a0..ea61b1429 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsRedeliveriesWireTest.java @@ -39,7 +39,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"date_from\":\"2024-01-15T09:30:00Z\",\"date_to\":\"2024-01-15T09:30:00Z\",\"statuses\":[\"failed\"],\"event_types\":[\"group.created\"]}")); + "{\"date_from\":\"2024-01-15T09:30:00Z\",\"date_to\":\"2024-01-15T09:30:00Z\",\"statuses\":[\"failed\"],\"event_types\":[\"connection.created\"]}")); CreateEventStreamRedeliveryResponseContent response = client.eventStreams() .redeliveries() .create( @@ -89,7 +89,7 @@ else if (actualJson.has("kind")) + " \"failed\"\n" + " ],\n" + " \"event_types\": [\n" - + " \"group.created\"\n" + + " \"connection.created\"\n" + " ]\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); diff --git a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java index cef67a0d7..56f4e7daf 100644 --- a/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventStreamsWireTest.java @@ -378,19 +378,19 @@ public void testTest() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"group.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); + "{\"id\":\"id\",\"event_stream_id\":\"event_stream_id\",\"status\":\"failed\",\"event_type\":\"connection.created\",\"attempts\":[{\"status\":\"failed\",\"timestamp\":\"2024-01-15T09:30:00Z\",\"error_message\":\"error_message\"}],\"event\":{\"id\":\"id\",\"source\":\"source\",\"specversion\":\"specversion\",\"type\":\"type\",\"time\":\"2024-01-15T09:30:00Z\",\"data\":\"data\"}}")); CreateEventStreamTestEventResponseContent response = client.eventStreams() .test( "id", CreateEventStreamTestEventRequestContent.builder() - .eventType(EventStreamTestEventTypeEnum.GROUP_CREATED) + .eventType(EventStreamTestEventTypeEnum.CONNECTION_CREATED) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); Assertions.assertEquals("POST", request.getMethod()); // Validate request body String actualRequestBody = request.getBody().readUtf8(); - String expectedRequestBody = "" + "{\n" + " \"event_type\": \"group.created\"\n" + "}"; + String expectedRequestBody = "" + "{\n" + " \"event_type\": \"connection.created\"\n" + "}"; JsonNode actualJson = objectMapper.readTree(actualRequestBody); JsonNode expectedJson = objectMapper.readTree(expectedRequestBody); Assertions.assertTrue(jsonEquals(expectedJson, actualJson), "Request body structure does not match expected"); @@ -426,7 +426,7 @@ else if (actualJson.has("kind")) + " \"id\": \"id\",\n" + " \"event_stream_id\": \"event_stream_id\",\n" + " \"status\": \"failed\",\n" - + " \"event_type\": \"group.created\",\n" + + " \"event_type\": \"connection.created\",\n" + " \"attempts\": [\n" + " {\n" + " \"status\": \"failed\",\n" diff --git a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java index 67b9037a9..28b8c35a6 100644 --- a/src/test/java/com/auth0/client/mgmt/EventsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/EventsWireTest.java @@ -43,7 +43,7 @@ public void testSubscribe() throws Exception { .subscribe(SubscribeEventsRequestParameters.builder() .from(OptionalNullable.of("from")) .fromTimestamp(OptionalNullable.of("from_timestamp")) - .eventType(Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.GROUP_CREATED)) + .eventType(Arrays.asList(EventStreamSubscribeEventsEventTypeEnum.CONNECTION_CREATED)) .build()); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java new file mode 100644 index 000000000..a1656a2e0 --- /dev/null +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsRolesMembersWireTest.java @@ -0,0 +1,98 @@ +package com.auth0.client.mgmt; + +import com.auth0.client.mgmt.core.ObjectMappers; +import com.auth0.client.mgmt.core.OptionalNullable; +import com.auth0.client.mgmt.core.SyncPagingIterable; +import com.auth0.client.mgmt.organizations.roles.types.ListOrganizationRoleMembersRequestParameters; +import com.auth0.client.mgmt.types.RoleMember; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import okhttp3.mockwebserver.MockResponse; +import okhttp3.mockwebserver.MockWebServer; +import okhttp3.mockwebserver.RecordedRequest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class OrganizationsRolesMembersWireTest { + private MockWebServer server; + private ManagementApi client; + private ObjectMapper objectMapper = ObjectMappers.JSON_MAPPER; + + @BeforeEach + public void setup() throws Exception { + server = new MockWebServer(); + server.start(); + client = ManagementApi.builder() + .url(server.url("/").toString()) + .token("test-token") + .build(); + } + + @AfterEach + public void teardown() throws Exception { + server.shutdown(); + } + + @Test + public void testList() throws Exception { + server.enqueue( + new MockResponse() + .setResponseCode(200) + .setBody( + "{\"members\":[{\"user_id\":\"user_id\",\"picture\":\"picture\",\"name\":\"name\",\"email\":\"email\"}],\"next\":\"next\"}")); + SyncPagingIterable response = client.organizations() + .roles() + .members() + .list( + "id", + "role_id", + ListOrganizationRoleMembersRequestParameters.builder() + .from(OptionalNullable.of("from")) + .take(OptionalNullable.of(1)) + .fields(OptionalNullable.of("fields")) + .includeFields(OptionalNullable.of(true)) + .build()); + RecordedRequest request = server.takeRequest(); + Assertions.assertNotNull(request); + Assertions.assertEquals("GET", request.getMethod()); + + // Validate response body + Assertions.assertNotNull(response, "Response should not be null"); + // Pagination response validated via MockWebServer + // The SDK correctly parses the response into a SyncPagingIterable + } + + /** + * Compares two JsonNodes with numeric equivalence and null safety. + * For objects, checks that all fields in 'expected' exist in 'actual' with matching values. + * Allows 'actual' to have extra fields (e.g., default values added during serialization). + */ + private boolean jsonEquals(JsonNode expected, JsonNode actual) { + if (expected == null && actual == null) return true; + if (expected == null || actual == null) return false; + if (expected.equals(actual)) return true; + if (expected.isNumber() && actual.isNumber()) + return Math.abs(expected.doubleValue() - actual.doubleValue()) < 1e-10; + if (expected.isObject() && actual.isObject()) { + java.util.Iterator> iter = expected.fields(); + while (iter.hasNext()) { + java.util.Map.Entry entry = iter.next(); + JsonNode actualValue = actual.get(entry.getKey()); + if (actualValue == null) { + if (!entry.getValue().isNull()) return false; + } else if (!jsonEquals(entry.getValue(), actualValue)) return false; + } + return true; + } + if (expected.isArray() && actual.isArray()) { + if (expected.size() != actual.size()) return false; + for (int i = 0; i < expected.size(); i++) { + if (!jsonEquals(expected.get(i), actual.get(i))) return false; + } + return true; + } + return false; + } +} diff --git a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java index 42cba106d..5330fd239 100644 --- a/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/OrganizationsWireTest.java @@ -47,7 +47,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}}}]}")); + "{\"next\":\"next\",\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.organizations() .list(ListOrganizationsRequestParameters.builder() .from(OptionalNullable.of("from")) @@ -70,7 +70,7 @@ public void testCreate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"enabled_connections\":[{\"connection_id\":\"connection_id\",\"assign_membership_on_login\":true,\"show_as_button\":true,\"is_signup_enabled\":true}]}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\",\"enabled_connections\":[{\"connection_id\":\"connection_id\",\"assign_membership_on_login\":true,\"show_as_button\":true,\"is_signup_enabled\":true}]}")); CreateOrganizationResponseContent response = client.organizations() .create(CreateOrganizationRequestContent.builder().name("name").build()); RecordedRequest request = server.takeRequest(); @@ -131,6 +131,7 @@ else if (actualJson.has("kind")) + " \"per_hour\": 1\n" + " }\n" + " },\n" + + " \"third_party_client_access\": \"block\",\n" + " \"enabled_connections\": [\n" + " {\n" + " \"connection_id\": \"connection_id\",\n" @@ -177,7 +178,7 @@ public void testGetByName() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}}}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\"}")); GetOrganizationByNameResponseContent response = client.organizations().getByName("name"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -207,7 +208,8 @@ public void testGetByName() throws Exception { + " \"per_day\": 1,\n" + " \"per_hour\": 1\n" + " }\n" - + " }\n" + + " },\n" + + " \"third_party_client_access\": \"block\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); @@ -246,7 +248,7 @@ public void testGet() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}}}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\"}")); GetOrganizationResponseContent response = client.organizations().get("id"); RecordedRequest request = server.takeRequest(); Assertions.assertNotNull(request); @@ -276,7 +278,8 @@ public void testGet() throws Exception { + " \"per_day\": 1,\n" + " \"per_hour\": 1\n" + " }\n" - + " }\n" + + " },\n" + + " \"third_party_client_access\": \"block\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); @@ -324,7 +327,7 @@ public void testUpdate() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}}}")); + "{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"branding\":{\"logo_url\":\"logo_url\",\"colors\":{\"primary\":\"primary\",\"page_background\":\"page_background\"}},\"metadata\":{\"key\":\"value\"},\"token_quota\":{\"client_credentials\":{\"enforce\":true,\"per_day\":1,\"per_hour\":1}},\"third_party_client_access\":\"block\"}")); UpdateOrganizationResponseContent response = client.organizations() .update("id", UpdateOrganizationRequestContent.builder().build()); RecordedRequest request = server.takeRequest(); @@ -384,7 +387,8 @@ else if (actualJson.has("kind")) + " \"per_day\": 1,\n" + " \"per_hour\": 1\n" + " }\n" - + " }\n" + + " },\n" + + " \"third_party_client_access\": \"block\"\n" + "}"; JsonNode actualResponseNode = objectMapper.readTree(actualResponseJson); JsonNode expectedResponseNode = objectMapper.readTree(expectedResponseBody); diff --git a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java index 672f5c683..6a8bb6299 100644 --- a/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UserGrantsWireTest.java @@ -42,7 +42,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"grants\":[{\"id\":\"id\",\"clientID\":\"clientID\",\"user_id\":\"user_id\",\"audience\":\"audience\",\"scope\":[\"scope\"]}]}")); + "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"grants\":[{\"id\":\"id\",\"clientID\":\"clientID\",\"user_id\":\"user_id\",\"audience\":\"audience\",\"scope\":[\"scope\"],\"organization_id\":\"organization_id\"}]}")); SyncPagingIterable response = client.userGrants() .list(ListUserGrantsRequestParameters.builder() .perPage(OptionalNullable.of(1)) diff --git a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java index 95b65b683..be1a82cff 100644 --- a/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java +++ b/src/test/java/com/auth0/client/mgmt/UsersOrganizationsWireTest.java @@ -41,7 +41,7 @@ public void testList() throws Exception { new MockResponse() .setResponseCode(200) .setBody( - "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}}}]}")); + "{\"start\":1.1,\"limit\":1.1,\"total\":1.1,\"organizations\":[{\"id\":\"id\",\"name\":\"name\",\"display_name\":\"display_name\",\"token_quota\":{\"client_credentials\":{}},\"third_party_client_access\":\"block\"}]}")); SyncPagingIterable response = client.users() .organizations() .list( diff --git a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json index e2eb8eb2a..c02c30632 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testCreate_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json index e2eb8eb2a..c02c30632 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testGet_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json index e2eb8eb2a..c02c30632 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testRotateSecret_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none", diff --git a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json index e2eb8eb2a..c02c30632 100644 --- a/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json +++ b/src/test/resources/wire-tests/ClientsWireTest_testUpdate_response.json @@ -340,6 +340,14 @@ ], "ip_allowlist": [ "ip_allowlist" + ], + "grants": [ + { + "connection": "connection", + "scopes": [ + "scopes" + ] + } ] }, "compliance_level": "none",